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