Producing Chinese documents

2003-04-04 Thread joni santoso
I want to test whether fop can product chinese docs.
I have some questions:
1. Should I type using the Chinese characters inside the 
fo files? or just using the codes for the Chinese chars?
2. Should I provide the fonts when trying to produce the 
docs? Are they provided by fop?

Any examples for this?
Regards,
===
Malas antri buat mendapatkan print-out tagihan telepon ? Klik aja 
http://billinfo2.plasa.com
Gratis Perpanjangan dan Pendaftaran Nama Domain http://idc.plasa.com khusus di 
bulan Maret !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how to do that ? xslt question

2003-02-27 Thread joni santoso
hi,
i have a question about xslt. could anyone help me? i want 
to display 
the child elements of contents like this :

!--
Hi this ... bfirst/b...
hr size=1
Hi this ... i2nd/i.
hr size=2

--
thx
my xml:
!--
?xml version=1.0?
source
  titlethe title/title
  heading size=2heading/heading
  contents
 content
 Hi this is the boldfirst/bold paragraph.
 /content
 line size=1/  
 content
 Hi this is the italic2nd/italic paragraph.
 newline/
 Still in italicsecond/italic paragraph. 
 /content 
 line size=2/
 content
 Hi this is the italicIII/italic paragraph.
 newline/
 table 
 row
colname/col
colsex/col
 /row
 row
coljohn/col
colmale/col
 /row
 /table
 /content 
  /contents
/source
--

and xsl : 

!--
?xml version=1.0?
xsl:stylesheet version=1.0 

xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/
   xsl:apply-templates/
/xsl:template
xsl:template match=source
   html
  xsl:apply-templates/
   /html
/xsl:template
xsl:template match=title
   titlexsl:value-of select=.//title
/xsl:template
xsl:template match=heading
   xsl:element name=[EMAIL PROTECTED]xsl:value-of 

select=.//xsl:element
/xsl:template
xsl:template match=contents
   body
  ?
   /body
/xsl:template
/xsl:stylesheet
--
===
Dapatkan Telepon SMS untuk rumah dan kantor hanya di PlasaCom melalui 
http://toko.plasa.com
50% Lebih Murah untuk Domain dan Hosting di http://idc.plasa.com khusus di 
bulan Februari !
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


potpourri questions

2003-02-10 Thread joni santoso
hi,
i just started learning cocoon seriously for about 1 
month.

i have several questions: is it possible
1. to overlap several images from jpg/gif files? what will 
be the output?
i mean will the colour of the output be a mixture of the 
colours of the original images? 
2. to overlap text over image and otherwise? what will be 
the output?
3. to create a watermark?
4. to disable the print/copy button of the pdf files i 
created using fop? coz i have seen many tutorials in pdf 
files that can't be copied/printed.
5. i usually create the fo files from the xml files that 
transformed by xsl files. i believe i could use 
xindice/sql server/oracle xml support to create sax 
stream. the problem is where i should put the logics for 
fetching the data?

regards,
joni.
===
Meriahkan Hari Kasih Sayang dengan mengirimkan Kartu Elektronik PlasaCom kepada 
kerabat dan teman yang Anda kasihi !
Kepada para pengguna TELKOMSave, lakukan pergantian kartu lama Anda segera ! 
http://www.telkomsave.com
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Generating PDF on the fly using on the fly XML

2003-02-03 Thread joni santoso
Hi,
I used to create a servlet that can produce PDF by setting 
its contentType. 

1. Now, I wonder if I can use Apache FOP to take XML 
stream that I created using JDOM to produce a PDF?
How?

2. Is it possible to produce a PDF that only contains JPEG 
using XML stream? I am thinking about storing an image 
stream in an XML document like this :

picture
 the stream is here
/picture
3. What about producing mixed content (image and text) in 
a PDF? I know I can use the external link/external file fo 
element. But what if the image and text are all created on 
the fly?

Thank you,
===
Meriahkan Tahun Baru Imlek dengan mengirimkan Kartu Elektronik PlasaCom kepada 
kerabat dan teman Anda
Kepada para pengguna TELKOMSave, lakukan pergantian kartu lama Anda segera ! 
http://www.telkomsave.com
===
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: what's wrong with this?

