[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: 3 Questions about FOP.

Subject: Re: 3 Questions about FOP.
From: Jiri Jirat <Jiri.Jirat@xxxxxxxxx>
Date: Tue, 09 Oct 2001 13:57:37 +0200
workstation cocoon
Hello,
 look at
http://zvon.org/HowTo/Output/howto_jj_fo_2.html
is that what you need?

May be, you have to specify the "file:" protocol.

Regards
Jirka

"Hewko, Doug" wrote:
> 
> 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@xxxxxxxxxxxxxxxxxxxx
> > [mailto:Joshua.Kuswadi@xxxxxxxxxxxxxxxxxxxx]
> > Sent: October 7, 2001 8:49 PM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: RE:  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

-- 
 <name firstName="Jirka" surname="Jirat"/>
 <mail>     jiratj@xxxxxxxxx  </mail>
 <support>  http://www.zvon.org </support>
 <zvonMailingList> http://www.zvon.org/index.php?nav_id=4
</zvonMailingList>

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.