Re: UniCode - ? - CLOSED

2002-06-10 Thread Ali_Binus
Thanks J,

it's work and i want to share about encoding hope it help for others.

try this free site :
http://www.w3schools.com/xml/xml_encoding.asp


Terima kasih,

Ali

- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 02, 2002 3:00 PM
Subject: Re: UniCode - ?


[EMAIL PROTECTED] wrote:
 yeah that is what i mean. Where and how i put the encoding? (the
declaration
 or what ever in my line code..)

The first line of an XML file is the XML declaration.
   ?xml version=1.0?
You can declare an encoding there:
   ?xml version=1.0 encoding=UTF-8?
UTF-8 ist the default encoding, so the two declarations are
equivalent.
Every XML parser has to understand UTF-8 and UTF-16, most
understand other encodings, like ISO-8859-1 (Latin-1).

 and how i know the type of encoding that i use?

There is no way to diagnose this remotely, you have to
know this by yourself. Most editors only know native
encoding, some of the more recent provide for choosing
an encoding while saving.

 actually i want to use Thai
 encoding, but i don't know from where i get the encoding type for the
Thai.

In general, you don't have to. If you have an editor which
natively supports entering Thai characters, check the
documentation or whatever configuration settings the editor
has for the encoding used. Set the encoding name in the
XML declaration and hope the XML parser understands it (if
not, you'll get an error). If you can choose the encoding,
prefer UTF-8 or UTF-16.
If you have an ASCII editor, you can use XML character references
for entering Thai characters. You just wont see Thai glyphs on
the screen. The Thai characters start at Unicode code point
U+0E00, you can use 0x0E01; etc.


J.Pietschmann





How do I learn to understand the W3 XSL Recommendation?

2002-06-10 Thread David Penton
Hello all.  I have looked at various sources to understand xsl-fo, and 
have had quite a lot of success in actually getting FOP to produce 
usable results.  However, I am now embarking on evaluation of various 
engines (including FOP) that leads me to believe that I should 
understand the W3 Recommendation in its more technical aspects better. 

I find it very tough going.  Is that a source (maybe a mailing list 
archive) that anyone has found particularly useful in this regard?

- Dave Penton -




RE: row fragmentation problem..

2002-06-10 Thread vinod . nayak



No,

Please 
tell me the usage. Though I used it, it wasn't 
working..

  -Original Message-From: Florence Deforge 
  [mailto:[EMAIL PROTECTED]Sent: Friday, June 
  07, 2002 5:16 PMTo: [EMAIL PROTECTED]Subject: Re: 
  row fragmentation problem..
  Have you tried the keep-together property on 
  table-row ?
  
- Original Message - 
From: 
[EMAIL PROTECTED] 

To: [EMAIL PROTECTED] 
Sent: Friday, June 07, 2002 12:01 
PM
Subject: RE: row fragmentation 
problem..

Though I increase the page height ( width does not 
matter in this problem ),
I 
think, it is not going serve any purpose. The decision comes at the end of 
the page whether to
move the entire row to the next page or 
not.

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 
  2002 3:12 PMTo: [EMAIL PROTECTED]Subject: RE: 
  row fragmentation problem..
  increase ur page width as well as table width .it will work 
  fine.
  
  Regards 
  Sanjib Ku. Das 
  PQFGHIJ (080) 5597600 -3868 
  **it's impossible to judge your 
  talent until and unless you exercise it. **Believe in attitude, not in 
  talent.
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 
2002 2:37 AMTo: [EMAIL PROTECTED]Subject: 
row fragmentation problem..
Hi,

I have a 
Table whose contents span over multiple 
pages.
I have to 
ensure the the contents of a cell within a 
row of 
that table 
should not be carried over to the next page.
In this 
case, the more appropriate idea would be moving the 
whole
row to the 
next page. How could I handle this thing, in the XSL 
sheet?

Vinod Nayak
i-flex solutions 
ltd.
Voice: (91)-228 43 00, x 6501 
Fax:(91)-22-843 13[EMAIL PROTECTED]


 
This message contains privileged and confidential information and is 
intended only for the individual named.If you are not the intended 
recipient you should not disseminate,distribute,store,print, copy or 
deliver this message.Please notify the sender immediately by e-mail if 
you have received this e-mail by mistake and delete this e-mail from 
your system.E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be 
intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a 
result of e-mail transmission. If verification is required please 
request a hard-copy version. 

   
  This message contains privileged and confidential information and is 
  intended only for the individual named.If you are not the intended 
  recipient you should not disseminate,distribute,store,print, copy or 
  deliver this message.Please notify the sender immediately by e-mail if you 
  have received this e-mail by mistake and delete this e-mail from your 
  system.E-mail transmission cannot be guaranteed to be secure or error-free 
  as information could be intercepted,corrupted,lost,destroyed,arrive late 
  or incomplete or contain viruses.The sender therefore does not accept 
  liability for any errors or omissions in the contents of this message 
  which arise as a result of e-mail transmission. If verification is 
  required please request a hard-copy version. ! 
  
 
This message contains privileged and confidential information and is 
intended only for the individual named.If you are not the intended recipient 
you should not disseminate,distribute,store,print, copy or deliver this 
message.Please notify the sender immediately by e-mail if you have received 
this e-mail by mistake and delete this e-mail from your system.E-mail 
transmission cannot be guaranteed to be secure or error-free as information 
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a result 
of e-mail transmission. If verification is required please request a 

Re: How do I learn to understand the W3 XSL Recommendation?

2002-06-10 Thread Bertrand Delacretaz
On Monday 10 June 2002 06:04, David Penton wrote:
. . .leads me to believe that I should
 understand the W3 Recommendation in its more technical aspects better.

A good starting point is http://www.w3.org/Style/XSL/ , it contains links to 
a number of resources.

I find it important to consider XSLT (transformations) and XSL-FO 
(formatting) separately while learning - altough both covered by the XSL 
recommendation these two technologies have very different purposes.

Regarding XSL-FO, I find Dave Pawson's FO questions pages 
(http://www.dpawson.co.uk/xsl/sect3/index.html) to be a very good starting 
point.

-- 
 Bertrand Delacrétaz (codeconsult.ch, jfor.org)

 buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding.
 disclaimer: eternity is very long. mostly towards the end. get ready.







Re: row fragmentation problem..

2002-06-10 Thread Florence Deforge



Example : 
fo:table border="none" 
text-align="left" fo:table-column 
column-width="90mm"/
 fo:table-column 
column-width="90mm"/
fo:table-body 
fo:table-row border="none" 
keep-together="always" 
fo:table-cell 
border="0" 
!-- cell content --
/fo:table-cell
 
fo:table-cell 
border="0" 
!-- cell content --
/fo:table-cell
 
/fo:table-row
/fo:table-body
/fo:table
 

The page-break will always occur before the 
beggining of the row, if the row can't be displayed in the current 
page.

Flo

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 10, 2002 8:53 AM
  Subject: RE: row fragmentation 
  problem..
  
  No,
  
  Please tell me the usage. Though I used it, 
  it wasn't working..
  
-Original Message-From: Florence Deforge 
[mailto:[EMAIL PROTECTED]Sent: Friday, 
June 07, 2002 5:16 PMTo: [EMAIL PROTECTED]Subject: 
Re: row fragmentation problem..
Have you tried the keep-together property on 
table-row ?

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  Sent: Friday, June 07, 2002 12:01 
  PM
  Subject: RE: row fragmentation 
  problem..
  
  Though I increase the page height ( width does 
  not matter in this problem ),
  I think, it is not going serve any purpose. The 
  decision comes at the end of the page whether to
  move the entire row to the next page or 
  not.
  
-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]Sent: Friday, June 07, 
2002 3:12 PMTo: [EMAIL PROTECTED]Subject: 
RE: row fragmentation problem..
increase ur page width as well as table width .it will work 
fine.

Regards 
Sanjib Ku. Das 
PQFGHIJ (080) 5597600 -3868 
**it's impossible to judge your 
talent until and unless you exercise it. **Believe in attitude, not in 
talent.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Friday, June 
  07, 2002 2:37 AMTo: 
  [EMAIL PROTECTED]Subject: row fragmentation 
  problem..
  Hi,
  
  I have a 
  Table whose contents span over multiple 
  pages.
  I have to 
  ensure the the contents of a cell within a 
  row of 
  that table 
  should not be carried over to the next page.
  In this 
  case, the more appropriate idea would be moving the 
  whole
  row to the 
  next page. How could I handle this thing, in the XSL 
  sheet?
  
  Vinod 
  Nayak
  i-flex solutions 
  ltd.
  Voice: (91)-228 43 00, x 6501 
  Fax:(91)-22-843 13[EMAIL PROTECTED]
  
  
   
  This message contains privileged and confidential information and is 
  intended only for the individual named.If you are not the intended 
  recipient you should not disseminate,distribute,store,print, copy or 
  deliver this message.Please notify the sender immediately by e-mail if 
  you have received this e-mail by mistake and delete this e-mail from 
  your system.E-mail transmission cannot be guaranteed to be secure or 
  error-free as information could be 
  intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
  contain viruses.The sender therefore does not accept liability for any 
  errors or omissions in the contents of this message which arise as a 
  result of e-mail transmission. If verification is required please 
  request a hard-copy version. 
  
 
This message contains privileged and confidential information and is 
intended only for the individual named.If you are not the intended 
recipient you should not disseminate,distribute,store,print, copy or 
deliver this message.Please notify the sender immediately by e-mail if 
you have received this e-mail by mistake and delete this e-mail from 
your system.E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be 
intercepted,corrupted,lost,destroyed,arrive late or incomplete or 
contain viruses.The sender therefore does not accept liability for any 
errors or omissions in the contents of this message which arise as a 
result of e-mail transmission. If verification is required please 
request a hard-copy version. ! 

Re: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-10 Thread Keiron Liddle
try using:
addTranscodingHint

you are removing transocding hints with the setTranscodingHints.

The hint has a StringKey as the key and a Boolean as the value.

On Sat, 2002-06-08 at 03:03, Vollmer, Thomas - CannonSA wrote:
 Map hints = new HashMap();
 hints.put(PDFTranscoder.KEY_STROKE_TEXT, Boolean.FALSE);
 pdfTranscoder.setTranscodingHints(hints);

 So, I guess in line 174 it expects a Boolean, but I can't
 get a Boolean into the Map because KEY_STROKE_TEXT is a
 StringKey. So, KEY_STROKE_TEXT should probably be a
 BooleanKey!?

 1) There seem to be two ways to configure text stroking.
 What's the difference and which is the preferred way?

One is for FOP, ie converting fo to pdf.
The other is for batik, converting svg to pdf.
The configuration and other things are not related.

 2) In the mailing list archive I've read that there are
 limitations when not stroking text in FOP. 
 What exactly are these limitations?

This would probably be the following:
- if there is a font or character substitution then it won't work
properly
- it may ignore things like tspan x and y changes or colourings


 Thanks for your help,
 Thomas




AW: Landscape Layout

2002-06-10 Thread Mihael Knezevic
i'm generating pdf in landscape format using this layout-set.

fo:layout-master-set
fo:simple-page-master master-reference=Body
page-height=21cm page-width=29.7cm margin-top=2mm
margin-left=5mm margin-bottom=2mm margin-right=5mm
fo:region-body margin-top=5mm
margin-left=5mm margin-bottom=5mm margin-right=5mm/
fo:region-after border-before-style=solid
border-width=1pt extent=10mm display-align=before/
/fo:simple-page-master
/fo:layout-master-set


-Ursprüngliche Nachricht-
Von: Urban, Patrick [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 7. Juni 2002 16:05
An: [EMAIL PROTECTED]
Betreff: Landscape Layout


I am looking for a technique to generate a PDF report in a landscape
layout.
Is this possible using FOP?

Patrick


RE: Which Batik version in FOP 0.20.3

2002-06-10 Thread Keiron Liddle

Most likely if it works then they are compatible.
I can't remember if there where any changes between those versions that
would cause problems.

On Fri, 2002-06-07 at 19:47, Vollmer, Thomas - CannonSA wrote:
 Thanks, Keiron. And here's a follow-up question...
 
 I'm trying to convert an SVG to PDF and had success with the following two
 command lines:
 
 java -cp
 D:\Programs\fop-0.20.3\lib\batik.jar;D:\Programs\batik-1.5\lib\crimson-pa
 rser.jar;D:\Programs\fop-0.20.3\build\fop.jar
 org.apache.batik.apps.rasterizer.Main -m application/pdf test.svg
 
 java -cp
 D:\Programs\batik-1.1.1\batik.jar;D:\Programs\fop-0.20.3\build\fop.jar
 org.apache.batik.apps.rasterizer.Main -m application/pdf test.svg
 
 The first one uses the Batik that comes with FOP, which is 1.1 as I now
 know.
 The second one uses Batik 1.1.1 which also seems to work. 
 
 Keiron, can you confirm that for the purposes of FOP/Batik-integration it
 makes
 no difference whether I use Batik 1.1 or Batik 1.1.1?
 
 Thanks,
 Thomas




Re: Problem with image resolution in FOP

2002-06-10 Thread pascal.munerot
Hi,

This is my fault. I did not make it clear that I was generating barcodes
via an API (IDAutomation actually) that generates images.
I already tried to give fixed values to content-width and content-height
but the printed results looks awkward. It seems that the scaling algorithm
downgrades the barcode quality.
I am currently investigating :
- SVG as you mentionned but I do not see how I can use it to take a bitmap
image as input (I looked at it very quickly on Friday, so I need to get
back to it).- The use of a dedicated font.

Thanks for your help again.

Pascal



 [EMAIL PROTECTED] wrote:
 Hi,

 Do you know if it is possible to generate SVG from a bitmapped graphic
 (GIF or JPEG. The API i use does not generate SVG unfortunately). I
 shall give a try at SVG (if I can embed or convert the barcode image).

 Oops, I got the impression you generated your barcodes
 as SVG, because you fiddled with an SVG class.
 If you use a bitmap format, simply put width and height
 on the fo:external-graphic element to scale it to the size
 tou want to have. Use any bitmap size you want, it will be
 scaled. This may give artifacts on low resolution screens,
 print it for final judgement. If you want to be sure that
 it is mapped to the printer without rounding artifacts,
 use an image width so that image-pixel-width/fo-width divides
 the printer resolution, for example
  printer: 600 dpi
  suggested resolution: 300 dpi
  width on paper output: 5.08 cm (2 inch)
  use 300 dpi*2inch=600 pixel width
 Each pixel of your bitmap will then be printed using 2 printer
 pixels (hopefully).

 I am also considering the use of a barcode font. On the project for
 which I am working, they used a barcode font in order to produce small
 but still high quality barcodes). I wondered if it is possible to do
 such a thing with FOP (I have seen somewhere in FOP samples that it
 was supposedly possible but I have not yet given it a try).

 It is possible, at least in theory. Get a font, and look into
 docs/htmnl/docs/fonts.html for how to use it with FOP. Unfortunately,
 barcodes are not unicode characters, and font importing sometimes
 fails because the font files do not contain an unicode mapping.


 J.Pietschmann





External Graphic

2002-06-10 Thread Urban, Patrick
Can anyone help me debug this. I am looking to simply pull a logo onto my
report with this code...

fo:external-graphic src=http://epndev0006/Logo_Plain.gif/

this error is being output from FOP...

[ERROR]: Error while creating area : Error with image URL:
http://epndev0006/Logo_Plain.gif and no base directory is specified.

The image is in the correct directory and everything is spelled correctly.
The image resides in the root of my wwwroot folder and I can hit it with a
browser by typing the above URL.

Thanks ,
Patrick


XSLT for HTML to XSLT for XSL:FO

2002-06-10 Thread jmao
Hi,

I have large number of xsl style sheet used to generate HTML pages from
original XMLs. Now there is a requirement to generate PDF for each of these
HTML pages. One thought is to use a seperate XSL to transform the XSLs used
for HTML generation to XSLs can be used to generate XSL:FO from orginal
XML. My question is that is there such a XSL already exists anywhere?

Many Thanks,
___
Jianbo Mao
CheckFree i-Solutions
Email: [EMAIL PROTECTED]
Office:  +44 (0) 1753 567896
Mobile: +44 (0) 7810 483974
Fax:  +44 (0) 1753 567897
___





Re: embedded fop...show progress?

2002-06-10 Thread Oleg Tkachenko
Carter, Will wrote:
thanks for the idea.  I will check out getLogger().
Your first suggestion looks like the best bet.
my fop servlet sends the pdf outputstream to a file, not the browser, so all
I have to do is redirect the log output to the browser somehow...instructing
it to reload every time there is a log eventor something like that.
Instead of reloading page you can flush output stream after outputting each 
log message.

--
Oleg Tkachenko
Multiconn International Ltd, Israel


Fonts don't line up in table

2002-06-10 Thread Darrel Riekhof
I'm having trouble getting different sized fonts to line up in a table.  Below 
is my xsl code.  The smaller font is too high compared to the larger font.  How 
do I get these different sized fonts to line up by their base?

fo:table
  fo:table-column column-width=100pt/
  fo:table-column column-width=435pt/
  fo:table-body font-size=20pt
fo:table-row
  fo:table-cell padding=2pt
fo:block font-size=16pt margin-bottom=0mmSide Mark/fo:block
  /fo:table-cell

  fo:table-cell padding=2pt
fo:block font-weight=bold
  xsl:value-of select=freightItemVO/sidemark/
/fo:block
  /fo:table-cell

/fo:table-row
  /fo:table-body
/fo:table

Darrel
[EMAIL PROTECTED]



RE: Problem with not stroking SVG text (AND BUG IN FOP 0.20.3)

2002-06-10 Thread Vollmer, Thomas - CannonSA
Keiron wrote: 
 try using:
 addTranscodingHint
 
 you are removing transocding hints with the setTranscodingHints.

Actually, that's not the case. Notice that I'm calling
public void setTranscodingHints(Map hints) and NOT
public void setTranscodingHints(TranscodingHints hints).

The first does this.hints.putAll(hints); (i.e. add), 
the second one does this.hints = hints; (i.e. replace).

The JavaDoc for these two methods is a litte confusing
by the way. I had to look at the code to figure this out.





Keiron wrote: 
 The hint has a StringKey as the key and a Boolean as the value.

Hmm. Then why do I get this exception:

java.lang.IllegalArgumentException: false incompatible with
[EMAIL PROTECTED]
at org.apache.batik.transcoder.TranscodingHints.put(Unknown Source)
at org.apache.batik.transcoder.TranscodingHints.putAll(Unknown
Source)
at
org.apache.batik.transcoder.TranscoderSupport.setTranscodingHints(Unknown
Source)
[snip]

...when I try this:

Map hints = new HashMap();
hints.put(PDFTranscoder.KEY_STROKE_TEXT, Boolean.FALSE);
pdfTranscoder.setTranscodingHints(hints);

...and this exception:

java.lang.ClassCastException: java.lang.String
at
org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:174)
at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)

