A
Amit
Hello Everyone,
This is the code I am using..
<xsl:variable name="var_Temp">
<xsl:value-of select="../ParentNode/ChildNode/Node"/>
</xsl:variable>
<xsl:element name="MyNode">
<xsl:attribute name="attr1">
<xsl:text>attr1 value</xsl:text>
</xsl:attribute>
<xsl:attribute name="attr2">
<xsl:value-of select="$var_Temp"/>
</xsl:attribute>
</xsl:element>
Using the above code I get an output looking like
<MyNode attr1="attr1 value" attr2="Some Value">
</MyNode >
But I need the output to look like this, basically i don't want the
ending tag.
<MyNode attr1="attr1 value" attr2="Some Value" />
It would be real nice, if someone can suggest me some alternatives for
this.
Regards
- Amit Gupta
This is the code I am using..
<xsl:variable name="var_Temp">
<xsl:value-of select="../ParentNode/ChildNode/Node"/>
</xsl:variable>
<xsl:element name="MyNode">
<xsl:attribute name="attr1">
<xsl:text>attr1 value</xsl:text>
</xsl:attribute>
<xsl:attribute name="attr2">
<xsl:value-of select="$var_Temp"/>
</xsl:attribute>
</xsl:element>
Using the above code I get an output looking like
<MyNode attr1="attr1 value" attr2="Some Value">
</MyNode >
But I need the output to look like this, basically i don't want the
ending tag.
<MyNode attr1="attr1 value" attr2="Some Value" />
It would be real nice, if someone can suggest me some alternatives for
this.
Regards
- Amit Gupta