xsl--accessing a speciic part of a string
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:
<textlist><text>wanted text - cp1</text><text>wanted text -cp2</text></textlist></entrydata>
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format