A working example is attached. Type "sabcmd main.xsl main.xml". If you
call sablot from an application, you have to either (1) specify the
include href with an absolute path (<xsl:include
href="file:/dir/home.xsl"/>), or (2) read the file to be included by the
application and pass it as additional argument (<xsl:include
href="arg:/my_include"/>).
Regards,
Petr
Guillaume Rouchy wrote:
> Would you have some example of include a stylesheet into another one ?
> Alternatively could you tell me how it works ?
> The following doesn't seem to work :
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:include href="home.xsl"/>
> </xsl:stylesheet>
>
> with home.xsl being a stylesheet like :
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="chapter">
> <h2>A Title</h2>
> <ul>
> <xsl:apply-templates select="section"/>
> </ul>
> </xsl:template>
>
> <xsl:template match="section">
> some section...
> </xsl:template>
>
> </xsl:stylesheet>
>
> Thanks very much for your help
>
> Guillaume
--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com
include.zip