Pages

05 December, 2023

Manipulate values in element in xml file using xslt

I want to have possibility to remove or replace unnecessary text inside values in elements in xml file and I want use an XSLT transformation to do that.


In this example file i want to remove specific tags like br, prefix, suffix, bulletlist or replace them into specific text or simple character inside value of Value elements.


There will be many Product elements. And I don't want change structure of this file, so this should be like copy, but with with logic to remove specific texts.


I tried to use templates and copy, but somehow I cannot connect them together.


If any of you could help me with or give me hints that I should follow, I would appreciate.



xyz


test

No comments:

Post a Comment

Thanks