cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: document(), xinclude or what ?
Date Mon, 09 Oct 2000 16:50:34 GMT
Alejandro Raiczyk <> wrote:
>		I have a xsl wich generates all the style of my pages, one
>of the things it should do is to generate the navigation tree wich I have
>defined in a XML file (menu.xml).
>I want this menu.xml file, to be "included" by the XSL and then that the
>corresponding template ( menu ) applies to it. I don't know how to 
>this file from XSL.
>I tried with
>	<xsl:value-of  select="document('../menu.xml')"/>
>  	<xsl:apply-templates select="menu"/>
>and with
>	<include xinclude:parse="xml" xinclude:href="../menu.xml"/>
>  	<xsl:apply-templates select="menu"/>
>but it didn't work.

You need to do both together.

<xsl:apply-templates select="document('../menu.xml')"/>

I still don't fully understand it myself!

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

View raw message