external-graphic src="url(...)"

"Koch, Anthony" <[email protected]> Wed, 9 Apr 2003 17:01:39 -0400
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2FEDB.3756E610
Content-Type: text/plain;
	charset="iso-8859-1"

Hi,

I'm having trouble referencing SVG within my XSL:FO, where the SVG is
returned from an URL.

            <fo:block>            
               <fo:external-graphic
src="url('http://localhost:8080/application/graphics/svggen')"/>
               <!-- or trying src="url('graphics/svggen') -->
            </fo:block>

When I go to http://localhost:8080/application/graphics/svggen, the
following SVG is returned:

		<?xml version="1.0" encoding="UTF-8" ?> 
		<svg width="619.0" height="288.0"
xmlns:xsp="http://apache.org/xsp"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"> 
		     <text x="30" y="14"
style="fill:#ff0000;font-size:16;font-family:Arial"
text-anchor="middle">some text<text> 
		</svg>

Note, svggen is an XSP that returns the above SVG XML using Cocoon
framework. The XSL:FO transformation
is applied to XML, as defined in the Cocoon pipeline:
			   <map:generate src="testpdf.xml"/>
                                                   <map:transform
src="testpdf.xsl"/>
                                                   <map:serialize
type="fo2pdf"/>

Everything works fine if the SVG is instream :
			<fo:block text-align="left">
				<fo:instream-foreign-object
xmlns:svg="http://www.w3.org/2000/svg">
					<svg:svg width="45" height="45">
						<svg:g style="fill:green;
stroke-width:7">
							<svg:rect x="5"
y="7" width="25" height="25"/>
						</svg:g>
					</svg:svg>
				</fo:instream-foreign-object>
			</fo:block>
However, as soon as I try 
             <fo:block>            
                 <fo:external-graphic src="url('graphics/svggen')"/>
             </fo:block>
The following error occurs:
		[ERROR] Error while creating area : Error with image URL:
graphics\svggen (The system cannot
		 find the path specified) and no base URL is specified
Is there a way to specify base URL, given that I am running within a Cocoon
pipeline?
Then if I try:
             <fo:block>            
                 <fo:external-graphic
src="url('http://localhost:8080/application/graphics/svggen')"/>
             </fo:block>

The error below appears.
Thanks a million if you have any suggestions to get help me get the SVG
properly referenced.
Cheers,
Anthony

Error: 
[INFO] [5]
		java.lang.NoSuchMethodError
		        at
org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:76)
		        at
org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.java:60)
		        at
org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory.jav
a:86)
		        at
org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:137)
		        at
org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:135)
		        at
org.apache.fop.fo.flow.Block.layout(Block.java:206)
		        at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:111)
		        at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:68)
		        at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:352)
		        at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)
		        at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)
		        at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
		        at
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
		        at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:307)
		        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
716)
		        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.j
		ava:422)
		        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:226)
		        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2
		243)
		        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:206
		9)
		        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1171)
		        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
		        at java.lang.Thread.run(Thread.java:479)



This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

