problem with image path

2004-10-19 Thread Eldho George








Hai all



The following is my code snippet for handling img tag.I has some problem
with image path.

I have created a servlet to
converting a web page into pdf.For this i have used a button on my page 

to invoke the servlet and gets the pdf of
current web page.Here i am
used the image path as

img src=http://localhost:8080/PDF/images/banner.gif
/.Here the image will be displayed on the web page 

and i can convert it into pdf using
the following xsl.Now i
have created a pdf converter application(standalone
application)

and tried with some html page.Here
what my problem is the images in the html pages are not get displayed with pdf document.Because 

this html page
contain image path like img src=doc/images/img1.gif/.I
am used fop and xsl-fo



My question is 

Can I specify a local path to the image?How can I convert local path to url
using xsl.



!--*html code--

html

head

head

body

img src="doc/images/img1.gif"/

/body

/html





!--Code to handle img
tag***--



xsl:template
match=img

fo:block

 fo:external-graphic 

 xsl:attribute name=src

 xsl:texturl('/xsl:text

 xsl:value-of select=@src/

 xsl:text')/xsl:text

 /xsl:attribute

 /fo:external-graphic

/fo:block

/xsl:template





please help me 

george









**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**






XML Editor

2004-10-19 Thread Mark Donnelly
Does anyone know of a good, free XML editor that does XSLT transforms and
preserves unicode characters?

Im currently using XRay but it seems to corrupt my unicode values upon
translation.

I put in the correct unicode characters for non breaking space but after
translation, when I put it through FOP I get an error message telling me
that there is an unrecognised unicode character.

snip
fo:block#xa0;/fo:block

Produces the following error:

[ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.fop.apps.Driver.render(Driver.java:507)
at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
6)
at org.apache.fop.apps.Fop.main(Fop.java:62)

-

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



Re: XML Editor

2004-10-19 Thread foxmask
i saw this http://www.xml-dev.com/blog/#19
but dont know if one of them does XSLT transform


On Tue, 19 Oct 2004 10:13:23 +0100, Mark Donnelly
[EMAIL PROTECTED] wrote:
 Does anyone know of a good, free XML editor that does XSLT transforms and
 preserves unicode characters?
 
 Im currently using XRay but it seems to corrupt my unicode values upon
 translation.
 
 I put in the correct unicode characters for non breaking space but after
 translation, when I put it through FOP I get an error message telling me
 that there is an unrecognised unicode character.
 
 snip
 fo:block#xa0;/fo:block
 
 Produces the following error:
 
 [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
 org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence.
 at org.apache.fop.apps.Driver.render(Driver.java:507)
 at
 org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
 6)
 at org.apache.fop.apps.Fop.main(Fop.java:62)
 
 -
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Founder Member of Phpfr.Org

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



RE: XML Editor

2004-10-19 Thread Mark Donnelly
Thanks so far guys but I really need an editor that is freeware, not
evaluation software.

-Original Message-
From: Balamuraly [mailto:[EMAIL PROTECTED]
Sent: 19 October 2004 11:39
To: [EMAIL PROTECTED]
Subject: Re: XML Editor


Hi Mark,

Try Demo version of OXYGEN.

bala

 -Original Message-
 From: Mark Donnelly [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 19, 2004 2:43 PM
 To: [EMAIL PROTECTED]
 Subject: XML Editor


 Does anyone know of a good, free XML editor that does XSLT transforms and
 preserves unicode characters?

 Im currently using XRay but it seems to corrupt my unicode values upon
 translation.

 I put in the correct unicode characters for non breaking space but after
 translation, when I put it through FOP I get an error message telling me
 that there is an unrecognised unicode character.

 snip
 fo:block#xa0;/fo:block

 Produces the following error:

 [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
 org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence.
 at org.apache.fop.apps.Driver.render(Driver.java:507)
 at
 org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
 6)
 at org.apache.fop.apps.Fop.main(Fop.java:62)

 -

 -
 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: XML Editor

2004-10-19 Thread foxmask
http://jedit.org seems to do it, but i just discover it.
i mean i already knew it but i have to try the XSLT plugin too ;)


On Tue, 19 Oct 2004 12:44:44 +0100, Mark Donnelly
[EMAIL PROTECTED] wrote:
 Thanks so far guys but I really need an editor that is freeware, not
 evaluation software.
 
 -Original Message-
 From: Balamuraly [mailto:[EMAIL PROTECTED]
 Sent: 19 October 2004 11:39
 To: [EMAIL PROTECTED]
 Subject: Re: XML Editor
 
 Hi Mark,
 
 Try Demo version of OXYGEN.
 
 bala
 
  -Original Message-
  From: Mark Donnelly [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 19, 2004 2:43 PM
  To: [EMAIL PROTECTED]
  Subject: XML Editor
 
 
  Does anyone know of a good, free XML editor that does XSLT transforms and
  preserves unicode characters?
 
  Im currently using XRay but it seems to corrupt my unicode values upon
  translation.
 
  I put in the correct unicode characters for non breaking space but after
  translation, when I put it through FOP I get an error message telling me
  that there is an unrecognised unicode character.
 
  snip
  fo:block#xa0;/fo:block
 
  Produces the following error:
 
  [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
  org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8 sequence.
  at org.apache.fop.apps.Driver.render(Driver.java:507)
  at
  org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
  6)
  at org.apache.fop.apps.Fop.main(Fop.java:62)
 
  -
 
  -
  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]
 
 


-- 
Founder Member of Phpfr.Org

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



Re: I need your help

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi everybody,
This is a pure XSLT question and probably best asked on the XSLT list:
http://xml.apache.org/fop/maillist.html#xslt-mulberry
This new tag can go n times each time I need the value of cureent tag 
vaue new and it immediate previous.
The following XSL snippet should give you an idea of how to do it:
xsl:template match=new
xsl:choose
xsl:when test=preceding-sibling::new
xsl:value-of select=preceding-sibling::new/
/xsl:when
xsl:otherwise0/xsl:otherwise
/xsl:choose
xsl:value-of select=./
/xsl:template
Since you didnt say what you were trying to do with these values I have done 
anything with them.

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


Re: I need your help

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi everybody,
This is a pure XSLT question and probably best asked on the XSLT list:
http://xml.apache.org/fop/maillist.html#xslt-mulberry
This new tag can go n times each time I need the value of cureent tag 
vaue new and it immediate previous.
The following XSL snippet should give you an idea of how to do it:
xsl:template match=new
xsl:choose
xsl:when test=preceding-sibling::new
xsl:value-of select=preceding-sibling::new/
/xsl:when
xsl:otherwise0/xsl:otherwise
/xsl:choose
xsl:value-of select=./
/xsl:template
Since you didnt say what you were trying to do with these values I havent done 
anything with them.

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


RE: XML Editor

2004-10-19 Thread Mark Donnelly
Yep, thanks for this one. It does faithfully transform unicode characters.

Ill can finally stop using '.'s as place holders now.

Just remember that XRay does not seem to do this, if anyone is having
similar troubles in the future.

-Original Message-
From: foxmask [mailto:[EMAIL PROTECTED]
Sent: 19 October 2004 12:54
To: [EMAIL PROTECTED]
Subject: Re: XML Editor


http://jedit.org seems to do it, but i just discover it.
i mean i already knew it but i have to try the XSLT plugin too ;)


On Tue, 19 Oct 2004 12:44:44 +0100, Mark Donnelly
[EMAIL PROTECTED] wrote:
 Thanks so far guys but I really need an editor that is freeware, not
 evaluation software.
 
 -Original Message-
 From: Balamuraly [mailto:[EMAIL PROTECTED]
 Sent: 19 October 2004 11:39
 To: [EMAIL PROTECTED]
 Subject: Re: XML Editor
 
 Hi Mark,
 
 Try Demo version of OXYGEN.
 
 bala
 
  -Original Message-
  From: Mark Donnelly [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 19, 2004 2:43 PM
  To: [EMAIL PROTECTED]
  Subject: XML Editor
 
 
  Does anyone know of a good, free XML editor that does XSLT transforms
and
  preserves unicode characters?
 
  Im currently using XRay but it seems to corrupt my unicode values upon
  translation.
 
  I put in the correct unicode characters for non breaking space but after
  translation, when I put it through FOP I get an error message telling me
  that there is an unrecognised unicode character.
 
  snip
  fo:block#xa0;/fo:block
 
  Produces the following error:
 
  [ERROR] Invalid byte 1 of 1-byte UTF-8 sequence.
  org.apache.fop.apps.FOPException: Invalid byte 1 of 1-byte UTF-8
sequence.
  at org.apache.fop.apps.Driver.render(Driver.java:507)
  at
  org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
  6)
  at org.apache.fop.apps.Fop.main(Fop.java:62)
 
  -
 
  -
  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]
 
 


-- 
Founder Member of Phpfr.Org

-
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]



text alignment

2004-10-19 Thread Timo . Roessner
hi, 

i got a problem which hasn 't been described in the mailing list archives.

i have a standard block article, what i know want is that the right-most
char of every line of text output 
is exactly aligned to every other right-most char of the other lines of this
article.
in other words, is there a way i can tell fop to adjust char padding in a
way that the left-most /
right-most char of a line is exactly aligned to that of the other lines?

thanks in advance, Timo Roessner

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



Re: write in vertical mode

2004-10-19 Thread Louis . Masters

Here is some sample SVG code to write vertically:

fo:instream-foreign-object
  svg:svg width=152 height=60 xmlns=http://www.w3.org/2000/svg;
svg:g font-size=5 font-family=sans-serif fill=black
  svg:text x=2 y=1 writing-mode=tb
glyph-orientation-vertical=0
FRONT
  /svg:text
/svg:g
  /svg:svg
/fo:instream-foreign-object


Note the writing-mode attrib:  tb - top to bottom

-Lou




   
  Jon Alegria  
   
  Esarte  To:  [EMAIL PROTECTED] 
 
  [EMAIL PROTECTED] cc:
 
  ia.com  Subject: write in vertical mode  
   

   
  10/18/2004 14:09  
   
  Please respond
   
  to fop-user   
   

   

   



Hi
How can i write in vertical mode in pdf using fop?

Thanks
FOP 0.18





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



Re: text alignment

2004-10-19 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
hi, 

i got a problem which hasn 't been described in the mailing list archives.
i have a standard block article, what i know want is that the right-most
char of every line of text output 
is exactly aligned to every other right-most char of the other lines of this
article.
in other words, is there a way i can tell fop to adjust char padding in a
way that the left-most /
right-most char of a line is exactly aligned to that of the other lines?
This is the definition of justified text. To justify a block of text, use the 
text-align=justify attribute, e.g.

fo:block text-align=justify
The fox jumped over the lazy cow. The fox jumped over the lazy cow. The fox 
jumped over the lazy cow. The fox jumped over the lazy cow. The fox jumped 
over the lazy cow. The fox jumped over the lazy cow. The fox jumped over the 
lazy cow. The fox jumped over the lazy cow. The fox jumped over the lazy cow. 
The fox jumped over the lazy cow.
/fo:block

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


fit image into table

2004-10-19 Thread fop
Hi,
I want to put an image into a table row consuming as much space as 
possible on the page. So far I have simply set the table.width attribute 
to 100% and the image is scaled as large as it is possible for this 
page. But, this only works if the image is wider than higher, or better 
if the image after scaleing still fits onto the page in the vertical 
direction. If the image is larger in this direction fop will enter into 
a recursive loop.

Is there any way to specify a property to choose the best fit method or 
to limit table rows to grow larger than a page, or must this be computed 
in advance via the xsl/xslt  transformation? If I have to compute this 
value in advance, can somebody point me into the right direction?

Thanks for any answers
Best regards
Dirk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]