I'm using this code to transform xml using and xsl file:
 
   TransformerFactory tFactory = TransformerFactory.newInstance();
   Transformer transformer = tFactory.newTransformer(xsl);
   transformer.setOutputProperty("omit-xml-declaration","yes");
   transformer.transform(new StreamSource(xml),sr);
When I run the code in a Tomcat standalone installation everything works great!  However when I run the code under tomcat from Apache using the mod_jk connector I get an error (below) on the "tFactory.newTransformer(xsl)" line.  Done anyone have any idea what is happening?
 

org.xml.sax.SAXParseException: White spaces are required between publicId and systemId.

at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)

at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:934)

at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)

at com.nortel.nmm.util.CoiXML._transform(CoiXML.java:124)

at com.nortel.nmm.util.CoiXML.transform(CoiXML.java:115)

Reply via email to