Re: external-graphic

2002-05-30 Thread J.Pietschmann

Kelvin Zheng wrote:
 Has anyone successfully displayed image at page header as the following:
 
 fo:static-content flow-name=xsl-region-before
 fo:block
 fo:external-graphic 
 src=http://xml.apache.org/fop/resources/logo.gif;
 /fo:external-graphic
 /fo:block
 /fo:static-content
 
 The image doesn't show up for me and received a warning message 
 Warning: Some static content could not fit in the area..
 
 I tried very small image. It doesn't help.

It's probably still too large. Try to scale it down, for example


   fo:external-graphic height=10mm
 src=http://xml.apache.org/fop/resources/logo.gif/

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: External-graphic

2002-05-10 Thread claes . bergsten


 I have some questions regarding the external-graphic tag.

 What part of the fop implementation is it that decides which image
formats
 that is supported?

The build process looks which image libraries are in the classpath and
compiles adapter classes accordingly.

 Is it the Jimi lib or is it in the fop engine?

jimi.jar must be in the lib directory during build.

 When you embed an image with external-graphic does it get encoded in a
 different format in the PDF?
 (E.g. is it any difference in XObject for different file types)

JPEG is embedded as JPEG images, EPS as XObject, SVG as PDF instructions
and other bitmap formats as (compressed) bitmaps.

 If I try to include a JPG file the encoding works fine and the image
 displays in all viewers I have tested.
 If I try to include a EPS file the encoding works fine but the image
does
 NOT display in any viewers at all. BUT vieweng the PDF in a hex editor
 shows that the corresponding XObject is in there.

Acrobat reader can't display embedded EPS files, but if you print the
PDF on a PostScript printer it will we shown.

True embedded EPS files doesnt show in Acrobat,
but I cant get them to print on a PS printer either.
Tried different RIP engines and they give this errormessage:

RIP: PostScript Error:  syntaxerror; OffendingCommand: bin obj seq, type =
128, elements = 1, size = 15365, unused field not zero
RIP: Flushing: rest of job (to end-of-file) will be ignored

 Hope I made any sence, thanks

You did. I hope this helps.

Thank you Jeremias,
any further ideas?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: External-graphic

2002-05-10 Thread Jeremias Maerki

Strange, I've never had any problems yet. Some random thoughts:
- Did you try GhostScript/GhostView?
- Are your EPS files PostScript Level 1? CorelDraw, for example, tells
  me some strange stuff when I choose anything else that Level 1 when
  exporting EPS.

 True embedded EPS files doesnt show in Acrobat,
 but I cant get them to print on a PS printer either.
 Tried different RIP engines and they give this errormessage:
 
 RIP: PostScript Error:  syntaxerror; OffendingCommand: bin obj seq, type =
 128, elements = 1, size = 15365, unused field not zero
 RIP: Flushing: rest of job (to end-of-file) will be ignored

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: External-graphic

2002-05-10 Thread claes . bergsten


Strange, I've never had any problems yet. Some random thoughts:
What exactly have you worked with/printed with?
My target machine is a big Xerox monster that uses a RIP engine to process
the PDFs and send PS to the printer.

Gives following err message:

  RIP: PostScript Error:  syntaxerror; OffendingCommand: bin obj seq,
type =
  128, elements = 1, size = 15365, unused field not zero
  RIP: Flushing: rest of job (to end-of-file) will be ignored

- Did you try GhostScript/GhostView?

What can I conclude by using this?
My PDF files open and displays the images.
If I print via PDFWriter to file the result PDF looks accurate.

- Are your EPS files PostScript Level 1? CorelDraw, for example, tells
  me some strange stuff when I choose anything else that Level 1 when
  exporting EPS.

Afraid I dont have Corel. I saved my EPS files with Illustrator. ( Level 1,
Illustrator format 8)
Using thoose files generates following error message:

  [INFO]: building formatting object tree
  [INFO]: [1]
  [ERROR]: Error while creating area : Error while recovering Image
Informations (file:/D:/CVS/BC/webApplication/images/gn_testlogo.eps) :
  [INFO]: Parsing of document complete, stopping renderer


Feel lost...

---
Claes Bergsten
Software Development Engineer
TJ Group as

