cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Comment added to Advanced Control Flow - JXTemplate
Date Wed, 11 Jan 2006 08:41:21 GMT
A comment has been created.

http://cocoon.zones.apache.org/daisy/legacydocs/511.html

Document ID: 511
Name: Advanced Control Flow - JXTemplate
Branch: main
Language: default

Created by: Andreas Hochsteger
Created on: 1/11/06 8:41:16 AM
Visibility: public

I'm missing the information, how to stream SAX events directly into the JXTemplate page.
Here's what I did to stream the cforms labels (I hope the XML syntax comes through):

<!-- Define macro for easier usage: -->
<jx:macro name="xmlize-widget-label">
  <jx:parameter name="widget"/>
  <jx:set var="ignored" value="${widget.generateLabel(cocoon.consumer)}"/>
</jx:macro>

<!-- Use somewhere in your page: -->
<xmlize-widget-label value="${widget}"/>


Mime
View raw message