fsfe-website/build/xslt/get_modules.xsl
Reinhard Müller a42bf42bd6
All checks were successful
continuous-integration/drone/push Build is passing
Refactor "<static-element>" system into "<mdoule>"
Fixes #1345
2020-05-20 18:11:05 +02:00

26 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- XSL script to extract the used modules from a .xhtml file -->
<!-- ====================================================================== -->
<!-- This XSL script processes all <module> elements of a .xhtml file and -->
<!-- outputs the source files for these modules, separated by newlines. -->
<!-- It is used by the script tools/update_xmllists.sh. -->
<!-- ====================================================================== -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="module">
<!-- Directory name -->
<xsl:text>global/data/modules/</xsl:text>
<!-- Filename = module id -->
<xsl:value-of select="@id"/>
<!-- Append a newline -->
<xsl:text>&#xa;</xsl:text>
</xsl:template>
<!-- Suppress output of text nodes, which would be the default -->
<xsl:template match="text()"/>
</xsl:stylesheet>