Subject: RE: Simple XSL Question From: sara.mitchell@xxxxxxxxx Date: Fri, 3 Nov 2000 13:22:14 -0400 (EST) |
Add the predicate in your XPath expression, so it becomes: <xsl:value-of select="count(//tablelayout/column[@nr='2']/*)"/> Sara > -----Original Message----- > From: Rob van der Zeijden [mailto:r.zeijden@xxxxxxxxx] > Sent: Thursday, November 02, 2000 1:22 PM > To: XSL-List@xxxxxxxxxxxxxxxx > Subject: Simple XSL Question > > > Hi, > > xml fragement: > > <tablelayout> > <column nr='1'> > <columnwidth1>9cm</columnwidth1> > <columnwidth2>7cm</columnwidth2> > <columnwidth3>3cm</columnwidth3> > </column> > <column nr='2'> > <columnwidth1>9cm</columnwidth1> > </column> > </tablelayout> > > > How can I count all the children of the element column where nr = 2? > Should be something like this: > <xsl:value-of select="count(//tablelayout/column/*)"/> the > only thing is that the nr=2 > is not handled yet. > > Thanks Rob > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Simple XSL Question, Rob van der Zeijden | Thread | RE: Simple XSL Question, Kay Michael |
RE: Can XSL process and separate on, sara . mitchell | Date | RE: XSL to handle display mutliple , Xu, Xiaocun |
Month |