|Trying to use count() on subset of nodes [message #16941]
||Fri, 18 May 2007 21:01
Originally posted by: bernard.farrell.gmail.com|
I have a set of nodes like the following:
<label type="field" name="description">
<input type="textarea" />
<label type="field" name="startdate">
<input type="dateselector" required="false"/>
And I'm trying to output code if any of the nodes have the type set to
I wanted to use the count() function, but before I even get there, using
square brackets seems to choke the system.
<cc:setVariable select="count($tfields)" var="numfields" />
I get an unrecognized token '[' on the first line above. It's two lines
because the expression in the first line seems to cause an error when
enclosed in the count() on the second line.
Now later in the same file I'm using this expression:
<cc:iterate select="$page/form/label[@type='field']" var="field">
with no problem.
What am I doing wrong here?
Powered by FUDForum
. Page generated in 0.02218 seconds