You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ferran Urgell <fe...@hotmail.com> on 2002/04/11 11:17:52 UTC

PDF

Hi Cocooners!!

I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this?

Thanks!

Ferran Urgell

RE: PDF

Posted by Matthew Langham <ml...@s-und-n.de>.
Try out entering the full address for the gif file (i.e. including
c:\blah\foo\...)

Matthew



  -----Original Message-----
  From: Ferran Urgell [mailto:ferran_urgell@hotmail.com]
  Sent: Thursday, April 11, 2002 1:51 PM
  To: cocoon-users@xml.apache.org
  Subject: Re: PDF


  Ok, I've made this, but not works... I think that maybe is the src adress
of the file...
    ----- Original Message -----
    From: Andrey Demchenko
    To: cocoon-users@xml.apache.org
    Sent: Thursday, April 11, 2002 12:36 PM
    Subject: Re: PDF


     <fo:external-graphic  display-align="center"
      src="logo.gif"/>

      ----- Original Message -----
      From: Ferran Urgell
      To: cocoon-users@xml.apache.org
      Sent: Thursday, April 11, 2002 12:17 PM
      Subject: PDF


      Hi Cocooners!!

      I would to put an image (logo for example) into a pdf...with xsl-fo,
how can I do this?

      Thanks!

      Ferran Urgell

RE: PDF

Posted by Dean McGowan <de...@bigpond.com>.
This works for me .. 
I think you have to use an absolute url
 
 <fo:external-graphic src = "http://localhost:8080/cocoon/
images/blah.jpg" height="20px" width="20px" position="absolute"/>
 
-----Original Message-----
From: Ferran Urgell [mailto:ferran_urgell@hotmail.com] 
Sent: Thursday, 11 April 2002 9:51 PM
To: cocoon-users@xml.apache.org
Subject: Re: PDF
 
Ok, I've made this, but not works... I think that maybe is the src
adress of the file... 
----- Original Message ----- 
From: Andrey Demchenko <ma...@kyivstar.net>  
To: cocoon-users@xml.apache.org 
Sent: Thursday, April 11, 2002 12:36 PM
Subject: Re: PDF
 
 <fo:external-graphic  display-align="center"
  src="logo.gif"/> 
----- Original Message ----- 
From: Ferran Urgell <ma...@hotmail.com>  
To: cocoon-users@xml.apache.org 
Sent: Thursday, April 11, 2002 12:17 PM
Subject: PDF
 
Hi Cocooners!!
 
I would to put an image (logo for example) into a pdf...with xsl-fo, how
can I do this?
 
Thanks!
 
Ferran Urgell

Re: PDF

Posted by Ferran Urgell <fe...@hotmail.com>.
Ok, I've made this, but not works... I think that maybe is the src adress of the file... 
  ----- Original Message ----- 
  From: Andrey Demchenko 
  To: cocoon-users@xml.apache.org 
  Sent: Thursday, April 11, 2002 12:36 PM
  Subject: Re: PDF


   <fo:external-graphic  display-align="center"
    src="logo.gif"/> 

    ----- Original Message ----- 
    From: Ferran Urgell 
    To: cocoon-users@xml.apache.org 
    Sent: Thursday, April 11, 2002 12:17 PM
    Subject: PDF


    Hi Cocooners!!

    I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this?

    Thanks!

    Ferran Urgell

How to insert an xml node in a transformer

Posted by Hugo Burm <hu...@xs4all.nl>.
Hello

I am trying to implement my own Highlight transformer that highlights terms
in xml documents that are the result of a Lucene query.

For this to work, I have to insert a new xml node (e.g. <bold>) in the
"characters" function in my class that subclasses
org.apache.cocoon.transformation.AbstractTransformer.

I tried the obvious things like calling the next three lines of code in my
"characters" function.
No success. The startElement is reported by the logger. The endElement
isn't.

String mytag = "bold";
super.contentHandler.startElement("", mytag, mytag, null);
super.contentHandler.endElement("", mytag, mytag);

Need a piece of code that illustrates how to do this...

Thanks


Hugo Burm
hugob@xs4all.nl


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: PDF

Posted by Andrey Demchenko <de...@kyivstar.net>.
 <fo:external-graphic  display-align="center"
  src="logo.gif"/> 

  ----- Original Message ----- 
  From: Ferran Urgell 
  To: cocoon-users@xml.apache.org 
  Sent: Thursday, April 11, 2002 12:17 PM
  Subject: PDF


  Hi Cocooners!!

  I would to put an image (logo for example) into a pdf...with xsl-fo, how can I do this?

  Thanks!

  Ferran Urgell