elements to attribute value
Hi,
i've this XML-structure:
...
<Ident>
<activ>1</active>
<Product>
<ID>051845</ID>
<Value>car</Value>
</Product>
</Ident>
...
and i will:
<mytest ValType="String" Type="ATTR" Value="<Ident><activ>1</active><Product><ID>051845</ID><Value>car</Value></Product></Ident>"/>
This dosn't work:
<mytest ValType="String" Type="ATTR">
<xsl:copy-of select="Ident"/>
</mytest>
and this also not:
<mytest ValType="String" Type="ATTR">
<xsl:variable name="temp">
<xsl:copy-of select="Ident"/>
</xsl:variable>
<xsl:attribute name="Value">
<xsl:value-of select="$temp"/>
</xsl:attribute>
</mytest>
What's wrong?
Thanks for your time!
Richie
|