Page 1 of 1

Fetching the data

Posted: Sat Nov 03, 2007 10:52 am
by cool_123
hi all,

i m facing a prob . i have an XML in which the tag is given something like this:

<f1> wo(sd,fg,hj) ep(ru,hu,fg) hg, jh </f1>

the information is of this type mentioned above.
what i have to do is to count all the values excluding the values given inside the parenthesis.
and the values given inside the parenthesis have to be counted seperately.
that is i have to count tha values outside the parenthesis seperately and inside the parenthesis seperately:
the result of above output should be like this:

values uotside parenthesis:4
wo values:3
ep values:3

plz help me out as m not getting how to work out with this.


thanks

Posted: Mon Nov 05, 2007 5:42 pm
by jkmyoung
Can you use xslt 2.0?

Also question about the format.
<f1> wo(sd,fg,hj) ep(ru,hu,fg) hg, jh </f1>

Are you missing a comma between "hj)" and "ep", or can it be like this?

Could you give another possible string it could be like?