Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Element names from a function call >Thread Next - Re: Element names from a function call Re: Element names from a function callTo: NULL Date: 4/4/2006 1:08:00 PM
mikea_59 wrote:
> How can I generate element names by calling a function? Something like
> this:
>
> <xsl:element name="XYZ:{call_some_local_function_here}">
The documentation
<http://www.w3.org/TR/xslt#section-Creating-Elements-with-xsl:element>
says that the name attribute value is interpreted as an attribute value
template so you can use {} inside there to evaluate any XPath expression
for instance a function call
<xsl:element name="XYZ:{some_XPath_function()}">
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
