Sounds good, but..., I'm not able to use it.
In my sitemap I have:
<map:generate type="xpathdirectory" src="xml">
<map:parameter name="xpath" value="item"/>
<map:parameter name="xmlFiles" value=""/>
</map:generate>
Then I want to retrieve the value of the element1.
Therefore I wrote in my xsl:
<xsl:for-each select="dir:directory/dir:file/dir:xpath">
<xsl:variable name="element1" select="element1"/>
<xsl:value-of select="$element1"/>
</xsl:for-each>
And, I get nothing... What am I doing wrong?
Cheers,
Bastien
On Nov 19, 2007 4:48 PM, Francesco Chicchiriccò
<[EMAIL PROTECTED]> wrote:
>
> Bastien saquet wrote:
>
> > Hi all,
> >
> > I have a problem to read information from several xml files all stored
> > in the same directory.
> >
> > Basically I need to read in each files (the files are all stored in
> > ./xml directory):
> > <item>
> > <element1>...</element1>
> > <element2>...</element2>
> > </item>
> >
> > Then I want to use these information in my xsl file. But I find no
> > solutions to do that.
> >
> > I tried to used the file generator but I'm a bit confused with it.
> >
> > Does someone know how could I do that?
>
> Try [1] or better [2].
>
> Cheers.
>
> [1] http://cocoon.apache.org/2.1/userdocs/directory-generator.html
> [2] http://cocoon.apache.org/2.1/userdocs/xpathdirectory-generator.html
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]