Hi Bastien,
first of all, please take care of quoting (see [1]).
You'll find my answers embedded below.
Cheers.
Bastien saquet wrote:
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>
Uhm, that lonely "item" seems to be quite strange: it should be an
XPath absolute expression, related to your documents DTD or XSD.
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?
As a first step, try to put a <map:serialize type="xml"/> just after
the <map:generate/> you reported above and see if the result is what
you expected. If not, consider something wrong in generator's
configuration (probably the xpath, as I said previously).
[1] http://www.netmeister.org/news/learn2quote.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]