You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Luca Morandini (JIRA)" <ji...@apache.org> on 2008/04/08 13:49:24 UTC

[jira] Created: (COCOON-2193) XPathTraversableGenerator with "/" as XPath expression causes subsequent XSLT transformation stages to fail

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/%3c43D4B48F.50504@apache.org%3e



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.