I have an XML input file and I'm trying to output the result of a call like:
<xsl:value-of select="Some/Value"/>
into an attribute.
<Output Attribute="Value should be put here"/>
My problem is, since I'm outputting XML, the XSL processor won't allow me to write:
<Output Attribute="<xsl:value-of select="Some/Value"/>">
How do you accomplish this?
The easiest way is to use attribute value templates, like this:
<Output Attribute="{Some/Value}"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With