Hi,
First of all, hi to you all.
I'm working on a Delphi project wich is becoming near it's deadline.
I have a very simple XSLT question wich i hope one of you folks can
help me with?
The problem is i need to transform a xml file from this:
<root>
<metadata>This is some metadata</metadata>
<item>
<b>some text</b>
<c>href://www.somewhere.com?id=001</c>
</item>
<item>
<b>some other text</b>
<c>href://www.somewhere.com?id=002</c>
</item>
</root>
to this:
<root>
<metadata>This is some metadata</metadata>
<item>
<b>some text</b>
<c>href://www.somewhere.com/?var=X&new_id=001</c>
</item>
<item>
<b>some other text</b>
<c>href://www.somewhere.com/?var=X&new_id=002</c>
</item>
</root>
This has to be done using XSLT.
The translation from 'href://www.somewhere.com?id=002' to
'href://www.somewhere.com/?var=X&new_id=002' is no problem, i'll be
using regular expressions for that. The xslt script however is a big
problem (for me that is). Can someone please help me out on this one,
there's no one at my current office who knows any XSLT.. And reading
all the online tutorials (spend one day on that) didn't help me..
Many thanks in advance,
Dennis