2003-01-21 Thread joni santoso
yes it works. but is it possible to use something like 
attribute?

because when working in a large doc, it seems strange to 
write a script or cut and paste the doc.

thx
On Mon, 20 Jan 2003 12:35:08 +0530
 [EMAIL PROTECTED] wrote:
just reverse the page-sequence nodes and check it..
-Original Message-
From: joni santoso [mailto:[EMAIL PROTECTED]
Sent: Monday, January 20, 2003 12:15 PM
To: [EMAIL PROTECTED]
Subject: what's wrong with this?
hi,
below is my fo file. when i transform it using apache fop 
the result is a pdf  that the content of other is shown 
first.

is it possible to make apache fop display the contents by 
setting some attributes.

thx
!--
?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
 fo:simple-page-master master-name=only
   fo:region-body/
 /fo:simple-page-master
 fo:simple-page-master master-name=other
   fo:region-body/
 /fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-reference=other
 fo:flow flow-name=xsl-region-body
   fo:block font-size=20pt font-family=serif
 line-height=30pt
 Hydrogen1
   /fo:block
   fo:block font-size=20pt font-family=serif
 line-height=30pt text-align=center 
color=green
 Helium2
   /fo:block
   fo:block
 fo:basic-link 
external-destination=http://www.yahoo.com;go to 
yahoo2/fo:basic-link
   /fo:block
 /fo:flow
   /fo:page-sequence

   fo:page-sequence master-reference=only
 fo:flow flow-name=xsl-region-body
   fo:block font-size=20pt font-family=serif
 line-height=30pt
 Hydrogen
   /fo:block
   fo:block font-size=20pt font-family=serif
 line-height=30pt text-align=center 
color=green
 Helium
   /fo:block
   fo:block
 fo:basic-link 
external-destination=http://www.yahoo.com;go to 
yahoo/fo:basic-link
   /fo:block
 /fo:flow
   /fo:page-sequence
/fo:root

--
===
Meriahkan Tahun Baru Imlek dengan mengirimkan Kartu 
Elektronik PlasaCom kepada kerabat dan teman Anda
KSI PlasaCom - Reuni Alumni STTTelkom 
http://www.plasa.com/belajar/reuni.html 
===

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

Regards,
Joni
===
Meriahkan Tahun Baru Imlek dengan mengirimkan Kartu Elektronik PlasaCom kepada kerabat dan teman Anda
KSI PlasaCom - Reuni Alumni STTTelkom http://www.plasa.com/belajar/reuni.html 
===

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


what's wrong with this?

2003-01-20 Thread joni santoso
hi,
below is my fo file. when i transform it using apache fop 
the result is a pdf  that the content of other is shown 
first.

is it possible to make apache fop display the contents by 
setting some attributes.

thx
!--
?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=only
  fo:region-body/
/fo:simple-page-master
fo:simple-page-master master-name=other
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=other
fo:flow flow-name=xsl-region-body
  fo:block font-size=20pt font-family=serif
line-height=30pt
Hydrogen1
  /fo:block
  fo:block font-size=20pt font-family=serif
line-height=30pt text-align=center 
color=green
Helium2
  /fo:block
  fo:block
fo:basic-link 
external-destination=http://www.yahoo.com;go to 
yahoo2/fo:basic-link
  /fo:block
/fo:flow
  /fo:page-sequence

  fo:page-sequence master-reference=only
fo:flow flow-name=xsl-region-body
  fo:block font-size=20pt font-family=serif
line-height=30pt
Hydrogen
  /fo:block
  fo:block font-size=20pt font-family=serif
line-height=30pt text-align=center 
color=green
Helium
  /fo:block
  fo:block
fo:basic-link 
external-destination=http://www.yahoo.com;go to 
yahoo/fo:basic-link
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root

--
===
Meriahkan Tahun Baru Imlek dengan mengirimkan Kartu Elektronik PlasaCom kepada kerabat dan teman Anda
KSI PlasaCom - Reuni Alumni STTTelkom http://www.plasa.com/belajar/reuni.html 
===

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