Subject: RE: A colon is not allowed in the name
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 25 Mar 2009 22:43:37 -0000
|
> 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/
|