Question:
How do you replace an xml value, for example:
1 2 |
to:
1 2 |
via XSLT?
I need this because I have to pass this value in a powershell command line and to other platforms since the “double single quote” is needed to escape the apostrophe/single quotes.
Answer:
Assuming an XSLT 1.0 processor, you will need to use a recursive named template for this, e.g:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Example of call:
1 2 3 4 5 6 7 8 |