You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Wechner <mi...@wyona.com> on 2005/11/30 10:09:38 UTC

XPathTraversableGenerator and default namespace

Hi

I have problems using the XPathTraversableGenerator with default namespaces.

The following works:

      <map:generate type="xpathtraversable" src="developers">
        <map:parameter name="xpath" value="/asf:developer"/>
        <map:parameter name="xmlns:asf" value="http://www.apache.org/1.0"/>
      </map:generate>

wheres the the developer XML would be something like

<asf:developer xmlns:asf="http://www.apache.org/1.0">
  <asf:name>.....


but the following doesn't seem to work

<map:generate type="xpathtraversable" src="developers">
        <map:parameter name="xpath" value="/developer"/>
        <map:parameter name="xmlns" value="http://www.apache.org/1.0"/>
<!-- or like this?
        <map:parameter name="xmlns:" value="http://www.apache.org/1.0"/>
-->
</map:generate>

whereas the developer XML would be something like

<developer xmlns="http://www.apache.org/1.0">
  <name>....



Am I missing something, or is it a bug?

Thanks for your help

Michi

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