xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George, Sobha" <sobha.geo...@jnli.com>
Subject RE: SVG include in FOP
Date Sat, 07 Sep 2002 18:21:32 GMT
This might be a very stupid question.
How can I do this if a part of the url is dynamic, lets say <xsl:variable
name="subUrl">Chart1</xsl:variable>

I would like to say: 
<xsl:copy-of
select="document('http://localhost:2001/?@_FILEapfiles/{$subUrl}.pcxml@_PCSC
RIPTgraph')"/>
I get the error - "Path contains invalid character {" 

Then I tried
<xsl:copy-of>
   <xsl:attribute name="select">
      document('http://localhost:2001/?@_FILEapfiles/<xsl:value-of
select="subUrl" />.pcxml@_PCSCRIPTgraph')
   </xsl:attribute>
</xsl:copy-of>
I get the error "xsl:copy-of requires attribute select"

Can somebody tell me how I can do this?
Thank you,
Sobha

-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: Saturday, September 07, 2002 2:03 PM
To: fop-user@xml.apache.org
Subject: Re: SVG include in FOP


George, Sobha wrote:
> Now my question is does this actually help me in avoiding "Out of Memory"
> exception. I was using <fo:external-graphic ...> and read that since
> external graphics are cached in memory it is suggested to use
> <fo:instream-foreign-object....>. It turned out that I was able to process
> 12 records in the first case <fo:external-graphic ...> and only 9 records
> with <fo:instream-foreign-object....>
> 
> Am I using it in the intended way?

You can try
   <fo:instream-foreign-object>
     <xsl:copy-of
select="document('http://localhost:2001/?@_FILEapfiles/Chart1.pcxml@_PCSCRIP
Tgraph')"/>
   </fo:instream-foreign-object>
in your XSLT.

J.Pietschmann

Mime
View raw message