Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - RE: Replacing a string with another nodes text. Replacing a string with another nodes text.To: NULL Date: 4/3/2006 7:16:00 PM I want to turn this: <root> <book> <name>answerToce02dde2-07a5-4a7a-9c72-51e97c13af8d</name> <author>answerTo47f8c10a-2032-4de3-9862-6056850f8002</author> <year>1986</year> </book> <answers> <answer id="ce02dde2-07a5-4a7a-9c72-51e97c13af8d">Xslt for dummies</answer> <answer id="47f8c10a-2032-4de3-9862-6056850f8002">Bob</answer> </answers> </root> Into this: <root> <book> <name>Xslt for dummies</name> <author>Bob</author> <year>1986</year> </book> </root> In summary: I want to find the element 'book', and for each of its nodes see if it contains the string 'answerTo'. If it does then replace the nodes text with the text of the element 'answer' whos Id attribute mathches the 32 characters next to the 'answerTo' string. Is is possible to do this with XSLT? If so then how? Can someone point me in the right direction please? Cheers, any help is appreciated. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
