I would like to be able to select all the attributes of a certain type in the document (for example, // @ arch), and then accept that the node set and parse the values in the second node set. When I say “parsing”, I mean what I want enable node as follows:
arch="value1;value2;value3" arch="value1:value4"
in node as below:
arch="value1" arch="value2" arch="value3" arch="value1" arch="value4"
or something like that; I want to get individual values from attributes and into their own node.
If I can get it in this state, I have many methods for sorting and removing duplicates, after which I will use a ready-made node set for the publication task.
I'm not looking much for this neat answer here as an approach. I know that XSLT cannot execute dynamic arrays, but it is not the same thing that it cannot do something like dynamic arrays or something that mimics an important part of the functionality.
It seemed to me that I could count the nodes in the first node set and the number of separators, calculate the number of records that would be needed for the second node set and create it (somehow) and use subscript functions to parse the first node set into the second node set.
There is usually a problem with XSLT problems; Has anyone worked this out before?
Thanks for any help, Jeff.
source share