> -----Original Message----- > From: Carlos M. S. Bento Nogueira [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 07, 2005 10:03 PM > To: [email protected] > Subject: cforms: xsl scope problem > > I have in a xml file the following code snippet: > <fd:selection-list> > <fd:item value="Dcor" /> > <row> </row> > to check each item on this selection list i do <xsl:for-each > select="fi:selection-list/fi:item"> > how do i check the presence of the row tab which is inside > the scope of the selection list?? > > I've tried > <xsl:variable name="rowExists" > select="boolean(fi:selection-list/row)"/> > <xsl:for-each select="fi:selection-list/fi:item"> > <xsl:if test="$rowExists">...</> > and it doesn't work. >
Try taking out the variable, and change the test in the xsl:if to "../row" (or "sibling::row", or "following-sibling::row") Chris > My goal is to insert line or column breaks between items. > > Notes: using cocoon 2.1.7. cforms > using apache tomcat 5.5 > > T.I.A. , > CarlosN. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
