xsl-list
[Top] [All Lists]

RE: QName from variable

2005-04-25 10:46:10

I am looking for something like

=====
<xsl:variable name="nodename">
  ... any computation that yields the name of a new element ...
</xsl:variable>

<xsl:element name="$nodename">
 ... anything ...
</xsl:element>
=====


You want <xsl:element name="{$nodename}">. If the name is in a namespace,
use

<xsl:element name="{$nodename}" namespace="{$uri}">

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



<Prev in Thread] Current Thread [Next in Thread>