Guest_imported
New member
- Jan 1, 1970
- 0
Dear all,
I have an XML file (part of it) is similar to this:
<data>1 2.1 3.5 4 6 12.0</data>
Now, I am writing an xslt to transform an xml file. I want to write a xslt to get the certain token from the above xml data.
As an example:
xsl:getToekenData($string, $position)
if $string is "1 2.1 3.5 4 6 12.0", and the position is 2, it will return 2.1. But if the position specified is 7, it will return "null", as the total number of token in the string is 6.
Can any one tell me how to implement it.
It would be very appreciated if some one can drop me some code here.
Many thanks.
I have an XML file (part of it) is similar to this:
<data>1 2.1 3.5 4 6 12.0</data>
Now, I am writing an xslt to transform an xml file. I want to write a xslt to get the certain token from the above xml data.
As an example:
xsl:getToekenData($string, $position)
if $string is "1 2.1 3.5 4 6 12.0", and the position is 2, it will return 2.1. But if the position specified is 7, it will return "null", as the total number of token in the string is 6.
Can any one tell me how to implement it.
It would be very appreciated if some one can drop me some code here.
Many thanks.