Entity Reference in Character Data
- My XSL is reading XML created from a Java object (using FOP and the
SaxParser). In the select example below...
<xsl:value-of text=cdata select="//fileDescription"/>
... if the value inside the //fileDescription contains a special
character (e.g. & or ;) it throws this:
The entity name must immediately follow the '&' in the entity
Since I have no control over the value inside the //fileDescription
string in the Java object, is there any way for this to work? I was
thinking something using CDATA but I am not sure about that.