S
schaf
Hi !
I have a little question. With my XSL File I add additional XML-Tags to
an existing XML-File. But I would like to use a xsl:variable for
inserting a value into an additional xml-attribute.
<xsl:template match="Header">
<xsl:copy >
<xsl:apply-templates select="SubHeader"/>
<xsl:variable name="ProjectName" select="SubHeader/@name"/>
<SubDir name=$ProjectName>
....
Because <subDir> would be treated like an XML-Tag, it is not possible
to add the value of the variable in the name attribute !?!
My destination should look like:
.....
<SubDir name="TestProject">
.....
Is this possible ? Or do I use to "Exportz" the additional XML-Tag in a
second XML file ?
Thanks
I have a little question. With my XSL File I add additional XML-Tags to
an existing XML-File. But I would like to use a xsl:variable for
inserting a value into an additional xml-attribute.
<xsl:template match="Header">
<xsl:copy >
<xsl:apply-templates select="SubHeader"/>
<xsl:variable name="ProjectName" select="SubHeader/@name"/>
<SubDir name=$ProjectName>
....
Because <subDir> would be treated like an XML-Tag, it is not possible
to add the value of the variable in the name attribute !?!
My destination should look like:
.....
<SubDir name="TestProject">
.....
Is this possible ? Or do I use to "Exportz" the additional XML-Tag in a
second XML file ?
Thanks