--Contact
[EMAIL PROTECTED]
+47 91668984
www.tjgroup.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: External-graphic

2002-05-10 Thread Jeremias Maerki

 Strange, I've never had any problems yet. Some random thoughts:
 What exactly have you worked with/printed with?
 My target machine is a big Xerox monster that uses a RIP engine to process
 the PDFs and send PS to the printer.

I've used Acrobat Reader 4.05 on Linux to convert the PDF to PostScript
Level 2. The generated PS file printed well on out Xerox DC 12. Actually,
I've never checked with our Xerox DocuPrint 4635. 

What monster do you have? I'm still waiting for a PDF RIP for our 4635.

 Gives following err message:
 
   RIP: PostScript Error:  syntaxerror; OffendingCommand: bin obj seq,
 type =
   128, elements = 1, size = 15365, unused field not zero
   RIP: Flushing: rest of job (to end-of-file) will be ignored
 
 - Did you try GhostScript/GhostView?
 
 What can I conclude by using this?

That your EPS file works at all.

 My PDF files open and displays the images.
 If I print via PDFWriter to file the result PDF looks accurate.
 
 - Are your EPS files PostScript Level 1? CorelDraw, for example, tells
   me some strange stuff when I choose anything else that Level 1 when
   exporting EPS.
 
 Afraid I dont have Corel. I saved my EPS files with Illustrator. ( Level 1,
 Illustrator format 8)

Should work, but I'd try Illustrator 88, too.

 Using thoose files generates following error message:
 
   [INFO]: building formatting object tree
   [INFO]: [1]
   [ERROR]: Error while creating area : Error while recovering Image
 Informations (file:/D:/CVS/BC/webApplication/images/gn_testlogo.eps) :
   [INFO]: Parsing of document complete, stopping renderer

That sounds like something's really wrong. Does this logo really show
when opened in GhostView? 

The above error happens in this code (from
org.apache.fop.images.FopImageFactory.java):

ImageReader imgReader = null;
try {
if (imgIS == null) {
imgIS = absoluteURL.openStream();
}
imgReader = ImageReaderFactory.Make(absoluteURL.toExternalForm(),
imgIS);
} catch (Exception e) {
throw new FopImageException(Error while recovering Image Informations (
+ absoluteURL.toString() + ) : 
+ e.getMessage());
}

Edit this file and add e.printStackTrace(); before throw new Fop,
so we can see what the original error is. Unfortunately, the code here
hides the original exception. e.getMessage() is obviously null, so it
could be a NPE or something.

 Feel lost...
I'm here :-)

Two ideas:
1. If you've got a relatively new Illustrator you can save your logos as
SVG. 
2. If you have Unix (Solaris, Linux) available, you could convert the
PDF to PS using Acrobat Reader on the command line using -toPostScript.

I hope this helps.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: external-graphic size

2002-04-29 Thread Torsten Erler

Yes I'm using this as temporarily solution to avoid program crashes, but
even the image is scaled into the specified size, also if it has original
size of e.g. 10x15 pixel. This produces a unusable chequered print-preview.

Is there another way to force the scaling only if the image overflows the
dimension of the page body area???

P.S.: I've tried to overwrite AWTRenderers renderImageArea(ImageArea
area)to scale the image before painting, but it seems to be the loop
occures before on formatting the area tree (I'll debug this step by step, to
find the precise position).

ThanX Torsten

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
Sent: Montag, 29. April 2002 01:21
To: [EMAIL PROTECTED]
Subject: Re: external-graphic size


Torsten Erler wrote:
 I've a problem with external graphics, which can be greater than the page
 size of the xsl-template. The properties max-height and max-width doesn't
 work (not implemented). The result is an infinite loop on rendering the
 (correctly) generated fo-file with the AWTRenderer to display the
result.
 Is there a workaround for that or have I omit an important setting
(possible
 in xsl) for a parent object.

Try setting height and/or width on the fo:external-graphic
element. If you specify both, the graphic may be stretched,
of you specify only one, the aspect ratio is conserved.

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: external-graphic size

2002-04-29 Thread fred redf

Hi all,

I had the same prob in my project. I made a little
java class (based on some code i found on the
internet) that calculate the actual width of my image.
I call that class inside my xsl (thru xalan java
extension). Then, according to some rules, i configure
width=Xcm inside external graphic tag.

