I have an XML document that has an XML node named “Description”
The Description node contains text like “This is a long description.”
When the XML file is loaded and displays in a browser, I need just the word “long” to be italicized. I understand that I could use XSLT to style the entire Description node, but how do I use CSS styling on only a small part of the node content?
This XSLT 1.0 stylesheet:
With this input:
Output:
And this XSLT 2.0 stylesheet:
Output: