Re: [xsl] Generating XSLT

Subject: Re: [xsl] Generating XSLT
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Mon, 15 Nov 2004 17:01:57 +0100
It sure is, but still quite silly that only the namespace is renamed and not the prefixes as well. In other words, just renaming the prefixes _instead_ of the namespaces would have been nicer...

you clearly have to use another namespace in the stylesheet, otherwise
the elements would be taken as xslt instructions and avoiding that is
the whole point of the exercise,

Of course. I have generated enough XSL with XSL, using the alias instruction, to know the pitfalls..


> so I'm not sure I understand your
suggestion to "just rename the prefixes".

Just that all xsl parsers I have seen stick to the stylesheet-prefix, rather than the result-prefix, which I would highly prefer.


But then again, I rarely have the opportunity to use an XSLT 2 parser...

:-P

so XSLT 2 engines will in practice
all use the prefix specified on result-prefix rather than the prefix
used in the stylesheet.

I hope so...


Grtz

Current Thread