Here is some example of my code :

in the header zone :

xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
xmlns:java=http://xml.apache.org/xslt/java;
exclude-result-prefixes=java



then in my xsl rule :

xsl:template
match=ressource[@type='image']|ressource[@type='schema']
fo:block space-before=0.5cm text-align=center
keep-together=always
xsl:variable name=imagetemp\images\xsl:value-of
select=@URIsrc//xsl:variable
!-- compute the width of my image... --
xsl:variable name=pWidth
select=java:com.scenari.papier.Largeur.hValeur($image)/
fo:table
fo:table-column column-width={$gLargeurPapier}cm/
fo:table-body
fo:table-row
fo:table-cell
fo:block
fo:external-graphic src={$image} 
keep-with-next=always width={$pWidth}cm/
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row keep-with-previous=always
fo:table-cell
fo:block font-family=Helvetica font-size=12pt
text-align=center space-after=0.1cm
keep-with-previous=always space-before=0.3cm
xsl:if test=@titre
Fig. xsl:number count=ressource[@type='image']
level=any format=1/ : xsl:value-of
select=@titre/
/xsl:if
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:block
/xsl:template

Hope this helps...
Fred.

--- Torsten Erler [EMAIL PROTECTED] a écrit :  Yes
I'm using this as temporarily solution to avoid
 program crashes, but
 even the image is scaled into the specified size,
 also if it has original
 size of e.g. 10x15 pixel. This produces a unusable
 chequered print-preview.
 
 Is there another way to force the scaling only if
 the image overflows the
 dimension of the page body area???
 
 P.S.: I've tried to overwrite AWTRenderers
 renderImageArea(ImageArea
 area)to scale the image before painting, but it
 seems to be the loop
 occures before on formatting the area tree (I'll
 debug this step by step, to
 find the precise position).
 
 ThanX Torsten
 
 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED]]
 Sent: Montag, 29. April 2002 01:21
 To: [EMAIL PROTECTED]
 Subject: Re: external-graphic size
 
 
 Torsten Erler wrote:
  I've a problem with external graphics, which can
 be greater than the page
  size of the xsl-template. The properties
 max-height and max-width doesn't
  work (not implemented). The result is an infinite
 loop on rendering the
  (correctly) generated fo-file with the
 AWTRenderer to display the
 result.
  Is there a workaround for that or have I omit an
 important setting
 (possible
  in xsl) for a parent object.
 
 Try setting height and/or width on the
 fo:external-graphic
 element. If you specify both, the graphic may be
 stretched,
 of you specify only one, the aspect ratio is
 conserved.
 
 J.Pietschmann
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: external-graphic size

2002-04-29 Thread Torsten Erler

ThanX fred

After many hours of work for scaling the picture right (with attention for
margins and static areas etc.), now I've accidental changed the layout
master set extend attributes of the regions: before and after as well as
the top/bottom margin unit of measures from mm to px for space saving
and the problem ends up in smoke. The image is scaled correct and no
infinite loop occures. I think there is a rounding failure anywhere deep in
the program on translation different unit of measures into pixels, which
produces this failure.

By Torsten

-Original Message-
From: fred redf [mailto:[EMAIL PROTECTED]]
Sent: Montag, 29. April 2002 10:23
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: external-graphic size


Hi all,

I had the same prob in my project. I made a little
java class (based on some code i found on the
internet) that calculate the actual width of my image.
I call that class inside my xsl (thru xalan java
extension). Then, according to some rules, i configure
width=Xcm inside external graphic tag.

Here is some example of my code :

- snip


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: external graphic [Usage notes]

2001-10-31 Thread Corinna Hischke

Thanks, that did it.

In case others are facing problems with external-graphic as well, here is
what I learned:

1. Content-height and -width are ignored within fo:external-graphic (see bug
no. 2867).

2. The image is automatically scaled to the WIDTH of its containing area. If
the resulting height of the image doesn't fit,
a) the image will be skipped (instead of tying to scale it to the available
height!) or
b) fop runs into an endless loop creating new pages (see bug no. 4262)
depending on the containing area.

3. Someone used block-containers to fit an image to a given size. This
didn't work for me. Instead the block-container remained blank.

