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

Re: RDFa RFE: No Mandated DOCTYPE

From: Sean B. Palmer <sean@miscoranda.com>
Date: Mon, 3 Dec 2007 17:42:06 +0000
Message-ID: <b6bb4d890712030942n474cc0d5i1c3f88da87d97f9c@mail.gmail.com>
To: "Shane McCarron" <shane@aptest.com>
Cc: "Simone Onofri" <simone.onofri@gmail.com>, "Karl Dubost" <karl@w3.org>, "Fabien Gandon" <Fabien.Gandon@sophia.inria.fr>, "Ivan Herman" <ivan@w3.org>, bnowack@semsol.com, dave@dajobe.org, public-rdf-in-xhtml-tf@w3.org

On Dec 3, 2007 4:01 PM, Shane McCarron <shane@aptest.com> wrote:

> I do not believe it will be mandatory

Why would it not be mandatory?

> Forgive my ignorance, but don't these "off the shelf" tools permit
> access to the DOCTYPE declaration?

Sadly not. XSLT, XPath, and XQuery don't:

* http://www.dpawson.co.uk/xsl/sect2/N2281.html#d4029e49
* http://cafeconleche.org/XOM/xpath.xhtml
* http://www.w3.org/TR/xquery/

And SAX 1.0 doesn't...


SAX 2.0 does have an event for it, but I read somewhere that SAX
parsers aren't required to fire such an event, and it looks like even
if they do then they might not pass along the Public/System IDs.
Python, for example:

"This interface specifies only those DTD events required for basic
parsing (unparsed entities and attributes)."
- http://docs.python.org/lib/module-xml.sax.handler.html

So that's pretty much all of the tools that I use out of the window,
except for the DOM which does support it. But the DOM doesn't stream,
and I don't think that the PullDOM supports DTD events...

Sean B. Palmer, http://inamidst.com/sbp/
Received on Monday, 3 December 2007 17:42:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:25 UTC