xsl-list
[Top] [All Lists]

RE: [xsl] A colon is not allowed in the name

2009-03-25 18:44:03
On Wed, March 25, 2009 19:00, Michael Kay wrote:
XSLT will only handle input that is well-formed XML 
conforming to the 
Namespaces recommendation.

I'm curious: why?  Normally the XSLT standard is pretty 
standoffish about parsing (and serialization), and leaves 
such matters to the XML parser. 
Provided that the XSLT processor can be given a DOM tree as 
input, and can give a DOM tree as output, why would it care 
that the source document uses namespaces or not?

It doesn't have to use namespaces. It just has to conform to the namespaces
recommendation. That means that these documents are legal:

(a) <my:a xmlns:my="http://my.com"/>

(b) <a/>

and this one is not:

(c) <my:a/>

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--