Re: [xml-dev] How to get XPath in a XSLT shylesheet

From
Andrew Welch <>
To
David Carlisle <>
Date
2007-01-10T16:25:36Z
ID
<>
Thread
Re: [xml-dev] How to get XPath in a XSLT shylesheet
On 1/10/07, David Carlisle <> wrote:
> If using a DTD to define (say) xhtml, you need to declare xmlns as an
> attribute (as it is an attribute at the DTD layer) and it's very
> tempting to specify that its only allowed value is
> http://www.w3.org/1999/xhtml
> but unfortunately #FIXED doesn't just define the legal value, it
> defaults that value if the attribute is omitted, so I don't think that
> in DTD there is any way to indicate (other than in comments) the
> namespace for which the grammar is intended, without defaulting this
> attribute.

...agreed but the author of the XML should still leave the namespace
declarations in the XML - just because a by-product of making them
#FIXED is that they are also defaulted, doesn't mean they should be
removed from the XML - thats just frustrating.

I've always thought augmenting XML through validation is a really bad
idea - who wants to wade through a DTD to get the full picture?  (and
then have to validate *every* time the XML is read)

I guess we all know DTDs, XML and namespaces don't play well together
- its just a shame  its used so often...