Files
fsfe-website/about/printable/get_h1.xsl
gollo 5b77ef12f1 2009-07-09 Martin Gollowitzer <gollo@fsfe.org>
* moved from /documents/

svn path=/trunk/; revision=12932
2009-07-09 08:06:27 +00:00

17 lines
538 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="h1">
<xsl:value-of select="node()"/>
<!-- Add dashes between multiple h1 headings -->
<xsl:if test="../@id='fsfe'"> - </xsl:if>
<xsl:if test="../@id='free_software'"> - </xsl:if>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
</xsl:stylesheet>