code_junkie

How do I preserve markup tags when using XSLT?

Nov 11th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. <xsl:value-of select="body" />
  2.  
  3. <xsl:copy-of select="body"/>
  4.  
  5. <xsl:template match="title">
  6. <xsl:copy-of select="*"/>
  7. </xsl:template>
  8.  
  9. <xsl:value-of select="body" disable-output-escaping="yes"/>
Add Comment
Please, Sign In to add comment