リテラル結果要素記述例

ソースXML文書

<?xml version="1.0" encoding="Shift_JIS"?>
<pet>
  <name eng="dog"></name>
</pet>

XSLTスタイルシート
<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
   <answer>そのまま出力される</answer>
  </xsl:template>
</xsl:stylesheet>

結果XML文書
<?xml version="1.0" encoding="Shift_JIS" ?>
<answer>そのまま出力される</answer>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License