Subject: RE: [xsl] following-sibling From: Jarno.Elovirta@xxxxxxxxx Date: Tue, 10 Sep 2002 16:30:55 +0300 |
Hi, > Hello again, > I have this part of xml file and I wanna search in a row for > the value ': > 139597.1' and get its sibling 'Status: RONY'. [snip] > I'm using this xsl but not working. Plz can u tell me what's wrong? > Thx again. > > ... > <xsl:template match="body/center/table/tr/td/table/tr/td/small"> > <xsl:if test="contains(., ': 139597.1')"> > <b> Tar Status is : </b> > <xsl:value-of select="normalize-space(following-sibling::tr > [position() = 2]/td/small)"/> > </xsl:if> > </xsl:template> <xsl:template match="body/center/table/tr/td/table/tr/td/small"> <xsl:if test="contains(., ': 139597.1')"> <b> Tar Status is : </b> <xsl:value-of select="normalize-space(following::tr[2]/td[2]/small)"/> </xsl:if> </xsl:template> You might want to do something about those match patterns, you could probably simplify them. Jarno - having trouble finding anything fast enough to listen to, settling for Feindflug: Glaubenskrieg XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] following-sibling, David Carlisle | Thread | [xsl] tag minimisation, Andrew Welch |
Re: [xsl] Joining Multiple XML usin, Joseph Kesselman | Date | Re: [xsl] speed questions, juggy |
Month |