doc/versionning/migration: sample.xsl

File sample.xsl, 0.8 KB (added by anp, 21 months ago)

XSL d'exemple

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3        xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
4        xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive">
5        <xsl:output encoding="UTF-8" method="xml"/>
6        <xsl:param name="pParam"/>
7
8        <xsl:template match="/*">
9                <xsl:copy>
10                        <xsl:apply-templates select="@*|node()"/>
11                </xsl:copy>
12        </xsl:template>
13
14        <!-- TODO
15        <xsl:template match="sp:test">
16                <test2>
17                        <xsl:apply-templates select="@*|node()"/>
18                </test>
19        </xsl:template2>
20        -->
21
22        <!-- ### -->
23        <!-- # Cas g�ral : on copie -->
24        <!-- # -->
25        <xsl:template match="@*|node()">
26                <xsl:copy>
27                        <xsl:apply-templates select="@*|node()"/>
28                </xsl:copy>
29        </xsl:template>
30
31</xsl:stylesheet>