On Mar 27, 2008, at 12:16 PM, Luca Morandini wrote:
Vadim Gritsenko wrote:
On Mar 27, 2008, at 4:31 AM, Luca Morandini wrote:
So, it seems the correct behavior, given my setup, would be: add
"*.jx" files to the known list of XML resources within the depth
of 4 and perform the XPath query.
I think you just need to set rootRE/includeRE/excludeRE parameters.
Modifying the XPathTraversableGenerator you mean ?
Not modifying - configuring:
<map:parameter name="include" value="<put here regexp>"/>
See
http://cocoon.apache.org/2.1/userdocs/directory-generator.html
Vadim
Well, it could be done, but then the meaning of the "xmlFiles"
parameter should be changed as well, since it is now at odds with
the parameter of the same name in XPathDirectoryGenerator
<<xmlFiles: The xml files pattern. Specifies the files that should
be handled as XML files. XPath queries will only be tried on files
matching this pattern>>.
If you could confirm this, I would be glad to add some
documentation to the XPathTraversableGenerator page.
Yes above description is correct.
I'll add a bit of doc then, to avoid others falling into the same
trap.
Regards,
--------------------
Luca Morandini
www.lucamorandini.it
--------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]