cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonpday <>
Subject JXTemplate parsing imported XML
Date Fri, 30 Mar 2007 23:08:30 GMT


I'm having trouble using JEXL or JXPath within a JXTemplate.  I have defined
a jx file that imports XML content and then based on the imported content,
performs operations (e.g. iterate, etc).  I can import an XML tree and
assign that to a jx var, but cant then traverse the tree to use the content. 
My code currently looks like this: 

<jx:set var="personaList">
 <jx:import uri="http://somehost/personas?name=test&amp;namespaceId=2547"/>

 <jx:out value="${personaList}"/> 

 <jx:forEach select="#{personaList/personas[position() &lt;=
   <jx:out value="#{./personaUri}"/>

the import returns the following content: 


How can I iterate through the tree?  I think the problem is in nominating
the variable as the root node of the DOM so that the XPath can traverse the
tree.  I've tried all sorts of variations and cant make it work.  Is there
some other way to do this?

Your help would be appreciated! 

View this message in context:
Sent from the Cocoon - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message