Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2009-04-08 13:30:15 -0400
committerpelder2009-04-08 13:30:15 -0400
commit793ed28d9476395ec60026f423fcf2911eb22123 (patch)
tree3f131f5254f05c7d6a492e0a591a595b61b3bc0e
parent748d186f8d288302f1a572f8c129012099321da6 (diff)
downloadorg.eclipse.jet-793ed28d9476395ec60026f423fcf2911eb22123.tar.gz
org.eclipse.jet-793ed28d9476395ec60026f423fcf2911eb22123.tar.xz
org.eclipse.jet-793ed28d9476395ec60026f423fcf2911eb22123.zip
[271663] Make c:with tag ignore content if select expression returns no result
-rw-r--r--doc/org.eclipse.jet.doc/references/taglibs/controlTags/withTag.html8
-rw-r--r--plugins/org.eclipse.jet/plugin.xml2
2 files changed, 6 insertions, 4 deletions
diff --git a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/withTag.html b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/withTag.html
index 2adea59..d57fe5e 100644
--- a/doc/org.eclipse.jet.doc/references/taglibs/controlTags/withTag.html
+++ b/doc/org.eclipse.jet.doc/references/taglibs/controlTags/withTag.html
@@ -18,7 +18,7 @@
</TABLE>
<HR>
<P><B>with</B></P>
-<P><P> Evaluate the tag body with the XPath context set to the result of the'select' XPath expression. The XPath context is restored to its previous value once the tag handler completes.<P><P>If the XPath expression selects multiple objects, the first object is used.<P><P>If the XPath expression selects no objects, then an error occurs and the block is executed with the current context object.<P><P>Optionally, an XPath variable may be set by providing a 'var' attribute. The variable is restored to its previous value or removed if not previously set once the tag handler completes.<P> </P>
+<P><P> Evaluate the tag body with the XPath context set to the result of the'select' XPath expression. The XPath context is restored to its previous value once the tag handler completes.<P><P>If the XPath expression selects multiple objects, the first object is used.<P><P>If the XPath expression selects no objects, then the body content block is not executed.<P><P>Optionally, an XPath variable may be set by providing a 'var' attribute. The variable is restored to its previous value or removed if not previously set once the tag handler completes.<P> </P>
<HR>
<TABLE border="1" width="100%">
<TBODY>
@@ -28,7 +28,8 @@
<TD width="10%">required</TD>
<TD><SPAN style="font-family: monospace">
&lt;c:with select=&quot;<I>value</I>&quot;&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>content to process if tag condition is
+ satisfied</I><BR>
&lt;/c:with&gt;
</SPAN></TD>
</TR>
@@ -36,7 +37,8 @@
<TD width="10%">full tag</TD>
<TD><SPAN style="font-family: monospace">
&lt;c:with select=&quot;<I>value</I>&quot; var=&quot;<I>value</I>&quot;&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
+ &nbsp;&nbsp;&nbsp;&nbsp;<I>content to process if tag condition is
+ satisfied</I><BR>
&lt;/c:with&gt;
</SPAN></TD>
</TR>
diff --git a/plugins/org.eclipse.jet/plugin.xml b/plugins/org.eclipse.jet/plugin.xml
index 53f2fda..b152912 100644
--- a/plugins/org.eclipse.jet/plugin.xml
+++ b/plugins/org.eclipse.jet/plugin.xml
@@ -563,7 +563,7 @@ If this tag is not directly contained by a 'choose' tag, then an error results.
If the XPath expression selects multiple objects, the first object is used.
-If the XPath expression selects no objects, then an error occurs and the block is executed with the current context object.
+If the XPath expression selects no objects, then the body content block is not executed.
Optionally, an XPath variable may be set by providing a &apos;var&apos; attribute. The variable is restored to its previous value or removed if not previously set once the tag handler completes.
</description>

Back to the top