We have an application which has a heirarchical group structure. Some of the groups are passed in this format:
/Geography/NA/US/California
I would like to "unroll" this string so that I can get a node set like the following:
/Geography
/Geography/NA
/Geography/NA/US
/Geography/NA/US/California
I know I can use str:tokenize and get a nodeset like so: [Geography, NA, US, California]
but I'm at a loss of how to assemble the parts back together incrementally.
I have most of the exslt functions available to use, but no XSLT 2.0 functions.
Any help appreciated!