How to insert string to cdata section after a specific string?
|
XSLTGeneral questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
As the span element is inside the CDATA element then it is just text as far as the XSLT processor is concerned, so you just have to treat it like a string.
You could use substring-after() and substring-before(), perhaps, splitting on the '>' character. Alternatively you could use substring() and be specific about the position of the strings to extract.
__________________
/- Sam Judson : Wrox Technical Editor -/