RE: external-graphic problem

2004-08-25 Thread Sun, Tiffany (Tong)
Title: RE: external-graphic  problem





I had the same problem before, I passed in image root as a parameter to XSLT page, and add that to the path of images. The limitation is: you have to assume all images are using same root path.

Tiffany


-Original Message-
From: vivek gupta [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, August 24, 2004 9:08 PM
To: [EMAIL PROTECTED]
Subject: fo:external-graphic problem


Hi All,
 I am having problem to use image in my
web-application fop file. I am using XSLT and XML to
generate fo file. But when I am deploying app on my
app server. It could not find image file unless I hard
code image path. Please help me how to set up path so
that fo file dynamically finds image file


Thanks in advance
-V



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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





AW: external-graphic problem

2003-06-25 Thread markus . mueller
Hi,
try fo:external-graphic src=star_white.gif/. 

Markus

$ -Ursprüngliche Nachricht-
$ Von: [EMAIL PROTECTED] 
$ [mailto:[EMAIL PROTECTED] 
$ Gesendet: Mittwoch, 25. Juni 2003 10:47
$ An: [EMAIL PROTECTED]
$ Betreff: fo:external-graphic  problem
$ 
$ 
$ 
$ Hello,
$ 
$ I have a problem when i use the fo:external-graphic tag.
$ I use FOP and i have this error when i try to parse the fo file:
$ 
$ 
$ Unsupported element encountered: external-graphic (Namespace 
$ : Default)
$ Source context: ...
$ 
$ Expected XSL-FO (root,, page sequence,etc.), SVG (svg, rect, etc.) or
$ element from another supported language.
$ 
$ ...
$ 
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ [ERROR] no handler defined for external-graphic foreign xml
$ 
$ ...
$ 
$ 
$ This is my code:
$ 
$ external-graphic src=star_white.gif/
$ 
$ 
$ Have you an idea?
$ 
$ 
$ Thanks
$ 
$ Sébastien
$ 
$ 
$ 
$ 
$ The contents of this E-mail are confidential and may contain 
$ privileged information to the sole intended recipient at the 
$ E-mail address to which it has been addressed. It may not be 
$ disclosed to our used by anyone other than the addressee, 
$ nor may it be copied or forwarded in any way without the 
$ consent of the sender.
$ The sender hereby make no representation as to the accuracy, 
$ completeness for a particular purpose of the information 
$ provided in this E-mail. No binding commitment from the 
$ sender may be inferred by means of E-mail communications.
$ Please note that the sender accepts any responsibility for 
$ viruses and it is your responsibility to scan the E-mail and 
$ attachments (if any). 
$ If received in error, please reply by mail to the sender or 
$ contact the sender by phone (+352) 45 67 301, and then 
$ delete it from your system.
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, e-mail: [EMAIL PROTECTED]
$ 

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



Re: external-graphic problem

2003-02-05 Thread Oleg Tkachenko
Mihael Knezevic wrote:
thanx for the response. correct me if i'm wrong, but i thought the base
dir must only be set if i use this in a servlet?
baseDir *may* be set if you need it. Environment doesn't matter, that's just a 
convenient way to resolve relative URI's.

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: external-graphic problem

2003-02-05 Thread Mihael Knezevic
thanx again.

-Original Message-
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 05, 2003 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: external-graphic problem


Mihael Knezevic wrote:
 thanx for the response. correct me if i'm wrong, but i thought the 
 base dir must only be set if i use this in a servlet?

baseDir *may* be set if you need it. Environment doesn't matter, that's
just a 
convenient way to resolve relative URI's.

-- 
Oleg Tkachenko
Multiconn Technologies, Israel


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


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



external-graphic problem

2003-02-04 Thread Mihael Knezevic
hi,

i think i got a simple problem and probably everybody will point me to
the fop faq but i need an example (hopefully a working one).

i want to have one pic on one page.

i got the following xml file:

Bericht
Bild source=wgr-50.jpg /
Bild source=wgr-60.jpg /
Bild source=wgr-70.jpg /
Bild source=wgr-80.jpg /
...
/Bericht

i got the following xsl line in my xsl file:
fo:external-graphic src=@source /

but i get the error message:
[ERROR]: Error while creating area : Error with image URL: @source (Das
System kann die angegebene Datei nicht finden) and no base directory is
specified

can anybody help?

thanx

mk

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



Re: external-graphic problem

2003-02-04 Thread Louis . Masters

Here is our working code:


xsl:if test=@isrc!=''
 fo:external-graphic scaling=uniform height=auto width=auto
content-width=auto content-height=auto src=[EMAIL PROTECTED]/
/xsl:if

If I remember right, you also have to set the basedir (either in your
userconfig.xml or via Java):

Configuration.put(baseDir, file: + imgSrcDir);

-Lou






Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  external-graphic problem

hi,

i think i got a simple problem and probably everybody will point me to
the fop faq but i need an example (hopefully a working one).

i want to have one pic on one page.

i got the following xml file:

Bericht
   Bild source=wgr-50.jpg /
   Bild source=wgr-60.jpg /
   Bild source=wgr-70.jpg /
   Bild source=wgr-80.jpg /
   ...
/Bericht

i got the following xsl line in my xsl file:
fo:external-graphic src=@source /

but i get the error message:
[ERROR]: Error while creating area : Error with image URL: @source (Das
System kann die angegebene Datei nicht finden) and no base directory is
specified

can anybody help?

thanx

mk

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









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



RE: external-graphic problem

2003-02-04 Thread Mihael Knezevic
thanx for the response. correct me if i'm wrong, but i thought the base
dir must only be set if i use this in a servlet?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 04, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Re: external-graphic problem



Here is our working code:


xsl:if test=@isrc!=''
 fo:external-graphic scaling=uniform height=auto width=auto
content-width=auto content-height=auto src=[EMAIL PROTECTED]/ /xsl:if

If I remember right, you also have to set the basedir (either in your
userconfig.xml or via Java):

Configuration.put(baseDir, file: + imgSrcDir);

-Lou






Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  external-graphic problem

hi,

i think i got a simple problem and probably everybody will point me to
the fop faq but i need an example (hopefully a working one).

i want to have one pic on one page.

i got the following xml file:

Bericht
   Bild source=wgr-50.jpg /
   Bild source=wgr-60.jpg /
   Bild source=wgr-70.jpg /
   Bild source=wgr-80.jpg /
   ...
/Bericht

i got the following xsl line in my xsl file: fo:external-graphic
src=@source /

but i get the error message:
[ERROR]: Error while creating area : Error with image URL: @source (Das
System kann die angegebene Datei nicht finden) and no base directory is
specified

can anybody help?

thanx

mk

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









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


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



RE: external-graphic problem

2003-02-04 Thread Mihael Knezevic
thanx. its working now. i should have read the xsl book more carefully.
i missed the part with the braces { }.

sorry and thanx for the help.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 04, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Re: external-graphic problem



Here is our working code:


xsl:if test=@isrc!=''
 fo:external-graphic scaling=uniform height=auto width=auto
content-width=auto content-height=auto src=[EMAIL PROTECTED]/ /xsl:if

If I remember right, you also have to set the basedir (either in your
userconfig.xml or via Java):

Configuration.put(baseDir, file: + imgSrcDir);

-Lou






Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  external-graphic problem

hi,

i think i got a simple problem and probably everybody will point me to
the fop faq but i need an example (hopefully a working one).

i want to have one pic on one page.

i got the following xml file:

Bericht
   Bild source=wgr-50.jpg /
   Bild source=wgr-60.jpg /
   Bild source=wgr-70.jpg /
   Bild source=wgr-80.jpg /
   ...
/Bericht

i got the following xsl line in my xsl file: fo:external-graphic
src=@source /

but i get the error message:
[ERROR]: Error while creating area : Error with image URL: @source (Das
System kann die angegebene Datei nicht finden) and no base directory is
specified

can anybody help?

thanx

mk

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









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


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