Subject: Re: [xsl] determine if a value exist in the following-sibling From: Red Light <skydelta98@xxxxxxxxx> Date: Tue, 5 Apr 2011 02:50:23 -0700 (PDT) |
Hi Michel, true , but i kind want to check this condition in the following element, not the actual elements . --- On Tue, 4/5/11, Michel Hendriksen <michel.hendriksen@xxxxxxxxx> wrote: > From: Michel Hendriksen <michel.hendriksen@xxxxxxxxx> > Subject: Re: [xsl] determine if a value exist in the following-sibling > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Date: Tuesday, April 5, 2011, 9:48 AM > string-length(value) > 0 > > On Tue, Apr 5, 2011 at 11:42 AM, Red Light <skydelta98@xxxxxxxxx> > wrote: > > Hi, > > > > please anyone can help me with this expression, > > > > i got the following xml : > > <amounts> > > <period_id>1</period_id> > > <value>1</value> > > </amounts> > > <amounts> > > <period_id>2</period_id> > > <value></value> > > </amounts> > > > > in my code i have <xsl:for-each > select="amounts"> > > > > and i want to test if the next elements of amounts > have a "value" or not, > > i'm using xslt 1.0 with xalan/apache fop. > > > > NB: i tried with the > following:boolean(following-sibling::amount/text()) > > but the expression is wrong .... > > > > and thanks a lot for you help > > > > > --~------------------------------------------------------------------ > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ > > or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> > > --~-- > > > > > > --~------------------------------------------------------------------ > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ > or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> > --~--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] determine if a value exis, Michel Hendriksen | Thread | Re: [xsl] determine if a value exis, Andrew Welch |
Re: [xsl] determine if a value exis, Michel Hendriksen | Date | Re: [xsl] determine if a value exis, Andrew Welch |
Month |