xsl-list
[Top] [All Lists]

Re: [xsl] Identity transform (case conversion)

2006-07-08 22:14:52
It would really be a nasty bug, in case Mukul got that output.

However, what he got (note the capitalisation) was:

<AUTHOR xmlns:auto-ns1="HTTP://WWW.W3.ORG/XML/1998/NAMESPACE"
xmlns:A="XYZ" xmlns:B="PQR">

Also in the code sample he provided there is no filtering of the "xml"
namespace.

Mukul's statement that:

But this predicate doesn't work as expected, with MSXML. MSXML outputs
xmlns:auto-ns1="http://www.w3.org/xml/1998/namespace"; in the absence
of this predicate.

is both contradictory and untrue. Contradictory, because he says "this
predicate doesn't work as expected, with MSXML" and then makes it
clear what "didn't work" was produced "in the absence of this
predicate".

Untrue, because the real result is very different:

   xmlns:auto-ns1="HTTP://WWW.W3.ORG/XML/1998/NAMESPACE"



--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.



On 7/7/06, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
> But this predicate doesn't work as expected, with MSXML.
> MSXML outputs
> xmlns:auto-ns1="http://www.w3.org/xml/1998/namespace"; in the
> absence of this predicate.

That sounds like a nasty bug, because the XML namespaces spec states that
the only prefix you can bind to this namespace URI is the prefix "xml".
However, the workaround would be to test the namespace URI rather than the
prefix.

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>
--~--



--~------------------------------------------------------------------
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>
--~--