cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <lmorand...@ieee.org>
Subject [2.2]: XPathTraversableGenerator with xpath expression equal to "/"
Date Mon, 07 Apr 2008 09:41:57 GMT
Folks,

it seems that, 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>

Since this issue (that is not in Jira) was raised a couple years ago 
(see [1]), I wonder if it has been left unresolved or there is something 
I don't know about this.

Regards,

[1] 
http://mail-archives.apache.org/mod_mbox/forrest-dev/200601.mbox/%3c43D4B48F.50504@apache.org%3e

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message