Start a new line with : text « XSLT stylesheet « XML






Start a new line with



<?xml version="1.0"?>
<xsl:stylesheet version="2.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xsl:output method="text"/>

  <xsl:template match="/">
    <xsl:text>&#xA; 1 &#xA; 2 &#xA; </xsl:text>

  </xsl:template>
</xsl:stylesheet>

Output:


 1 
 2 
 

 








Related examples in the same category

1.Copy text with
2.Use text() function to get text
3.match an element and get text with text() function
4.Get value with