XPathTraversableGenerator with "/" as XPath expression causes subsequent XSLT
transformation stages to fail
-----------------------------------------------------------------------------------------------------------
Key: COCOON-2193
URL: https://issues.apache.org/jira/browse/COCOON-2193
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.2
Reporter: Luca Morandini
Priority: Minor
After a XPathTraversableGenerator stage with "/" as xpath expression, no XSLT
trasnformation is possible (a runtime error is raised).
In other words, this works:
<map:match pattern="menu.jx">
<map:generate type="xpathtraversable" src="blockcontext:/">
<map:parameter name="depth" value="4"/>
<map:parameter name="include" value="^gs|resource$|pages$|menu.xml$"/>
<map:parameter name="exclude" value="gsmain"/>
<map:parameter name="xpath" value="/page/*"/>
</map:generate>
<map:transform src="xslt/menu.xsl"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
This doesn't (look at the xpath expression of the generator):
<map:match pattern="menu.jx">
<map:generate type="xpathtraversable" src="blockcontext:/">
<map:parameter name="depth" value="4"/>
<map:parameter name="include" value="^gs|resource$|pages$|menu.xml$"/>
<map:parameter name="exclude" value="gsmain"/>
<map:parameter name="xpath" value="/"/>
</map:generate>
<map:transform src="xslt/menu.xsl"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
NOTE: This issue was raised as well in 2006:
http://mail-archives.apache.org/mod_mbox/forrest-dev/200601.mbox/[EMAIL
PROTECTED]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.