|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: strange behaviour in Xalan
>>>>> "Michael" == Michael Kay <mhkay@xxxxxxxxxxxx> writes:
>> 2. Where does '
>> xmlns:xml="http://www.w3.org/XML/1998/namespace" ' come from?
Michael> That namespace declaration is implicit on every node, but
Michael> it should never be output on serialization. (Though I'm
Michael> not sure if the spec actually prohibits it).
I've been considering this very point recently. It appears to me that
it is perfectly acceptable (though inefficient) behaviour for
serialisation to output this, as
1) The standard doesn't prohibit it (I've looked, though I may have
missed it), and
2) defining the xml namespace is allowed provided that the exact same
definition as seen above is used.
Therefore when the serialised XML is parsed afresh, there won't be a
problem.
--
Colin Paul Adams
Preston Lancashire
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








