Output text : text output « XSLT stylesheet « XML Tutorial






File: Data.xml

<?xml version="1.0"?>

<message>test</message>

File: Transform.xslt
<stylesheet version="1.0"
  xmlns="http://www.w3.org/1999/XSL/Transform">
  <output method="text" />

  <template match="/">
    <text>Message: </text>
    <apply-templates />
  </template>

</stylesheet>








5.7.text output
5.7.1.Output text
5.7.2.Add text to final output
5.7.3.text disable-output-escaping="yes"