You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2005/11/28 10:41:10 UTC
[DAISY] Updated: Advanced Control Flow - JXTemplate
A document has been updated:
http://cocoon.zones.apache.org/daisy/legacydocs/511.html
Document ID: 511
Branch: main
Language: default
Name: Advanced Control Flow - JXTemplate (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 11/28/05 9:40:58 AM
Updated by: Helma van der Linden
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 22766 bytes (previous version: 22304 bytes)
Content diff:
(122 equal lines skipped)
instead)</li>
</ul>
+++ <p class="note">When used inside flow, JXTemplate has access to Java and can
+++ therefore evaluate expressions like "java.util.Date()" or "java.util.HashMap()".
+++ This does <strong>NOT</strong> work when JXTemplates are used without flow. Some
+++ symptoms:<br/>
+++ [*<jx:out value="${java.util.Date()"/>*] results in [**]</p>
+++
+++ <p class="note"><jx:formatDate value="${java.util.Date()}"
+++ pattern="yyyyMMdd"/> results in 'Cannot format given Object as a Date'</p>
+++
<h1>Parameters</h1>
<h2>lenient-xpath</h2>
(554 equal lines skipped)
specifies an expression that must evaluate to a macro invocation. For example:
</p>
--- <pre>
--- <jx:set var="tags" value="${java.util.HashMap()}"/>
+++ <pre><jx:set var="tags" value="${java.util.HashMap()}"/>
<jx:macro name="dynamic-tag">
<jx:parameter name="id"/>
(25 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes