AnsweredAssumed Answered

how to include another XSL file?

Question asked by tak on Apr 16, 2007
Latest reply on Oct 3, 2008 by roxanne
I have some trouble to use alfresco WCM 2.0.

I would like to make an XSL template including another XSL files,
however I couldn't produce desired HTML file.

What I wrote in XSL is like that.

<xsl:include href="/menu_fragment.xsl" /> <!– (1) –>

<xsl:variable name="t" select="document('/aaa.xml')"/> <!– (2) –>
<xsl:apply-templates select="$t/some_ns:menu" /> <!– (3) –>

(1) include another XSL template.
(2) bind another xml contents.
(3) apply template defined in (1) to bounded xml contents.

in (1), I tried these.
(a)I placed menu_fragment.xsl in web-project root folder.
(b) Same web forms space as this template.
© I tried <xsl:include href="${alf.parent_path}/aegif_menu_fragment.xsl" />

anyone knows how to describe XSL and where to place included XSL files?