...when I try this:

Map hints = new HashMap();
hints.put(PDFTranscoder.KEY_STROKE_TEXT, false);
pdfTranscoder.setTranscodingHints(hints);





Keiron wrote:
  1) There seem to be two ways to configure text stroking.
  What's the difference and which is the preferred way?
 
 One is for FOP, ie converting fo to pdf.
 The other is for batik, converting svg to pdf.
 The configuration and other things are not related.

Ok, so I guess [1] is for FOP and [2] is for Batik.
[1] org.apache.fop.configuration.Configuration.put(strokeSVGText,
Boolean.FALSE);
[2] transcodingHints.put(PDFTranscoder.KEY_STROKE_TEXT, Boolean.FALSE);





Keiron wrote:
  2) In the mailing list archive I've read that there are
  limitations when not stroking text in FOP. 
  What exactly are these limitations?
 
 This would probably be the following:
 - if there is a font or character substitution then it won't work
 properly
 - it may ignore things like tspan x and y changes or colourings

Ok, thanks.





Regards,
Thomas



If this email is not intended for you, or you are not responsible for
the delivery of this message to the addressee, please note that this
message may contain ITT Privileged/Proprietary Information.  In such
a case, you may not copy or deliver this message to anyone.  You should
destroy this message and kindly notify the sender by reply email.
Information contained in this message that does not relate to the
business of ITT is neither endorsed by nor attributable to ITT.