After much futzing around with this, I ended up using JAXB to generate the xml I needed and enclosing the HTML data inside CDATA sections.
I then changed TransformerFact oryImpl to use saxon and process the stylesheet:
System.setPrope rty("javax.xml. transform.Trans formerFactory", "net.sf.saxon.T ransformerFacto ryImpl");
And used saxon's saxon:parse() function to further process...
User Profile
Collapse
-
You could change the action with javascript to point to different validating actions depending on what you click
struts-config:
<form path=/ValidateUpdate" validate="true" type="myClass" name="myForm" scope="request"/>
<form path=/ValidateSave" validate="true" type="myClass" name="myForm" scope="request"/>...Leave a comment:
-
processing html tags inside xml with fop
Hello,
I've got an object that's being converted into SAXSource and then converted into a pdf with FOP. Some of the data however is in HTML format inside the xml tags and is being escaped (>, etc) before it transformed.
I'd like to have this these html tags parsed as actual elements by the stylesheet, which would mean reading it in it's unescaped format, but I can't figure out how to do this. I have "disable-output-escaping"...
No activity results to display
Show More
Leave a comment: