Hello all,

today I encountered a strange behaviour in the XPath Directory Generator. I was using it on a directory with about 600 files. If I was specifying the attribute value for the parameter xpath as root ("/", see below), the generated output could only be processed by cocoon in a transformer generating an html page.

...
<map:generate type="xpathdirectory" src="content">
  <map:parameter name="xpath" value="/"/>
  <map:parameter name="xmlFiles" value="\.x.*$"/>
</map:generate>
...

Using the same generator with an other matcher to generate a PDF did not work: An error message was shown, stating that "fo:flow needs block level children". However, using content view, manually saving the resulting file and transforming it worked. After quite a while I changed the value of xpath from "/" to "/therootelement" and everything worked fine. Is there a bug in the xpath directory generator or am I doing something wrong?

Cheers

--mv


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to