Thanks again, Corinna

- Original Message -
From: Branham, Paul [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 11:09 PM
Subject: RE: external graphic


 Try putting it inside of a table. I did this and I wasn't having any
 problems with it.

 Paul Branham
 [EMAIL PROTECTED]
 24/7 Media, Inc.
 Phone:(301)897-7722


 -Original Message-
 From: Corinna Hischke [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 30, 2001 1:26 PM
 To: [EMAIL PROTECTED]
 Subject: Re: external graphic


 Hi All

 I'm facing the same problem like Kenneth's No. 1. My gif-Image is quite
big
 (3000x2000 pixels) and should be scaled down to about 2x1 cm.

 I already tried the trick using a block-container of suitable size, but
 still there is no error and no image coming up. Any suggestions?

 - Corinna

 - Original Message -
 From: Chesak,Kenneth [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 23, 2001 8:33 PM
 Subject: external graphic


  2 questions, sorry to bother, have posted 3 times to the comp.text.xml
  newsgroup without response.
 
  1) I am unable to get a image to show up in the pdf file.
 
  fo:static-content flow-name=xsl-region-before
fo:block
fo:external-graphic src=images/logoTDHS.gif/Image Here
/fo:block
fo:block text-align=center font-size=24ptMEMORANDUM
/fo:block
fo:block text-align=center font-size=16ptCompany XYZ
/fo:block
  /fo:static-content
 




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: external graphic

2001-10-30 Thread Corinna Hischke

Hi All

I'm facing the same problem like Kenneth's No. 1. My gif-Image is quite big
(3000x2000 pixels) and should be scaled down to about 2x1 cm.

I already tried the trick using a block-container of suitable size, but
still there is no error and no image coming up. Any suggestions?

- Corinna

- Original Message -
From: Chesak,Kenneth [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 23, 2001 8:33 PM
Subject: external graphic


 2 questions, sorry to bother, have posted 3 times to the comp.text.xml
 newsgroup without response.

 1) I am unable to get a image to show up in the pdf file.

 fo:static-content flow-name=xsl-region-before
   fo:block
   fo:external-graphic src=images/logoTDHS.gif/Image Here
   /fo:block
   fo:block text-align=center font-size=24ptMEMORANDUM
   /fo:block
   fo:block text-align=center font-size=16ptCompany XYZ
   /fo:block
 /fo:static-content





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: external graphic

2001-10-30 Thread Branham, Paul

Try putting it inside of a table. I did this and I wasn't having any
problems with it.

Paul Branham
[EMAIL PROTECTED]
24/7 Media, Inc.
Phone:(301)897-7722


-Original Message-
From: Corinna Hischke [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: external graphic


Hi All

I'm facing the same problem like Kenneth's No. 1. My gif-Image is quite big
(3000x2000 pixels) and should be scaled down to about 2x1 cm.

I already tried the trick using a block-container of suitable size, but
still there is no error and no image coming up. Any suggestions?

- Corinna

- Original Message -
From: Chesak,Kenneth [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 23, 2001 8:33 PM
Subject: external graphic


 2 questions, sorry to bother, have posted 3 times to the comp.text.xml
 newsgroup without response.

 1) I am unable to get a image to show up in the pdf file.

 fo:static-content flow-name=xsl-region-before
   fo:block
   fo:external-graphic src=images/logoTDHS.gif/Image Here
   /fo:block
   fo:block text-align=center font-size=24ptMEMORANDUM
   /fo:block
   fo:block text-align=center font-size=16ptCompany XYZ
   /fo:block
 /fo:static-content





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: external graphic

2001-10-25 Thread Rajagopal. V

Hi,
 1) I am unable to get a image to show up in the pdf
 file.
 
 fo:static-content flow-name=xsl-region-before
 fo:block
   fo:external-graphic
 src=images/logoTDHS.gif/Image Here
   /fo:block
   fo:block text-align=center
 font-size=24ptMEMORANDUM
   /fo:block
   fo:block text-align=center
 font-size=16ptCompany XYZ
   /fo:block
 /fo:static-content

Either use the whole file URL and mention it as
file:/home/venkar/test.jpg 
or 
if u are using it this way, make the images directory
in the same folder from where u run the FOP command.

 
 2) how do it get the following on 1 line?
 
 XSL
 
 xsl:if test=$level = 'req' or $level = 'app' or
 $level = 'copy' 
 fo:block
 xsl:value-of select=text()/fo:block
 text-align=endDate:
 xsl:value-of select=date/
 /fo:block
 /fo:block
 /xsl:if

Create a fo:table item with these two as cells of
the table.

HTH
Raj

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: external-graphic - problem using relative path

2001-07-18 Thread Ronald Jaramillo

try  fo:external-graphic src=file:VincentSite/img/chkbxgif-y.gif/

mvh
Ronald

-Original Message-
From: Micheál Healy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 12:16 PM
To: [EMAIL PROTECTED]
Subject: external-graphic - problem using relative path


Hi all,

I posted a message regarding this problem a couple of weeks ago, but
received no reply.  
 
I need to reference images (external-graphic) in my xsl.  It seems to work
fine when I use the absolute path, but not when I use the relative path.
Please find attached my original message - it's a little more detail and
contains some sample XSL.

Any help on this would be greatly appreciated.

TIA,

Micheál

Micheál Healy
Engitech Ltd.
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: external-graphic - problem using relative path

2001-07-18 Thread Micheál Healy

Ronald,

Thanks for the suggestion, but unfortuately, it hasn't worked.  I still get
the following error - Invalid Image URL - error on relative URL :
java.lang.NullPointerException.  I tried both fo:external-graphic
src=file:VincentSite/img/chkbxgif-y.gif/ and fo:external-graphic
src=file:/VincentSite/img/chkbxgif-y.gif/ with identical results.  I
wonder if it's something to do with my configuration, although, as I said, I
can read the dictionary using a relative path.

Any ideas?

Thanks,

Micheál


- Original Message -
From: Ronald Jaramillo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 12:38 PM
Subject: RE: external-graphic - problem using relative path


 try  fo:external-graphic src=file:VincentSite/img/chkbxgif-y.gif/

 mvh
 Ronald

 -Original Message-
 From: Micheál Healy [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 18, 2001 12:16 PM
 To: [EMAIL PROTECTED]
 Subject: external-graphic - problem using relative path


 Hi all,

 I posted a message regarding this problem a couple of weeks ago, but
 received no reply.

 I need to reference images (external-graphic) in my xsl.  It seems to
work
 fine when I use the absolute path, but not when I use the relative path.
 Please find attached my original message - it's a little more detail and
 contains some sample XSL.

 Any help on this would be greatly appreciated.

 TIA,

 Micheál

 Micheál Healy
 Engitech Ltd.
 [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: external-graphic - problem using relative path

2001-07-18 Thread Ronald Jaramillo

try placing an image (say foo.gif ) on the same directory as the fop.jar .
Then write a simple fo file:

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=simple
fo:region-body margin-top=3cm/
fo:region-before extent=1.5cm/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-name=simple
fo:flow flow-name=xsl-region-body
fo:block
fo:external-graphic src=file:foo.gif/
/fo:block
/fo:flow
/fo:page-sequence
/fo:root

Place it in the same directory and test if from the command line.
If this does not work, something is broken with the version of fop you are
using.
Most probably the path you are using should be relative to where the fop.jar
is placed ( this is what works for me, not necesary the best way to do it )

MVH
Ronald


 -Original Message-
 From: Micheál Healy [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 18, 2001 2:44 PM
 To: [EMAIL PROTECTED]
 Subject: Re: external-graphic - problem using relative path
 
 
 Ronald,
 
 Thanks for the suggestion, but unfortuately, it hasn't 
 worked.  I still get
 the following error - Invalid Image URL - error on relative URL :
 java.lang.NullPointerException.  I tried both fo:external-graphic
 src=file:VincentSite/img/chkbxgif-y.gif/ and fo:external-graphic
 src=file:/VincentSite/img/chkbxgif-y.gif/ with identical 
 results.  I
 wonder if it's something to do with my configuration, 
 although, as I said, I
 can read the dictionary using a relative path.
 
 Any ideas?
 
 Thanks,
 
 Micheál
 
 
 - Original Message -
 From: Ronald Jaramillo [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 18, 2001 12:38 PM
 Subject: RE: external-graphic - problem using relative path
 
 
  try  fo:external-graphic 
 src=file:VincentSite/img/chkbxgif-y.gif/
 
  mvh
  Ronald
 
  -Original Message-
  From: Micheál Healy [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 18, 2001 12:16 PM
  To: [EMAIL PROTECTED]
  Subject: external-graphic - problem using relative path
 
 
  Hi all,
 
  I posted a message regarding this problem a couple of weeks ago, but
  received no reply.
 
  I need to reference images (external-graphic) in my xsl.  
 It seems to
 work
  fine when I use the absolute path, but not when I use the 
 relative path.
  Please find attached my original message - it's a little 
 more detail and
  contains some sample XSL.
 
  Any help on this would be greatly appreciated.
 
  TIA,
 
  Micheál
 
  Micheál Healy
  Engitech Ltd.
  [EMAIL PROTECTED]
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: external-graphic - problem using relative path

2001-07-18 Thread Micheál Healy

Hi Ronald,

I tried that and it works fine.  The problem is that the relative path where
my images are stored is not from the folder containing my fop.jar.  I
reference the dictionary in the same XSL as follows:
xsl:variable name=lang
select=document('/VincentSite/xml/Dictionary.xml')/Dictionary/
As you can see, the path used is a relative path.  VincentSite is an
alias, in Apache, for a folder in my HD.  The images are in a different
sub-folder within the same folder.  I know you can use images using a
relative path, but I am retrieving mine across a webserver (Apache), and
this seems to be where the problem lies.

Thanks for sticking with me on this.

Regards

Micheál

- Original Message -
From: Ronald Jaramillo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 18, 2001 2:04 PM
Subject: RE: external-graphic - problem using relative path


 try placing an image (say foo.gif ) on the same directory as the fop.jar .
 Then write a simple fo file:

 ?xml version=1.0 encoding=UTF-8?
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master master-name=simple
 fo:region-body margin-top=3cm/
 fo:region-before extent=1.5cm/
 /fo:simple-page-master
 /fo:layout-master-set

 fo:page-sequence master-name=simple
 fo:flow flow-name=xsl-region-body
 fo:block
 fo:external-graphic src=file:foo.gif/
 /fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root

 Place it in the same directory and test if from the command line.
 If this does not work, something is broken with the version of fop you are
 using.
 Most probably the path you are using should be relative to where the
fop.jar
 is placed ( this is what works for me, not necesary the best way to do
it )

 MVH
 Ronald


  -Original Message-
  From: Micheál Healy [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, July 18, 2001 2:44 PM
  To: [EMAIL PROTECTED]
  Subject: Re: external-graphic - problem using relative path
 
 
  Ronald,
 
  Thanks for the suggestion, but unfortuately, it hasn't
  worked.  I still get
  the following error - Invalid Image URL - error on relative URL :
  java.lang.NullPointerException.  I tried both fo:external-graphic
  src=file:VincentSite/img/chkbxgif-y.gif/ and fo:external-graphic
  src=file:/VincentSite/img/chkbxgif-y.gif/ with identical
  results.  I
  wonder if it's something to do with my configuration,
  although, as I said, I
  can read the dictionary using a relative path.
 
  Any ideas?
 
  Thanks,
 
  Micheál
 
 
  - Original Message -
  From: Ronald Jaramillo [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, July 18, 2001 12:38 PM
  Subject: RE: external-graphic - problem using relative path
 
 
   try  fo:external-graphic
  src=file:VincentSite/img/chkbxgif-y.gif/
  
   mvh
   Ronald
  
   -Original Message-
   From: Micheál Healy [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, July 18, 2001 12:16 PM
   To: [EMAIL PROTECTED]
   Subject: external-graphic - problem using relative path
  
  
   Hi all,
  
   I posted a message regarding this problem a couple of weeks ago, but
   received no reply.
  
   I need to reference images (external-graphic) in my xsl.
  It seems to
  work
   fine when I use the absolute path, but not when I use the
  relative path.
   Please find attached my original message - it's a little
  more detail and
   contains some sample XSL.
  
   Any help on this would be greatly appreciated.
  
   TIA,
  
   Micheál
  
   Micheál Healy
   Engitech Ltd.
   [EMAIL PROTECTED]
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]