diff options
Diffstat (limited to 'examples/xsl/hello1.xsl')
-rw-r--r-- | examples/xsl/hello1.xsl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/xsl/hello1.xsl b/examples/xsl/hello1.xsl new file mode 100644 index 0000000..cfb3eb0 --- /dev/null +++ b/examples/xsl/hello1.xsl @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="text"/> +<xsl:param name="inputFile">-</xsl:param> +<xsl:template match="/"> + <xsl:call-template name="t1"/> +</xsl:template> +<xsl:template name="t1"> + <xsl:for-each select="/"> + <xsl:value-of select="/html/body/div"/> + </xsl:for-each> +</xsl:template> +</xsl:stylesheet> |