Code:
<xsl:value-of select="concat( 'PRINT(',
replace(text(), '\n', ),
');' "/>
<xsl:value-of select="concat( 'PRINT(',
replace(text(), '\n', ),
');' "/>
<xsl:template match="category"> <xsl:copy> <xsl:value-of select="translate(text(), '-', '/')"/> </xsl:copy> </xsl:template>
<xsl:template match="category"> <xsl:copy> <xsl:value-of select="translate(substring-after(text(), '-'), '-', '/')"/>
<xsl:value-of select="concat( 'your_text', text(), '> } ', some_tag_value, 'your_text2')"/>
<xsl:text>your_text</xsl:text><xsl:value-of select="text()/><xsl:text>> } </xsl:text><xsl:value-of select="some_attrib_value"/><xsl:text>your_text2</xsl:text>
<xsl:template match="/"> <xsl:for-each select="/product-preference[@type='not']/product"> <xsl:value-of select="concat(@ref, '-', text(), '
')"/> </xsl:for-each> </xsl:template>
<xsl:template match="/"> <xsl:for-each select="//tag1"> <xsl:value-of select="concat(text(), '
')"/> </xsl:for-each> </xsl:template>
Leave a comment: