Created Debian package
[xmldoc.git] / preprocess.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0"
3                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4                 xmlns="http://www.w3.org/TR/xhtml1/strict">
5
6 <xsl:output method="xml" indent="yes" encoding="iso-8859-1"
7             doctype-system="/usr/local/xslt/doc.dtd"/>
8
9
10 <xsl:template match="include">
11    <xsl:apply-templates select="document(@href)"/>
12 </xsl:template>
13
14 <!--
15 <xsl:template match="*">
16    <doc>
17    <xsl:copy-of select="@*"/>
18    <xsl:copy-of select="node()"/>
19    </doc>
20 </xsl:template>
21 -->
22
23 <xsl:template match="*">
24    <xsl:copy>
25       <xsl:copy-of select="@*"/>
26       <xsl:apply-templates/>
27    </xsl:copy>
28 </xsl:template>
29 </xsl:stylesheet>
30