File: param1.xsl

package info (click to toggle)
xmlstarlet 1.0.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,164 kB
  • ctags: 389
  • sloc: ansic: 4,578; sh: 3,109; xml: 1,821; makefile: 92
file content (16 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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="Text"/>
<xsl:param name="Count"/>
<xsl:template match="/">
  <xsl:call-template name="t1"/>
</xsl:template>
<xsl:template name="t1">
  <xsl:for-each select="/xml">
    <xsl:value-of select="$Text"/>
    <xsl:value-of select="$Count"/>
    <xsl:value-of select="'&#10;'"/>
  </xsl:for-each>
</xsl:template>
</xsl:stylesheet>