XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] How to get XPath in a XSLT shylesheet

On 1/10/07, David Carlisle <davidc@nag.co.uk> 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...


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS