<br><font size=2 face="sans-serif">Hi Tim (And Ulrich if still an issue)</font>
<br>
<br><font size=2 face="sans-serif">You can use the JSTL core to test the
contents of xmlcontent elements like this:</font>
<br>
<br><font size=2 face="sans-serif">        <c:set
var="toc"><cms:contentshow element="TableOfContents"/></c:set></font>
<br><font size=2 face="sans-serif">        <c:if
test="${toc == 'true'}"></font>
<br><font size=2 face="sans-serif">         
       <cms:include file="tableofcontents.jsp"/></font>
<br><font size=2 face="sans-serif">        </c:if></font>
<br>
<br><font size=2 face="sans-serif">just remember to include the taglib
like this:</font>
<br>
<br><font size=2 face="sans-serif"><%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"
%></font>
<br>
<br><font size=2 face="sans-serif">Hope this helps</font>
<br><font size=2 face="sans-serif"><br>
Best regards<br>
Stefan Uldum Grinsted<br>
---------------------------------<br>
Par No 1 Interactive a|s<br>
sug@interactive.as<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Tim Howland"
<thowland@organic.com></b> </font>
<br><font size=1 face="sans-serif">Sent by: opencms-dev-bounces@opencms.org</font>
<p><font size=1 face="sans-serif">26-07-2005 18:09</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
The OpenCms mailing list <opencms-dev@opencms.org></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif"><opencms-dev@opencms.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">[opencms-dev] test value of a field
in XML content template</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3 face="Times New Roman">Hey all- <br>
<br>
I'm trying to test against a boolean field in an XML content template.
I ran across Ulrich's post: </font><font size=3 face="Courier New"><br>
</font><font size=2 face="Courier New"><br>
Hi all, <br>
<br>
I need to check the value of a xml element of type "OpenCmsBoolean"
in a <br>
xml-content while processing: <br>
<br>
    ... <br>
    <TableOfContents>true</TableOfContents> <br>
    ... <br>
<br>
The opencms taglib allows to check for the element itself using <br>
<cms:contentcheck ifexists="TableOfContents">, but not
for the value of it <br>
(true|false). <br>
<br>
Any ideas? <br>
<br>
Thanks and regards <br>
Ulrich </font><font size=3 face="Courier New"><br>
</font><font size=3 face="Times New Roman"><br>
<br>
I'm having the same issue. Does anyone have this worked out yet? I couldn't
find anything in the list... <br>
<br>
Thanks! <br>
<br>
Tim</font><font size=2><tt><br>
<br>
_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://mail.opencms.org/mailman/listinfo/opencms-dev</tt></font>
<br>