cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: document(), xinclude or what ?
Date Mon, 09 Oct 2000 16:50:36 GMT
Alejandro Raiczyk <alejandror@technisys.com.ar> 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 
>"include"
>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 http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message