Commit fde331ed authored by Alex Theg's avatar Alex Theg
Browse files

add metasheet to run 2 sheets in sequence

parent 9e8c7673
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="3.0"
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:variable name="transformation-sequence">
<xsw:transform version="3.0">detect-numbered-lists.xsl</xsw:transform>
<xsw:transform version="3.0">itemize-detected-lists.xsl</xsw:transform>
<!-- Dummy template quiets anxious XSLT engines when HTML is provided as input. -->
<xsl:template match="/html:html" xmlns:html="">
<!-- traps the root node of the source and passes it down the chain of transformation references -->
<xsl:template match="/">
<xsl:variable name="source" select="."/>
<xsl:iterate select="$transformation-sequence/*">
<xsl:param name="sourcedoc" select="$source" as="document-node()"/>
<xsl:on-completion select="$sourcedoc"/>
<xsl:with-param name="sourcedoc">
<xsl:apply-templates select=".">
<xsl:with-param name="sourcedoc" select="$sourcedoc"/>
<xsl:template match="xsw:transform">
<xsl:param name="sourcedoc" as="document-node()"/>
<xsl:variable name="xslt-spec" select="."/>
<xsl:variable name="runtime" select="map {
'xslt-version' : xs:decimal($xslt-spec/@version),
'stylesheet-location' : string($xslt-spec),
'source-node' : $sourcedoc }" />
<!-- The function returns a map; primary results are under 'output'
unless a base output URI is given -->
<xsl:sequence select="transform($runtime)?output"/>
<!-- Not knowing any better, we simply pass along. -->
<xsl:template match="*">
<xsl:param name="sourcedoc" as="document-node()"/>
<xsl:sequence select="$sourcedoc"/>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment