"Joseph Kesselman" <keshlam(_at_)us(_dot_)ibm(_dot_)com> wrote in message
news:OFAE3EAC25(_dot_)E1215AC5-ON85256CD8(_dot_)004D468A-85256CD8(_dot_)004E5301(_at_)us(_dot_)ibm(_dot_)com(_dot_)(_dot_)(_dot_)
Quoth "Dimitre Novatchev" <dnovatchev(_at_)yahoo(_dot_)com>
What about the following:
...
<xsl:template match="/">
<newxsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<newxsl:text>foo</newxsl:text>
</newxsl:stylesheet>
</xsl:template>
Hmmmmmm. That uses a literal result element with explicit namespace
declaration attribute to work around the limitation on <xsl:attribute>.
Looks like it might actually do the trick... though it's just subtle
enough that I'm not sure I want to take the time to teach it. <smile/>
Yes, this is the simplest possible way to do the job. All other ways involve
some kind of a trick -- e.g. copying artificial attributes.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list