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 2007/06/07 20:09:35 UTC

[DAISY] Created: Parameters

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