I'm sorry, there is one space character. -----Original Message----- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2003 1:12 PM To: Tomcat Users List Subject: Re: javax.xml.transform.Transformer
So you're saying that there is nothing between sform" and "vers ?? Not a linefeed, no whitespace at all? If that's the case, I'd say that's your problem right there. John Daniel Herbison wrote: > No spaces. > > -----Original Message----- > From: John Turner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2003 11:24 AM > To: Tomcat Users List > Subject: Re: javax.xml.transform.Transformer > > > > publicId and systemId are in the doctype declaration, aren't they? If > that's the case, the error message is simply saying that some whitespace > is required between them. > > Is there anything between "http://www.w3.org/1999/XSL/Transform" and > "version="1.0""? It's hard to tell with the line wrapping from the post > to the list. > > John > > Daniel Herbison wrote: > > >>I don't think it is the xml because the error is occurring in the >>newTransformer method and the xml has not been seen yet. There is > > something > >>in the xsl file that will not allow apache/tomcat to resolve an url, I >>think? In both cases the xml looks exactly the same (per diff on unix). >> >>Here is the xsl: >> >><?xml version="1.0"?> >><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >>version="1.0"> >><xsl:variable name="doExcel" select="//PARAMS/EXCEL"/> >><xsl:template match="/"> >> <xsl:apply-templates select="/DATASET"/> >></xsl:template> >> >><xsl:template match="DATASET"> >> <OPTION VALUE=' '> </OPTION> >> <xsl:apply-templates select="REC"/> >></xsl:template> >> >><xsl:template match="REC"> >> <OPTION> >> <xsl:attribute name='VALUE'><xsl:value-of >>select='LID'/></xsl:attribute> >> <xsl:if test="LD=//PARAMS/LINK"> >> <xsl:attribute name='SELECTED'>1</xsl:attribute> >> </xsl:if> >> <xsl:value-of select="LD"/> >> </OPTION> >></xsl:template> >> >></xsl:stylesheet> >> >>Here is the top few lines of the xml: >> >><DATASET> >> <PARAMS> >> <JAVASCRIPT>javascripts/coi_debug.js</JAVASCRIPT> >> <JAVASCRIPT>javascripts/coi_calendarList.js</JAVASCRIPT> >> <SUMMARY>false</SUMMARY> >> <CSS>styles/coi.css</CSS> >> <CSS>styles/ipadmin.css</CSS> >> <TIMESLICE/> >> <GETALL>true</GETALL> >> <EXCEL>false</EXCEL> >> </PARAMS> >> <STYLES> >> <STYLE> >> <SRC>styles/coi.css</SRC> >> </STYLE> >> <STYLE> >> <SRC>styles/ipadmin.css</SRC> >> </STYLE> >> </STYLES> >> <REC> >> <LID>75</LID> >> <LN>Beijing DMZ (vsupnip1:sf0_sf1_vi0 )</LN> >> <LD>Beijing-DMZ</LD> >> <NIKSUN>1</NIKSUN> >> <FL>PAC/BEI/BEIJING</FL> >> <TL>PAC/BEI/BEIJING</TL> >> </REC> >> >>-----Original Message----- >>From: Kevin Ritter [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, July 22, 2003 10:37 AM >>To: 'Tomcat Users List' >>Subject: RE: javax.xml.transform.Transformer >> >> >>Can you send the top 100 or so lines of your XML that you are trying to >>transform. >> >>Thanks >>Kevin Ritter >> >>-----Original Message----- >>From: Daniel Herbison [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, July 22, 2003 9:58 AM >>To: [EMAIL PROTECTED] >>Subject: javax.xml.transform.Transformer >> >>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:118 > >>9) >> >>at >> > > org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFa > >>ctoryImpl.java:934) >> >>at >> > > org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer > >>FactoryImpl.java:750) >> >>at com.nortel.nmm.util.CoiXML._transform(CoiXML.java:124) >> >>at com.nortel.nmm.util.CoiXML.transform(CoiXML.java:115) >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
