cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Created: Parameters
Date Thu, 07 Jun 2007 18:09:35 GMT
A new document has been created.

http://cocoon.zones.apache.org/daisy/documentation/1392.html

Document ID: 1392
Branch: main
Language: default
Name: Parameters
Document Type: Cocoon Document
Created: 6/7/07 6:09:27 PM
Creator (owner): Reinhard Pötz
State: publish

Parts
=====

Content
-------
Mime type: text/xml
Size: 635 bytes
Content:
<html>
<body>

<h2>lenient-xpath</h2>

<p>By default XPath evaluation throws an exception if the supplied XPath does
not map to an existing property. This constraint can be relaxed by setting the
parameter <tt>lenient-xpath</tt> to <tt>true</tt>. In the lenient
mode
evaluation simply returns null if the path maps to nothing.</p>

<p>Example:</p>

<pre>    &lt;map:match pattern="*.jx"&gt;
      &lt;map:generate type="jx" src="documents/{1}.jx"&gt;
           &lt;map:parameter name="lenient-xpath" value="true"/&gt;
      &lt;/map:generate&gt;
      &lt;map:serialize type="xhtml"/&gt;
    &lt;/map:match&gt;
</pre>

</body>
</html>

Collections
===========
The document belongs to the following collections: cdocs-template

Mime
View raw message