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/[EMAIL PROTECTED]

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


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

Reply via email to