You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Swapan Golla <sg...@yahoo.com> on 2003/02/21 23:17:47 UTC

XMLReader...

I am trying to convert an svg document into pdf using
<fo:external-graphic>. It doesn't seem to work
properly on weblogic server. It gives the following
error:

[ERROR] Could not load external SVG: SAX2 driver class
weblogic.xml.jaxp.RegistryXMLReader loaded but cannot
be instantiated
 (no empty public constructor?)
[ERROR] Error while creating area : No ImageReader for
this type of image 
(http://xxxx/xxx/xxxx/image.svg)

Is there a way I can instruct the SVG transcoder API
to use a specific xmlreader than the one used by
weblogic ? 


Thanks in advance,
Swapan.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: XMLReader...

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Swapan Golla wrote:
> Any ways to instruct FOP to use a particular SAXParser
> rather than setting as system property ? 

FOP uses whatever parser you supply to the Driver, however,
providing a certain parser to external SVG is a bit trickier.
The only way I can see right now is to get the source distro,
adjust the createParser() method of the Driver appropriately
and recompile.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: XMLReader...

Posted by Swapan Golla <sg...@yahoo.com>.
Any ways to instruct FOP to use a particular SAXParser
rather than setting as system property ? 

Swapan.

--- "J.Pietschmann" <j3...@yahoo.de> wrote:
> Swapan Golla wrote:
> > [ERROR] Could not load external SVG: SAX2 driver
> class
> > weblogic.xml.jaxp.RegistryXMLReader loaded but
> cannot
> > be instantiated
> >  (no empty public constructor?)
> This is something you should complain to your
> WebLogic
> support.
> 
> > Is there a way I can instruct the SVG transcoder
> API
> > to use a specific xmlreader than the one used by
> > weblogic ? 
> It depends. The easiest way would be to put the jar
> with the parser you want to use in the classpath
> before
> the WebLogic jar. If you use JDK 1.4 , you can copy
> the
> jar to the JDK's lib/endorsed directory. Another
> possiblity
> is to set the java.xml.parsers.SAXParserFactory
> service
> to the class name of the factory you want to use.
> 
> J.Pietschmann
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-dev-unsubscribe@xml.apache.org
> For additional commands, email:
> fop-dev-help@xml.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


HTML to FO

Posted by Swapan Golla <sg...@yahoo.com>.
I am having a need to convert html ( or xhtml ) to fo
documents and then to pdf. Any suggestions on the best
ways to achieve this ? I should be able to use/call 
this from my java program.

Thanks in advance,
Swapan.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: XMLReader...

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Swapan Golla wrote:
> [ERROR] Could not load external SVG: SAX2 driver class
> weblogic.xml.jaxp.RegistryXMLReader loaded but cannot
> be instantiated
>  (no empty public constructor?)
This is something you should complain to your WebLogic
support.

> Is there a way I can instruct the SVG transcoder API
> to use a specific xmlreader than the one used by
> weblogic ? 
It depends. The easiest way would be to put the jar
with the parser you want to use in the classpath before
the WebLogic jar. If you use JDK 1.4 , you can copy the
jar to the JDK's lib/endorsed directory. Another possiblity
is to set the java.xml.parsers.SAXParserFactory service
to the class name of the factory you want to use.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org