Fetching the data

Here should go questions about transforming XML with XSLT and FOP.
cool_123
Posts: 3
Joined: Tue Oct 30, 2007 12:39 pm
Location: India

Fetching the data

Post 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
jkmyoung
Posts: 89
Joined: Mon Mar 06, 2006 10:13 pm

Post 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?
Post Reply