Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: W3 validator

  1. #1
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Dublin
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question W3 validator

    Hi guys,
    W3C MarkUp Validation Service is giving me an error message
    regarding the tag:

    <area shape="rect" coords="267, 1, 333, 61" href="mailto:c.cista@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="Contact me">


    the errors reported are:

    Line 47, column 105: cannot generate system identifier for general entity "subject"
    ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="C
    ^
    Line 47, column 105: general entity "subject" not defined and no default entity (explain...).
    ' ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="C
    ^
    Line 47, column 112: reference to entity "subject" for which no system identifier could be generated
    ...s.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="Contact
    ^
    Line 47, column 104: entity was defined here
    ...sta@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="

    I've tried the solution proposed by the website itself,
    and it didn't give me the error message anymore, but then the '&subject' command didn't work.

    Is anyone able to explain me why this is happening?

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: W3 validator

    Originally posted by aguilera
    <area shape="rect" coords="267, 1, 333, 61" href="mailto:c.cista@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="Contact me">


    the errors reported are:

    Line 47, column 105: cannot generate system identifier for general entity "subject"
    ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="C
    ^
    Line 47, column 105: general entity "subject" not defined and no default entity (explain...).
    ' ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="C
    ^
    Line 47, column 112: reference to entity "subject" for which no system identifier could be generated
    ...s.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="Contact
    ^
    Line 47, column 104: entity was defined here
    ...sta@lycos.co.uk?cc=cistacr@ie.ibm.com&subject=Cri%20HomePage%20Comment" alt="
    I think you should replace special characters with entities.
    Most problems is caused by ampersand, which seems to be a problem also in this case (validator reads characters after & as entity declarations).

    Replace ampersands with :
    &amp;amp;
    Zvona
    First Aid for
    Web Design

  • #3
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Dublin
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Zvona,
    thanks for your help,
    unfortunately this suggestion doesn't seem to solve the problem.
    Using '&amp' instead of '&' I got the following error:

    Line 47, column 105: cannot generate system identifier for general entity "ampsubject"

    ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&ampsubject=Cri%20HomePage%20Comment" alt

    I've tried substituting '&' with ';', which didn't give error in Validator but unfortunately does not work fine on the web site.

    So, I'm still looking for a solution,
    please get back to me if you have any other idea!!

    Much appreciated!

  • #4
    New to the CF scene
    Join Date
    Jan 2003
    Location
    Dublin
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    Hi all,
    I've actually found out the solution to this problem
    I'd just like to share it with you now.

    The correct sintax for the '&subject' element in the 'href="mailto:'
    attribute is: &amp;subject

    this way the validator accepts the code and it works fine on the web site!

    Hope this could be helpful to somebody else!

  • #5
    Regular Coder
    Join Date
    May 2002
    Location
    Helsinki, Finland
    Posts
    231
    Thanks
    0
    Thanked 1 Time in 1 Post
    Originally posted by aguilera
    Hi Zvona,
    thanks for your help,
    unfortunately this suggestion doesn't seem to solve the problem.
    Using '&amp' instead of '&' I got the following error:

    Line 47, column 105: cannot generate system identifier for general entity "ampsubject"

    ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&ampsubject=Cri%20HomePage%20Comment" alt

    I've tried substituting '&' with ';', which didn't give error in Validator but unfortunately does not work fine on the web site.
    Your string should look like:
    ...ta@lycos.co.uk?cc=cistacr@ie.ibm.com&amp;amp;subject=Cri%20HomePage%20Comment" alt

    Then it should work.
    Zvona
    First Aid for
    Web Design


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •