[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: QName from variable
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|