dcsimg
www.webdeveloper.com
Results 1 to 9 of 9

Thread: reference not terminated by REFC delimiter

  1. #1
    Join Date
    Aug 2003
    Location
    Glasgow, Scotland
    Posts
    211

    reference not terminated by REFC delimiter

    Hi

    I've got 3 validation errors and am not sure how to fix them,

    reference not terminated by REFC delimiter
    XML Parsing Error: CharRef: invalid decimal value
    XML Parsing Error: xmlParseCharRef: invalid xmlChar value 0

    The line causing this problem is this:

    <p>AL Drive also offers training in the Pass Plus course which will reduce insurance costs by up to 50&#37;& and will help you to become a safer driver.</p>
    I also have this error:

    <html>

    Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    This site has been up for a while and it did used to validate, clearly something has changed!

    Thanks for your help

  2. #2
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    Quote Originally Posted by screaming_banjo View Post
    AL Drive also offers training in the Pass Plus course which will reduce insurance costs by up to 50%& and will help you to become a safer driver.</p>
    Change the "&" to "&amp;"

  3. #3
    Join Date
    Aug 2003
    Location
    Glasgow, Scotland
    Posts
    211
    Hi

    Thanks for that, but I've not got the syntax correct as I'm not getting a 'percent' sign, here's what I've got:

    costs by up to 50&amp;#37

    I think I'm misunderstanding exactly what you mean!

    Thanks for your help

  4. #4
    Join Date
    Sep 2008
    Posts
    408
    Oh, you want this (I'm guessing):

    & #37;
    (take the space out between & and #, if I do it how it should, it'll end up being displayed as just a &#37;

    & opens an character and ; finishes it.

    &amp; = &
    &quot; = "

    etc.

  5. #5
    Join Date
    Aug 2003
    Location
    Glasgow, Scotland
    Posts
    211
    Fantastic thank you....that bit is now validating nicely.

    Don't suppose you know why I'm also getting this:


    <html>

    Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    Thanks again

  6. #6
    Join Date
    Sep 2008
    Posts
    408
    It means you need an xml namespace for <html>

    so changing <html> to <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> should be fine (if your page is xhtml)

  7. #7
    Join Date
    Aug 2003
    Location
    Glasgow, Scotland
    Posts
    211
    Hi

    Apologies for being so dumb!

    I don't really do much in the way of web development anymore and it's only my husbands site that I do, so I'm pretty limited, it should be xhtml though.

    I'm assuming you mean I need to change this:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>

    To:

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    Is that right? (It did used to validate when I first put it up), if you want a wee look it's www.aldrive.co.uk

    Thanks again

  8. #8
    Join Date
    Sep 2008
    Posts
    408
    Yup, thats what I meant

    Not a bad design either, simple and gets the job down. How I like pages to be.

  9. #9
    Join Date
    Aug 2003
    Location
    Glasgow, Scotland
    Posts
    211
    Thank you

    Unfortunately my host has reset my FTP password due to another problem I've been having.

    I'll upload the change later.

    Again, thanks for your help!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles