I've purchased Michael Kay's XSLT 2.0 and XPATH 2.0 (4th ed.) as a raw beginning with XSLT, and I'm trying to learn as I go along. I've done ok till now.
Yes I'm using XSLT 2.0
I'm actually trying to create an export filter for OpenOffice.org to create a custom XML document for another bit of software I use regularly. And I'm nearly there! But now I've hit a snag as I'm teaching myself through this process.
I am attempting to transfer a semicolon delimited element in one XML file to a new one.
Essentially I'm trying to go from:
Document A's meta data which contains:
Code:
<meta:keyword>Anna; Simeon; Character; Temple</meta:keyword>
into Document B which has the form:
Code:
<topics>
<topic></topic>
</topics>
The result actually needs to look like
Code:
<topics>
<topic>Anna</topic>
<topic>Simeon</topic>
<topic>Character</topic>
<topic>Temple</topic>
</topics>
I'm staring at the tokenize function (pp 894-ff) and thinking that it must be the answer, but I'm just plain lost. I've also tried to follow this thread:
XML element with delimited values and XSLT, but once again I'm stuck. Probably because I'm such a noob at this.
Can anyone graciously assist my learning at this point?
Thanks in advance for your consideration.