Created
April 30, 2014 23:36
-
-
Save kehh/527b4aadb14310ede189 to your computer and use it in GitHub Desktop.
Strip taxonomy xslt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <!--identity template copies everything forward by default--> | |
| <xsl:template match="node()|@*"> | |
| <xsl:copy> | |
| <xsl:apply-templates select="node()|@*"/> | |
| </xsl:copy> | |
| </xsl:template> | |
| <!--empty template suppresses this attribute--> | |
| <xsl:template match="list[@code = 'taxonomy']"> | |
| <list code="taxonomy" hierarchical="1" system="0" vocabulary="1"> | |
| <labels> | |
| <label locale="en_AU"> | |
| <name>Taxon</name> | |
| </label> | |
| </labels> | |
| <items> | |
| <item idno="Animalia" enabled="1" default="0"> | |
| <labels> | |
| <label locale="en_AU" preferred="1"> | |
| <name_singular>Animal</name_singular> | |
| <name_plural>Animals</name_plural> | |
| </label> | |
| </labels> | |
| </item> | |
| </items> | |
| </list> | |
| </xsl:template> | |
| </xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment