File: test.xsl

package info (click to toggle)
libxslt-ruby 0.9.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 368 kB
  • ctags: 374
  • sloc: ansic: 2,965; ruby: 333; xml: 145; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" encoding="iso-8859-1" indent="no"/>
<xsl:param name="p1"/>	
<xsl:param name="p2"/>

<xsl:template match="/">
	p1:<xsl:value-of select="$p1"/>&#10;
	p2:<xsl:value-of select="$p2"/>&#10;
	<xsl:apply-templates/>
</xsl:template>

<xsl:template match="node">
	<xsl:value-of select="."/>(<xsl:value-of select="@number"/>)&#10;
</xsl:template>

</xsl:stylesheet>