This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 3 Questions about FOP.


Thanks, but what do I need to get relative links to work? Using Elliotte
Harold's "XML BIBLE" as an example, it says that "<fo:display-graphic
image='logo.gif' height='100px' width='100px' />" is equivalent to "<img
src='logo.gif' width='100' height='100' align='right' alt='alt text'
border='0'>". Yet, when I enter the fo: code for my image, no graphic comes
out. I even converted the output to HTML instead of PDF to check the
expected directory and have the image there, but still nothing.

Do I need anything else besides XERCES and COCOON to make more advanced PDF
files?



> -----Original Message-----
> From: Joshua.Kuswadi@BTFinancialgroup.com
> [mailto:Joshua.Kuswadi@BTFinancialgroup.com]
> Sent: October 7, 2001 8:49 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] 3 Questions about FOP.
> 
> 
> > Question 3:
> > 
> > The only way I could get a graphic to appear is by using 
> > "external-graphic".
> > Is there another way? Preferably, I would like to use 
> > relative links.
> 
> FOP can handle relative links. I'm not exactly sure which 
> version this was implemented, but the latest is 0.20.
> 
> > Also, how can I get my image to appear in the size it was 
> created in and not
> > stretch to fill a page? I also have a linke below my image 
> > which I do not
> > know where it came form.
> > 
> > Here's my XSL:
> > <xsl:template match="graphic">
> > 	<fo:block font-weight="bold">
> > 		<xsl:value-of select="name"/>
> > 	</fo:block>
> > 	<fo:block
> >     text-align="center" 
> >     margin-top=".75in"
> >     page-break-after="always">
> > 	   <fo:external-graphic>
> > 	   <xsl:attribute
> > 
> name="src">http://workstation/cocoon/development/_images/<xsl:value-of
> > select="location"/></xsl:attribute>
> > 	   </fo:external-graphic>
> > </fo:block>
> 
> Maybe try:
> <xsl:element name="fo:external-graphic">
> 	<xsl:attribute name="src">
> 		http://workstation/cocoon/development/_images/
> 		<xsl:value-of select="location"/>
> 	</xsl:attribute>
> 	<xsl:attribute name="height">100px</xsl:attribute>
> 	<xsl:attribute name="width">100px</xsl:attribute>
> </fo:external-graphic>
> 
> --------------------------------------------------------------
> ----------------
> This message and any attachment is confidential and may be 
> privileged or otherwise protected from disclosure.  If you 
> have received it by mistake please let us know by reply and 
> then delete it from your system; you should not copy the 
> message or disclose its contents to anyone.
> 
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]