I'm afraid you've only caught the TransformerException thrown inside
Xalan due to the SAXException. You've missed the nested SAXException.
But it wouldn't help anyway. As I said, this exception is only a
follow-up thing. There must be something else going wrong before that
mismatch is encountered.

On 15.08.2008 15:11:24 Tobias van Treeck wrote:
> I debugged through the code but the error occurs inside the transformer
> (which is part of the JDK 1.4.2 standard).
> Here's an more complete stacktrace:
> 
> javax.xml.transform.TransformerException: org.xml.sax.SAXException:
> Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format) vs. root
> (http://www.w
> 3.org/1999/XSL/Format)
>         at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
>         at
> org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
>         at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
>         at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
>         at
> org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
> 
> > These errors are usually follow-up errors after the real problem (at
> > least in my experience). Please take a look if you can see any error
> > message before that exception. It could also be some bad exception
> > handling somewhere in FOP. I've had this thing a number of times in
> > the
> > past but I haven't had the chance to really look into avoiding
> > unhelpful
> > exceptions like that. Maybe that helps.
> >
> > On 15.08.2008 13:03:46 Tobias van Treeck wrote:
> > > Hi!
> > >
> > > I am running FOP and convert an XML+XSL->FOP->PDF.
> > > Locally everything is working fine but on the app server i get the
> > > following error message:
> > >
> > > "org.xml.sax.SAXException: Mismatch: page-sequence
> > > (http://www.w3.org/1999/XSL/Format) vs. root
> > > (http://www.w3.org/1999/XSL/Format)"
> > >
> > > Environment:
> > > App-Server: Bea Weblogic 8.1 SP5
> > > Java: 1.4.2_08 (using the same JDK for AppServer and for the local
> > > tests)
> > > FOP: 0.95 (most recent version)
> > > OS: Windows XP SP3
> > >
> > > Searching in the web didn't return anything helpful, although this
> > > problem has already occured once or twice.
> > > My guess is that there may be a library or classpath conflict but
> > > replacing some JDK libs (XML/Parser related) didn't make it
> > > better... I
> > > don't think that this is a problem with the XML or the stylsheet
> > > since
> > > locally it is working.
> > >
> > > Maybe anyone experienced the same problems or has some idea what
> > > could
> > > be the cause - any help appreciated!
> > > Thanks,
> > > ToM
> > >
> >
> >
> >
> > Jeremias Maerki




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to