Source files of fsfe.org, pdfreaders.org, freeyourandroid.org, ilovefs.org, drm.info, and test.fsfe.org. Contribute: https://fsfe.org/contribute/web/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_h1.xsl 533B

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