W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > January 2009

Re: Holy grail

From: Shane McCarron <shane@aptest.com>
Date: Thu, 08 Jan 2009 08:29:33 -0600
Message-ID: <49660DCD.5050006@aptest.com>
To: Sam Kuper <sam.kuper@uclmail.net>
CC: public-rdf-in-xhtml-tf@w3.org

Thanks for the pointer to the oxygen discussion - I will comment more 
there so everyone on that side understands what is going on.

I have comments on your posting inline:

Sam Kuper wrote:
>
>     I would like to be able to write an XHTML+RDFa document that:
>
>         * validates in Oxygen (or other programs using Xerces for
>           validation), and
>
The problem with oxygen and its use of DTDs is that it slavishly does 
not implement namespace support.  The W3C validator has effectively 
implemented namespace support by ignoring warnings about xmlns: 
attribute declarations.  So...  that's why it validates in the W3C 
validator and the Oxygen validator complains.  I would just ignore those 
warnings in the oxygen validator.  They are harmless.
>
>         * validates in the W3C validator, and
>         * is capable of containing <style> and <script> elements and
>           other valid XHTML Strict elements, even if they do contain
>           whitespace*, and
>
This is a red herring.  xml:space is set to "preserve" in ALL XHTML 
family document types for ALL elements.  xml:space is an attribute that 
tells the xml processor whether the contents of elements should be kept 
intact or processed.  XHTML requires that an XML processor leave the 
contents of all elements intact and pass them to the application layer.
>
>         * is capable of containing (X)HTML entity references such as
>           &hellip;, and
>
Sure - as long as you use DTDs.  There are no XML Entity declarations in 
XML Schema, so there is no way for a processing engine to know about those.
>
>         * is capable of containing elements from FOAF, DC, etc, within
>           the document, by using those languages' namespaces as
>           appropriate.
>
I don't think you mean elements here, do you?  Don't you mean attribute 
values that used curies from those vocabularies?  If so, you can do this 
now.  It just works.
>
>     As far as I can tell, such a thing is not currently possible, but
>     I hope I am wrong!
>

Well, we think you are wrong.  I for one do this all the time - works 
great!  My inclination would be to lobby the people at oxygen to add a 
"ignore xmlns: warnings" flag for validation if those warnings are 
really bothering you.

I will look closely at the DTD and XML Schema implementations to ensure 
they both set xml:space as we expect them to, but I am pretty sure they do.

Thanks for your interest and support of W3C activities!

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com
Received on Thursday, 8 January 2009 14:32:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 8 January 2009 14:32:16 GMT