File: animal.xsl

package info (click to toggle)
xmlunit 1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,456 kB
  • sloc: java: 11,316; xml: 4,515; makefile: 8; php: 1
file content (10 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8"/>

<xsl:template match="animal">
  <xsl:param name="whatAnimal"><xsl:value-of select="."/></xsl:param>
  <xsl:element name="{$whatAnimal}"/>
</xsl:template>

</xsl:stylesheet>