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> |