File: hello1.xsl

package info (click to toggle)
xmlstarlet 1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,504 kB
  • sloc: sh: 4,313; ansic: 4,268; xml: 1,886; makefile: 56
file content (13 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
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>