xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t_apalamarc...@agency.com
Subject RE: [bug??] buildFoTree(Document)
Date Thu, 04 Jan 2001 18:46:12 GMT
PS. I had the problem when I tried to pass Document
created by Xalan 1 to FOP.

Andriy

> -----Original Message-----
> From: t_apalamarchuk@agency.com [mailto:t_apalamarchuk@agency.com]
> Sent: Thursday, January 04, 2001 1:43 PM
> To: fop-dev@xml.apache.org
> Subject: RE: [bug??] buildFoTree(Document)
> 
> 
> Hi Felipe,
> 
> > I am trying to use the buildFoTree(Document) but I get a 
> > NullPointerException.
> 
> Before I asked the same question in this newsgroup.
> You can search the newsgroup for details.
> This is the answer I got:
> 
> *************************************
> I've run into the same problem, it arises from Xalan's use of Xerces' 
> DOM implementation. Basically, elements created by Xalan using the l1 
> method Document.createElement() break FOP because FOP calls the l2 
> method Node.getNamespaceURI(), which returns null (due to 
> Xalan's use of 
> createElement() instead of createElementNS()).
> 
> Xerces' apidoc for org.apache.xerces.dom.NodeImpl.getNamespaceURI() 
> documents this.
> 
> So, you could try using Xalan 2.x which may do things 
> properly, but is 
> still alpha-quality, or you could just output the transformation to a 
> string or to a file and hand that to FOP using a SAX parser.
> **************************************
> 
> I have not tried Xalan 2.x to pass the DOM tree, 
> but SAX piping from Xalan 2 works great!
> 
> Hope this helps
> Andriy Palamarchuk
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 

Mime
View raw message