The xsl:include element is allowed as a top-level
element only. It must be used when the XML tree
for XSLT document is created (parsing the main
XSLT document and included documents). The bug is
that Sablotron doesn't complains.
Petr
James Boulton wrote:
>
> I think this may be a bug. The following XSL works:
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html" media-type="text/html" encoding="utf-8"/>
> <xsl:template match="/products">
> <div><xsl:include href="file://path.xsl"/></div>
> </xsl:template>
> </xsl:stylesheet>
>
> But this doesn't...
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html" media-type="text/html" encoding="utf-8"/>
> <xsl:template match="/products">
> <xsl:include href="file://path.xsl"/>
> </xsl:template>
> </xsl:stylesheet>
>
> The only differnce is the <div> surrounding the include... ??
>
> Cheers,
>
> --Jim
--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com