1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 Stefans own xinclude implementation.
5 We really don't want to bother the users with namespaces
8 <xsl:output method="xml" indent="yes"/>
9 <xsl:strip-space elements="*"/>
11 <xsl:template match="node() | @*">
13 <xsl:apply-templates select="@* | node()"/>
18 <!-- <xsl:template match="xi:include" xmlns:xi="http://www.w3.org/2001/XInclude"> -->
19 <xsl:template match="include">
20 <xsl:variable name="href"><xsl:value-of select="@href"/>
22 <xsl:for-each select="document(@href)">
24 <xsl:copy><xsl:copy-of select="@*"/>
25 <xsl:attribute name="base">
26 <xsl:value-of select="$href"/>
28 <xsl:apply-templates select="node()" />
31 <xsl:element name="{local-name(*)}" namespace="{namespace-uri(..)}">
32 <xsl:copy-of select="*/@*"/>
33 <xsl:attribute name="base">
34 <xsl:value-of select="$href"/>
36 <xsl:for-each select="*">
37 <xsl:apply-templates/>