XML Data:
<ProcessData>
<OUTPUT>
<SourceAgent>Agent1</SourceAgent>
<DestinationAgent>Agent2</DestinationAgent>
</OUTPUT>
</ProcessData>
XSLT:
<sourceAgent QMgr="BSCMFT01" agent="'<xsl:value-of select="/ProcessData/OUTPUT/SourceAgent/text()"/>'"/>
<destinationAgent QMgr="BSCMFT01" agent="'<xsl:value-of select="/ProcessData/OUTPUT/DestinationAgent/text()"/>'"/>
Desired Output:
<sourceAgent QMgr="BSCMFT01" agent="Agent1"/>
<destinationAgent QMgr="BSCMFT01" agent="Agent2"/>
Error: The value of attribute "agent" associated with an element type "sourceAgent" must not contain the '<' character.
Summary:
- Using XSLT 1.0
- I've tried escaping the ">" and "<" using "< ;" and "> ;"