[daisy] How to navigate XmlObjectXMLizable in JX Templates?
Robert Cecil
rob.cecil at gmail.com
Wed Dec 27 13:59:54 CST 2006
Hi I am building a couple of custom search functions, taking the
approach:
1. A Flowscript that performs a query against the Query manager.
2. Creates a new XmlObjectXMLizable object, using the
searchResultDocument from the query output.
3. Stuff that object into a viewData, and
4. Calling cocoon.sendPage() for a JX template.
I would like to be able to parse the XmlObjectXMLizable object in my
template but I can't seem to infer the structure. To test, I added
temporarily
<jx:out value="${pageXml}" />
to my template, and I can see the unformatted results in my page.
I would like to be able do something like:
<jx:forEach var="row" items="${pageXml.searchResult.rows}" >
And iterate over each row.
Thanks!
Rob Cecil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20061227/7304f757/attachment.html
More information about the daisy
mailing list