cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2193) XPathTraversableGenerator with "/" as XPath expression causes subsequent XSLT transformation stages to fail
Date Tue, 08 Apr 2008 11:49:24 GMT
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.


Mime
View raw message