on 09-10-2008 2:00 PM
Hi everybody,
in the target structure I have to create elements dynamically.
But this does not work:
<xsl:template name="process-message">
<!-- params: pattern, role -->
<xsl:variable name="ELEMENTNAME">
<xsl:value-of select="anyNode"/>
</xsl:variable>
<xsl:element name="($ELEMENTNAME)"> // HERE IS THE ERROR
<xsl:apply-templates mode="text"/>
</xsl:element>
</xsl:template>
Any ideas?
Regards Mario
solved it.+
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Instead of "($ELEMENTNAME)", give "$ELEMENTNAME", i.e, remove the brackets.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.