I don't think I was very clear in my original post (sorry about that). I have two variables: one with the <members><member.. </members> XML and one with a commaseparated string containing random member ids. So what I need to do, is to find the <member> elements which matches the ids in my string variable :-)
Getting XML elements from a commaseparated string of ids
Hi all,
I have some trouble figuring this one out in XSLT :-)
I have an XML structure that looks like this:
And then I have a string of commaseaparted ids:
Is there any way to get the corresponding <member> XML elements from the ids in the string? :-)
Thanks a lot in advance,
Bo
Hi Bo
Couldn't you use the umbraco:library.split() function for this job ?
// Dammark
Hi Sebastian,
Thanks for your input :-) Appreciated!
I don't think I was very clear in my original post (sorry about that). I have two variables: one with the <members><member.. </members> XML and one with a commaseparated string containing random member ids. So what I need to do, is to find the <member> elements which matches the ids in my string variable :-)
Let me know if it dosn't make sense ;-)
Thanks again!
- Bo
code
I haven't tested the code above ... so there might be typos and so on.
h5yr, Sebastian! :-) That worked just as it should.
Thanks a lot for your help !
- Bo
is working on a reply...