Subject: RE: [xsl] xsl--accessing a speciic part of a string From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx> Date: Mon, 6 Oct 2003 10:26:45 +0200 |
I wanted to write you on thrusday but outlook server went down ... "//" will take all the desendants of entrydata <xsl:for-each select="prod//entrydata"> <tr> <td><xsl:value-of select="."/></td> </tr> </xsl:for-each> Using string before funtion for getting prod value -----Original Message----- From: james walker [mailto:jameswalkerandy@xxxxxxxxxxx] Sent: 02 October 2003 13:53 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] xsl--accessing a speciic part of a string When in template match=prod, I wanted to pull out the value "wanted text" which will change according to what prod its under. However, the structure of the <text> tags under some <prod> elements are different: The first example, i need to select the value of "wanted text" within prod: <prod position="1.1.1"> <entrydata columnnumber="6"> <text>wanted text - cp1</text></entrydata> </prod> The second example, i need to select "wanted text" from the first text tag within prod: <prod position="1.1.1"> <entrydata columnnumber="6"> <textlist><text>wanted text - cp1</text><text>wanted text -cp2</text></textlist></entrydata> </prod> is their one select statement that could cater for either of these situations?? I assume to remove "-cp1" i need to use the string function substring before? There will be instances when "wanted text" may have a hyphen in anyway. _________________________________________________________________ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger 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 -> |
---|---|---|
[xsl] Re: xsl--accessing a speciic , Dimitre Novatchev | Thread | [xsl] Making picture "clickable" in, Aleksandar Zivkovic |
[xsl] XSLT Problem - Random Order, Saurabh Sinha | Date | RE: [xsl] XSLT Problem - Random Ord, Michael Kay |
Month |