Add stylesheet used for removing tile from samples.xml.
[thenextsample.git] / copy.xsl
blob70571a9c6b9ce09fce8ad1d42b735cd3a5336d5c
1 <?xml version='1.0' encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0"
3 xml:lang="en"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:p="tag:fenglich.fastmail.fm,2007:Pottery"
6 xmlns="tag:fenglich.fastmail.fm,2007:Pottery"
7 exclude-result-prefixes="p"
11 <xsl:template match="p:sample">
12 <sample>
13 <xsl:copy-of select="@*"/>
14 <xsl:copy-of select="p:tile/@*"/>
15 <xsl:copy-of select="node()[name() != 'tile']"/>
16 </sample>
17 </xsl:template>
19 <xsl:template match="@*|node()">
20 <xsl:copy>
21 <xsl:apply-templates select="@*|node()"/>
22 </xsl:copy>
23 </xsl:template>
24 </xsl:stylesheet>
26 <!--
27 vim: et:ts=4:sw=4:sts=4
28 -->