/[formed]/trunk/contrib/remove-bool-text.xsl
ViewVC logotype

Annotation of /trunk/contrib/remove-bool-text.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (hide annotations)
Sat Aug 11 13:53:56 2007 UTC (17 years, 6 months ago) by teichmann
File MIME type: application/xml
File size: 637 byte(s)
Removed support for "text" attributes in bool items.
1 teichmann 32 <?xml version="1.0" encoding="UTF-8" ?>
2     <!--
3     (c) 2007 by Intevation GmbH
4     Author: Sascha L. Teichmann
5     Removes 'text' attributes from 'bool' elements.
6     -->
7     <xsl:stylesheet version="1.0"
8     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
9     <xsl:output method="xml" encoding="UTF-8"/>
10    
11     <xsl:template match="bool">
12     <bool>
13     <!-- copy all attributes except 'text' -->
14     <xsl:copy-of select="@*[local-name() != 'text']"/>
15     </bool>
16     </xsl:template>
17    
18     <!-- copy thru all other stuff -->
19     <xsl:template match="@*|node()">
20     <xsl:copy>
21     <xsl:apply-templates select="@*|node()"/>
22     </xsl:copy>
23     </xsl:template>
24    
25     </xsl:stylesheet>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26