Hello,
* In the xsl I set the output method to text. Within the style sheet I am trying to include some string also as output, apart from node values of the input xml.
* I do not see any text output in the resulting transformation. Where am I doing a mistake?
Xsl rule is something like:
<xsl:template match="/Model/MOC">
<xsl:choose>
<xsl:when test="/Model/MOC='MOC1'">Class <xsl:value-of select="/rncModel/mngMOC"/>
<xsl:apply-templates select="attrName"/>
</xsl:when>
</xsl:choose>
</xsl:template
Xml
<Model>
<!-- MOC1-->
<MOC>MOC1
<!--method 1-->
<Method>publish
<attrName>Load</attrName>
</Method>
</MOC>
<!-- MOC2-->
</Model>
