This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: problem generating dynamic namespace declarations
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: problem generating dynamic namespace declarations
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 18 Jul 2000 10:28:51 +0100
- Reply-To: xsl-list at mulberrytech dot com
> But in this case as is the case if writing xpath valued attributes,
> this isn't quite what you want to do, as you want to generate a
> namespace declaration that isn't used in the element or
> attribute name.
Yes, the requirement is there and I think there's no way of doing it. If you
wanted to generate, for example:
<xsl:variable name="my:var" select="3" xmlns:my="me.uri"/>
you would have to do it by generating an unwanted attribute my:dummy, for
example by writing
<axsl:variable name="my:var" select="3" my:dummy="" xmlns:my="me.uri"/>
Mike
PS: copying namespace nodes using <xsl:copy>, as per your previous reply,
isn't guaranteed to work: the effect is undefined.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list