------_=_NextPart_001_01C2FEDB.3756E610
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.89">
<TITLE>external-graphic src=3D&quot;url(...)&quot;</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm having trouble referencing SVG =
within my XSL:FO, where the SVG is returned from an URL.</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; </FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT =
COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT =
COLOR=3D"#808080" SIZE=3D2 FACE=3D"Arial">&lt;fo:external-graphic =
src=3D&quot;url('<A =
HREF=3D"http://localhost:8080/application/graphics/svggen'" =
TARGET=3D"_blank">http://localhost:8080/application/graphics/svggen'</A>=
)&quot;/&gt;</FONT>
<BR><FONT COLOR=3D"#808080" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- or trying =
src=3D&quot;url('graphics/svggen') --&gt;</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">When I go to</FONT> <FONT =
COLOR=3D"#808080" SIZE=3D2 FACE=3D"Arial"><A =
HREF=3D"http://localhost:8080/application/graphics/svggen" =
TARGET=3D"_blank">http://localhost:8080/application/graphics/svggen</A><=
/FONT><FONT SIZE=3D2 FACE=3D"Arial">, the following SVG is =
returned:</FONT>
</P>
<UL><UL>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">&lt;?xml =
version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot; ?&gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">&lt;svg =
width=3D&quot;<B>619.0</B>&quot; height=3D&quot;<B>288.0</B>&quot; =
xmlns:xsp=3D&quot;<A HREF=3D"http://apache.org/xsp" =
TARGET=3D"_blank">http://apache.org/xsp</A>&quot;&nbsp; =
xmlns:xi=3D&quot;<A HREF=3D"http://www.w3.org/2001/XInclude" =
TARGET=3D"_blank">http://www.w3.org/2001/XInclude</A>&quot; =
xmlns:xsp-request=3D&quot;<A HREF=3D"http://apache.org/xsp/request/2.0" =
TARGET=3D"_blank">http://apache.org/xsp/request/2.0</A>&quot;&gt; =
</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;text x=3D&quot;</FONT><B><FONT SIZE=3D2 FACE=3D"Times New =
Roman">30</FONT></B><FONT SIZE=3D2 FACE=3D"Times New Roman">&quot; =
y=3D&quot;</FONT><B><FONT SIZE=3D2 FACE=3D"Times New =
Roman">14</FONT></B><FONT SIZE=3D2 FACE=3D"Times New Roman">&quot; =
style=3D&quot;</FONT><B><FONT SIZE=3D2 FACE=3D"Times New =
Roman">fill:#ff0000;font-size:16;font-family:Arial</FONT></B><FONT =
SIZE=3D2 FACE=3D"Times New Roman">&quot; =
text-anchor=3D&quot;</FONT><B><FONT SIZE=3D2 FACE=3D"Times New =
Roman">middle</FONT></B><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&quot;&gt;some text&lt;text&gt; </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">&lt;/svg&gt;</FONT>
</P>
</UL></UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">Note, svggen is an XSP that returns =
the above SVG XML using Cocoon framework. The XSL:FO transformation<BR>
is applied to XML, as defined in the Cocoon pipeline:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D1 =
FACE=3D"Arial">&nbsp;&nbsp; &lt;map:generate =
src=3D&quot;testpdf.xml&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; &lt;map:transform src=3D&quot;testpdf.xsl&quot;/&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; &lt;map:serialize type=3D&quot;fo2pdf&quot;/&gt;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Everything works fine if the SVG is =
instream :</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> text-align</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">left</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:instream-foreign-object</FONT><FONT COLOR=3D"#FF0000" =
SIZE=3D2 FACE=3D"Arial"> xmlns:svg</FONT><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" =
SIZE=3D2 FACE=3D"Arial"><A HREF=3D"http://www.w3.org/2000/svg" =
TARGET=3D"_blank">http://www.w3.org/2000/svg</A></FONT><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">svg:svg</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> width</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">45</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> height</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">45</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">svg:g</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> style</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">fill:green; stroke-width:7</FONT><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&quot;&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">svg:rect</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> x</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">5</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> y</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">7</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> width</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">25</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 =
FACE=3D"Arial"> height</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">=3D&quot;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">25</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&quot;/&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">svg:g</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">svg:svg</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:instream-foreign-object</FONT><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&gt;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">However, as soon as I try</FONT>=20
<BR><FONT SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT COLOR=3D"#000000" =
SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; </FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT =
COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> =
<FONT COLOR=3D"#808080" SIZE=3D2 FACE=3D"Arial">&lt;fo:external-graphic =
src=3D&quot;url('graphics/svggen')&quot;/&gt;</FONT>
<BR><FONT COLOR=3D"#808080" SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT =
COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">The following error =
occurs:</FONT>
<UL><UL>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">[ERROR] Error while creating =
area : Error with image URL: graphics\svggen (The system cannot</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">&nbsp;find the path =
specified) and no base URL is specified</FONT>
</UL></UL>
<P><FONT SIZE=3D2 FACE=3D"Times New Roman">Is there a way to specify =
base URL, given that I am running within a Cocoon pipeline?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Then if I try:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT COLOR=3D"#000000" =
SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&lt;</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp; </FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT =
COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> =
<FONT COLOR=3D"#808080" SIZE=3D2 FACE=3D"Arial">&lt;fo:external-graphic =
src=3D&quot;url('<A =
HREF=3D"http://localhost:8080/application/graphics/svggen'" =
TARGET=3D"_blank">http://localhost:8080/application/graphics/svggen'</A>=
)&quot;/&gt;</FONT>
<BR><FONT COLOR=3D"#808080" SIZE=3D2 FACE=3D"Arial"></FONT>&nbsp;<FONT =
COLOR=3D"#000000" SIZE=3D2 =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&lt;/</FONT><FONT COLOR=3D"#800000" SIZE=3D2 =
FACE=3D"Arial">fo:block</FONT><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Arial">&gt;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Times New Roman">The error below appears.<BR>
Thanks a million if you have any suggestions to get help me get the SVG =
properly referenced.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">Cheers,<BR>
Anthony</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Times New Roman">Error: </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">[INFO] [5]</FONT>
<UL><UL>
<P><FONT SIZE=3D2 FACE=3D"Times New =
Roman">java.lang.NoSuchMethodError</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:76)</FO=
NT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.java:6=
0)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory=
.java:86)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:137)</FON=
T>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:135)<=
/FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.flow.Block.layout(Block.java:206)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:111)</FONT>=

<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:68)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:352=
)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:290)<=
/FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:218)</FONT=
>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)</FONT=
>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:14=
7)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand=
ler.java:307)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j=
ava:716)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele=
mApplyTemplates.j</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">ava:422)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates=
.java:226)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans=
formerImpl.java:2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">243)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo=
rmerImpl.java:206</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New Roman">9)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm=
pl.java:1171)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31=
96)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at =
java.lang.Thread.run(Thread.java:479)</FONT>
</P>
<BR>
<BR>
</UL></UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">This message may contain privileged =
and/or confidential information.&nbsp; If you have received this e-mail =
in error or are not the intended recipient, you may not use, copy, =
disseminate or distribute it; do not open any attachments, delete it =
immediately from your system and notify the sender promptly by e-mail =
that you have done so.&nbsp; Thank you.</FONT></P>

</BODY>
</HTML>
------_=_NextPart_001_01C2FEDB.3756E610--