Skip to content
Snippets Groups Projects
Commit 985e0bb1 authored by James Clark's avatar James Clark
Browse files

Deal with DTD

parent 2b666643
Branches
Tags
No related merge requests found
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl">
<xsl:output method="text"/>
<xsl:template match="document">
<exsl:document href="{@href}" method="{@method}">
<xsl:if test="@dtd">
<xsl:value-of select="@dtd" disable-output-escaping="yes"/>
</xsl:if>
<xsl:copy-of select="node()"/>
</exsl:document>
</xsl:template>
</xsl:stylesheet>
......@@ -76,10 +76,7 @@
</xsl:template>
<xsl:template name="copy">
<xsl:if test="@dtd">
<xsl:value-of select="@dtd" disable-output-escaping="yes"/>
</xsl:if>
<xsl:copy-of select="node()"/>
<xsl:copy-of select="@dtd|node()"/>
</xsl:template>
<xsl:template match="dir">
......
......@@ -15,7 +15,10 @@
<xsl:template match="document" mode="output">
<saxon:output href="{@href}" method="{@method}">
<xsl:copy-of select="node()"/>
<xsl:if test="@dtd">
<xsl:value-of select="@dtd" disable-output-escaping="yes"/>
</xsl:if>
<xsl:copy-of select="node()"/>
</saxon:output>
</xsl:template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment