HTML parsing errors with rdfa in Common Tag span elements?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lcurlr
    New Member
    • Jun 2010
    • 8

    HTML parsing errors with rdfa in Common Tag span elements?

    I have been trying to get my HTML pages all up to a common standard and I am now at a point where the only parsing errors are in Amaya.

    Amaya rejects the Common Tag attributes in span elements that are RDFa, i.e., use the attributes of
    typeof="ctag:Ta g"
    and the essential attribute
    resource=

    What version of DOCTYPE for HTML will tolerate these attributes in span elements? Must it be a doctype for XHTML ?

    I only have my pages up to 4.01 Transitional with the html4 loose.dtd

    The pages in question are at phil.aule-browser.com

    I was able to remove many bogus HTML error reports for elements below the tag by not closing the "empty" cspan element that declares the common tag with />

    I just close with > and follow that immediately with </span>

    HTML5 should address that annoyance ...
    Last edited by lcurlr; Jun 9 '10, 03:09 PM. Reason: clarification
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    HTML5 should address that annoyance ...
    HTML5 doesn’t have a complete DTD like HTML 4.01.

    RDFa was never intended to work with HTML 4. you would have to use XHTML (there is a XHTML+RDFa DTD), HTML5 or XHTML5 (both can’t be validated).

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      You can take a look at this draft: RDFa in HTML

      Comment

      • lcurlr
        New Member
        • Jun 2010
        • 8

        #4
        Originally posted by Dormilich
        HTML5 doesn’t have a complete DTD like HTML 4.01.

        RDFa was never intended to work with HTML 4. you would have to use XHTML (there is a XHTML+RDFa DTD), HTML5 or XHTML5 (both can’t be validated).
        There are a variety of suggestions out there for HTML4 - including profile - but I can get none to parse against a DTD

        Comment

        • lcurlr
          New Member
          • Jun 2010
          • 8

          #5
          HTML+RDFa as XHTML

          Originally posted by Dormilich
          HTML5 doesn’t have a complete DTD like HTML 4.01.

          RDFa was never intended to work with HTML 4. you would have to use XHTML (there is a XHTML+RDFa DTD), HTML5 or XHTML5 (both can’t be validated).
          I am now doing a split in my page structure: all .htm are HTML4+ and all .HTML are XHTML + RDFa using
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
          "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
          <html xmlns="http://www.w3.org/1999/xhtml">

          which is now parsing error-free.

          HTML5 should give the option not to use XML-style markup

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            HTML5 should give the option not to use XML-style markup
            if you don’t serve XHTML, you can style your HTML/XHTML source code as you like it.

            Comment

            Working...