xsl-list
[Top] [All Lists]

[xsl] Converting a string to a double

2007-07-03 12:28:42
Hi all,

Using the following XML:

<i>
  <b>
     <id>urn:ttt:188589</id>
  </b>
  <b>
     <id>urn:ttt:188689</id>
  </b>
  <b>
     <id>urn:ttt:188989</id>
  </b>
</i>

I want to see if the document contains an id tag with a particular number after the string 'ttt:' I can only do this by comparing this value with a double datatype value stored in a variable $a. What is the best way to do this in XSLT 2?

_________________________________________________________________
Tell MSN about your most memorable emails!  http://www.emailbritain.co.uk/


--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--