Re: Merging XML and FO files

2003-11-20 Thread Manjush G. Menon

Hi,

Iam using FOP in a similar scenario. As  Charles said, its XSLT that you need

Please try out the XML/XSL:FO attached.

--
Thanks
Manjush

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 11:59 PM
Subject: RE: Merging XML and FO files


 The instructions at this link
(http://xml.apache.org/fop/running.html#standalone-start) seem pretty clear to
me. I think the piece you are missing is an XSLT stylesheet to convert your XML
to XSL-FO.
 --
 Charles Knell
 [EMAIL PROTECTED] - email



 -Original Message-
 From: Manuel Reyes [EMAIL PROTECTED]
 Sent: Wed, 19 Nov 2003 17:51:51 -
 To:   [EMAIL PROTECTED]
 Subject:  Merging XML and FO files

 Hello all,

 I am currently working on an application that will pull data values from a
database and place these into an XML file.  The resulting XML file is then to be
merged with an FO template file and the result would be used to generate a PDF

 The reason for the mail, is that I wanted to get opinions on the best way to
go about doing this.  In my minds eye I have the following idea :

 XML File (containing data values) :
 merge_test_report
 field_values
 value id=@value1abc

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



Page header/footer in FOP

2003-11-20 Thread Manjush G. Menon
is there any way to include header/footer line to each PDF page that
gets generated using FOP?

The Page body will vary, causing pages to increase and I need to
put the same header/footer line in all pages. Is there any possbile
way to do this?


--
Thanks
Manjush



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



Fw: Merging XML and FO files

2003-11-20 Thread Manjush G. Menon
Iam sorry the about  the missed attachment.
--

Manjush G Menon/\ASCII Ribbon Campaign
[EMAIL PROTECTED] \ /Respect for open standards
FSC Consultant X No HTML/RTF in email
FSC SGB Governing body member   / \No M$ Word docs in email
- Original Message -
From: Manjush G. Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:18 AM
Subject: Re: Merging XML and FO files



 Hi,

 Iam using FOP in a similar scenario. As  Charles said, its XSLT that you need

 Please try out the XML/XSL:FO attached.

 --
 Thanks
 Manjush

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 11:59 PM
 Subject: RE: Merging XML and FO files


  The instructions at this link
 (http://xml.apache.org/fop/running.html#standalone-start) seem pretty clear to
 me. I think the piece you are missing is an XSLT stylesheet to convert your
XML
 to XSL-FO.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 
 
 
  -Original Message-
  From: Manuel Reyes [EMAIL PROTECTED]
  Sent: Wed, 19 Nov 2003 17:51:51 -
  To:   [EMAIL PROTECTED]
  Subject:  Merging XML and FO files
 
  Hello all,
 
  I am currently working on an application that will pull data values from a
 database and place these into an XML file.  The resulting XML file is then to
be
 merged with an FO template file and the result would be used to generate a PDF
 
  The reason for the mail, is that I wanted to get opinions on the best way to
 go about doing this.  In my minds eye I have the following idea :
 
  XML File (containing data values) :
  merge_test_report
  field_values
  value id=@value1abc

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





begin 666 XMLXSLFO.zip
M4$L#!!0(`*]5B^A-?V:*P(``!D%```34VEN9VQE55X=%-T6QE
M+GAS;+U4P8[3,! ]%XE_L'P2?-LA6D:KKBLB=N+!)7-QDG%DX[,FFYL9
[EMAIL PROTECTED]S+PW'F=W=VP-P3GMT*GB5KSJ K;:6[NN!?'^[%1WZW
M?_UJ=_1FZ_%DP#`N,S(.*,:G=\2I -8K]-TW$D_%]8EV=9GFI]^^?$X?
MG.R\LJZ=$Y3](_^J!))S[$T0P7@1\,BMZ!TD?P!56D[1)G!VP'YU@(VM
MDX=^)4OVVH4A(L*2B.=Q!CJ+[EMAIL PROTECTED] \_12$J'MC41@)*-LFX`$9R8
MX=!\M5-VZZS%?[(4$F.FD2?2+5KI0V$/.,GA#UFAJ!Z4-$X5-S$ZV4/!S
M_-,M9Y'[EMAIL PROTECTED];G'S(EORW91UTA:;_)DDTP%:Z6G;4]C60`'BVA;(BXP
M`RK42S8+S$U-([EMAIL PROTECTED]'JFD5*DZI3RVJ6_M7'VG[XT@'DZ,/#CX$V$F;K
M=/[EMAIL PROTECTED]/S6C%7LR,)GA$=HUC(FIBK\SD'(PMOS-E.Q1_Z2,;-W3SOE
MEBDHHX%7P?[$4TNB:=L:C=$0:XTD,%)+:XSL/[EMAIL PROTECTED]VET
M1_*A$NA 8AN7CO;[EMAIL PROTECTED] ,(JY@'`R71HOQIK.?91E[]E='3!$
M^BQ9?7A3;99OYOM]=.XII21+!_6K\=P572KJ_++C)]Q%,[\LE;/-B=
MTW2ZI^%?EBXO]WXU(Y??Y%^`5!+`P04 +870O^D^;M74```N
M$ ```%-I;7!L951E'1834PN=FVSL:_(S5$H2RTJSLS/LU4RU#-04DC-2\Y/
MRQ+MU4*#7'3M5RM^/ELLE)+2E)+=(M2TMR$DL204*\7)QVB3EIU1F#Y@
M060`$1*'RK':5.0F)ZJFY:?#Y0'\3E!? 4(7R$]/[58(2.U*!6L!56EC3ZZ
MI0!02P$% `4 O57(OH37]FBL```9!0``$P`!` `MH$`
M4VEN9VQE55X=%-T6QE+GAS;%!+`0(4`!0(`(MA=_Z3YNU=0``
M`*X0``$`( [EMAIL PROTECTED]``!3:6UP;5497AT6$U,[EMAIL PROTECTED]
0`(`?P```/\
`
end


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



Re: Page header/footer in FOP

2003-11-20 Thread Chris Bowditch
From: Manjush G. Menon [EMAIL PROTECTED]
is there any way to include header/footer line to each PDF page that
gets generated using FOP?
The Page body will vary, causing pages to increase and I need to
put the same header/footer line in all pages. Is there any possbile
way to do this?
This is fairly easy to achieve. Modify all your page-masters so they have a 
before and after region, e.g.

fo:simple-page-master name=example page-width=210mm page-height=297mm 
margin-left=5mm margin-top=5mm margin-right=5mm margin-bottom=5mm
fo:region-body margin-top=20mm margin-bottom=20mm/
fo:region-before extent=20mm/
fo:region-after extent=20mm/
/fo:simple-page-master

Then in you page-sequence define two static regions with the contents of 
header and footer in each, e.g.

fo:page-sequence master-reference=example
fo:static-content flow-name=xsl-region-before
fo:blockThe header/fo:block
/fo:static-content
fo:static-content flow-name=xsl-region-after
fo:blockThe footer/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
!-- your body content as usual --
/fo:flow
/fo:page-sequence
Chris
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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


Page number!! Re: Page header/footer in FOP

2003-11-20 Thread Felice Angemi
Hi All,
**(Maybe this is an old question, don't be angry with 
me)*
I need to know if i can put in each page (in pdf generated by FOP) the 
number of the current page
wrt the total page of the document!
In poor words i need to put a string with the following format in each page:
Page 2 of N

So the question is, can i know the total page generated before the end of 
the FOP job???

Thanks you all
Felix
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


Re: Page number!! Re: Page header/footer in FOP

2003-11-20 Thread Chris Bowditch
From: Felice Angemi [EMAIL PROTECTED]
I need to know if i can put in each page (in pdf generated by FOP) the 
number of the current page
wrt the total page of the document!
In poor words i need to put a string with the following format in each 
page:
Page 2 of N

This is straight forward. See
http://xml.apache.org/fop/fo.html#fo-total-pages
Chris
_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

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


XSL-FO Problem (Line not coming as proper location)

2003-11-20 Thread shuva sinha




Hi,

I am facing some problems at the time of writing xsl-fo. In pdf output below date (which is given below in xml document) line will come. I have given fo:leader in xsl-fo for the line.But both the date  line are not coming what is supposed to be as per xml document. 

Any suggestion or help will be apprciated.

Thanks  Regards,

Saurabh


Here the text.xml file

pdf-doc
paraThis is normal text within paragraph. This is normal text within paragraph. date12.11.03/dateThis is normal text within paragraph. This is normal text within paragraph. /para
/pdf-doc
Here the text.xsl file
---


?xml version="1.0" encoding="UTF-8"?
xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xsl:template match="/"
fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
fo:layout-master-set
fo:simple-page-master master-name="main" margin-top="25pt" margin-bottom="25pt" margin-left="75pt" margin-right="85pt"
fo:region-body margin-bottom="75pt"/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference="main"
fo:flow flow-name="xsl-region-body"
xsl:apply-templates/
/fo:flow
/fo:page-sequence
/fo:root
/xsl:template

xsl:template match="para"
fo:block font-family="sans-serif" font-size="7pt" line-height="8pt" space-before.optimum="8pt" space-after.optimum="8pt" start-indent="-15pt"
xsl:apply-templates/
/fo:block
/xsl:template


xsl:template match="date"
fo:table
fo:table-column column-width="30pt"/
fo:table-body
!-- 1st row --
fo:table-rows
fo:table-cell
fo:block font-size="7pt" font-family="Helvetica, Arial, sans" space-before.optimum="-2pt" font-weight="bold"
xsl:value-of select="."/
/fo:block
/fo:table-cell
/fo:table-row
!-- 2nd row --
fo:table-row
fo:table-cell
fo:block space-before.optimum="-8pt"
fo:leader leader-length="100%" leader-pattern="rule" rule-thickness="0.5px"/
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/xsl:template
/xsl:stylesheet
current text.pdf is attached for your reference.





Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.
Download now.

text.pdf
Description: text.pdf
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Merging XML and FO files

2003-11-20 Thread Manuel Reyes
That's great, thanks a lot for those files they more or less cover
everything I needed to know.

One small thing though, due to the nature of the documents I am creating
the ability to create intelligent tables is essential.  As an example
I have a table called foos in which all my foos are listed, the data
being held in a database.  Now as the total of foos I have increases (or
decreases), I will need to regenerate the table (PDF) and this table
needs to look professional.  So I need something that will allow me to
create dynamic tables that will only contain the amount of rows I need
to add the details of the foos in the database.

I had a look around on http://www-106.ibm.com/developerworks/xml/ I
found some information about basic merging, but nothing on dynamic
merges. 

-Original Message-
From: Manjush G. Menon [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 06:45
To: [EMAIL PROTECTED]
Subject: Fw: Merging XML and FO files

Iam sorry the about  the missed attachment.
--

Manjush G Menon/\ASCII Ribbon Campaign
[EMAIL PROTECTED] \ /Respect for open standards
FSC Consultant X No HTML/RTF in
email
FSC SGB Governing body member   / \No M$ Word docs in email
- Original Message -
From: Manjush G. Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:18 AM
Subject: Re: Merging XML and FO files



 Hi,

 Iam using FOP in a similar scenario. As  Charles said, its XSLT that
you need

 Please try out the XML/XSL:FO attached.

 --
 Thanks
 Manjush

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 11:59 PM
 Subject: RE: Merging XML and FO files


  The instructions at this link
 (http://xml.apache.org/fop/running.html#standalone-start) seem pretty
clear to
 me. I think the piece you are missing is an XSLT stylesheet to convert
your
XML
 to XSL-FO.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 
 
 
  -Original Message-
  From: Manuel Reyes [EMAIL PROTECTED]
  Sent: Wed, 19 Nov 2003 17:51:51 -
  To:   [EMAIL PROTECTED]
  Subject:  Merging XML and FO files
 
  Hello all,
 
  I am currently working on an application that will pull data values
from a
 database and place these into an XML file.  The resulting XML file is
then to
be
 merged with an FO template file and the result would be used to
generate a PDF
 
  The reason for the mail, is that I wanted to get opinions on the
best way to
 go about doing this.  In my minds eye I have the following idea :
 
  XML File (containing data values) :
  merge_test_report
  field_values
  value id=@value1abc

 -
 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: Merging XML and FO files

2003-11-20 Thread Manuel Reyes
For anybody who may be searching this list in trying to find the answers
to the questions I am asking, this is how it is done :

XML File :
repeater
tubby
nameDipsy/name 
colourGreen/colour 
/tubby
tubby
nameLaalaa/name 
colourRed/colour 
/tubby
tubby
namePo/name 
colourPurple/colour 
/tubby
/repeater

XSL File :
xsl:for-each select=repeater/tubby
fo:block
Name : xsl:value-of select=name/ / Colour : xsl:value-of
select=colour/ 
/fo:block 
/xsl:for-each

This will generate the following pdf :
Name : Dipsy / Colour : Green
Name : Laalaa / Colour : Red
Name : Po / Colour : Purple

Once again thanks to all those who replied

-Original Message-
From: Manuel Reyes 
Sent: 20 November 2003 11:36
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files

That's great, thanks a lot for those files they more or less cover
everything I needed to know.

One small thing though, due to the nature of the documents I am creating
the ability to create intelligent tables is essential.  As an example
I have a table called foos in which all my foos are listed, the data
being held in a database.  Now as the total of foos I have increases (or
decreases), I will need to regenerate the table (PDF) and this table
needs to look professional.  So I need something that will allow me to
create dynamic tables that will only contain the amount of rows I need
to add the details of the foos in the database.

I had a look around on http://www-106.ibm.com/developerworks/xml/ I
found some information about basic merging, but nothing on dynamic
merges. 

-Original Message-
From: Manjush G. Menon [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 06:45
To: [EMAIL PROTECTED]
Subject: Fw: Merging XML and FO files

Iam sorry the about  the missed attachment.
--

Manjush G Menon/\ASCII Ribbon Campaign
[EMAIL PROTECTED] \ /Respect for open standards
FSC Consultant X No HTML/RTF in
email
FSC SGB Governing body member   / \No M$ Word docs in email
- Original Message -
From: Manjush G. Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:18 AM
Subject: Re: Merging XML and FO files



 Hi,

 Iam using FOP in a similar scenario. As  Charles said, its XSLT that
you need

 Please try out the XML/XSL:FO attached.

 --
 Thanks
 Manjush

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 11:59 PM
 Subject: RE: Merging XML and FO files


  The instructions at this link
 (http://xml.apache.org/fop/running.html#standalone-start) seem pretty
clear to
 me. I think the piece you are missing is an XSLT stylesheet to convert
your
XML
 to XSL-FO.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 
 
 
  -Original Message-
  From: Manuel Reyes [EMAIL PROTECTED]
  Sent: Wed, 19 Nov 2003 17:51:51 -
  To:   [EMAIL PROTECTED]
  Subject:  Merging XML and FO files
 
  Hello all,
 
  I am currently working on an application that will pull data values
from a
 database and place these into an XML file.  The resulting XML file is
then to
be
 merged with an FO template file and the result would be used to
generate a PDF
 
  The reason for the mail, is that I wanted to get opinions on the
best way to
 go about doing this.  In my minds eye I have the following idea :
 
  XML File (containing data values) :
  merge_test_report
  field_values
  value id=@value1abc

 -
 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: Merging XML and FO files

2003-11-20 Thread Chris Adams
You could have also done it like

xsl:template match=repeater
xsl:apply-templates select=tubby/
/xsl:template

xsl:template match=tubby
fo:block
Name : xsl:value-of select=name/ / Colour :
xsl:value-of select=colour/ 
/fo:block
/xsl:template

-Original Message-
From: Manuel Reyes [mailto:[EMAIL PROTECTED] 
Sent: 20 November, 2003 12:08
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files


For anybody who may be searching this list in trying to find the answers
to the questions I am asking, this is how it is done :

XML File :
repeater
tubby
nameDipsy/name 
colourGreen/colour 
/tubby
tubby
nameLaalaa/name 
colourRed/colour 
/tubby
tubby
namePo/name 
colourPurple/colour 
/tubby
/repeater

XSL File :
xsl:for-each select=repeater/tubby
fo:block
Name : xsl:value-of select=name/ / Colour : xsl:value-of
select=colour/ 
/fo:block 
/xsl:for-each

This will generate the following pdf :
Name : Dipsy / Colour : Green
Name : Laalaa / Colour : Red
Name : Po / Colour : Purple

Once again thanks to all those who replied

-Original Message-
From: Manuel Reyes 
Sent: 20 November 2003 11:36
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files

That's great, thanks a lot for those files they more or less cover
everything I needed to know.

One small thing though, due to the nature of the documents I am creating
the ability to create intelligent tables is essential.  As an example
I have a table called foos in which all my foos are listed, the data
being held in a database.  Now as the total of foos I have increases (or
decreases), I will need to regenerate the table (PDF) and this table
needs to look professional.  So I need something that will allow me to
create dynamic tables that will only contain the amount of rows I need
to add the details of the foos in the database.

I had a look around on http://www-106.ibm.com/developerworks/xml/ I
found some information about basic merging, but nothing on dynamic
merges. 

-Original Message-
From: Manjush G. Menon [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 06:45
To: [EMAIL PROTECTED]
Subject: Fw: Merging XML and FO files

Iam sorry the about  the missed attachment.
--

Manjush G Menon/\ASCII Ribbon Campaign
[EMAIL PROTECTED] \ /Respect for open standards
FSC Consultant X No HTML/RTF in
email
FSC SGB Governing body member   / \No M$ Word docs in email
- Original Message -
From: Manjush G. Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:18 AM
Subject: Re: Merging XML and FO files



 Hi,

 Iam using FOP in a similar scenario. As  Charles said, its XSLT that
you need

 Please try out the XML/XSL:FO attached.

 --
 Thanks
 Manjush

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 11:59 PM
 Subject: RE: Merging XML and FO files


  The instructions at this link
 (http://xml.apache.org/fop/running.html#standalone-start) seem pretty
clear to
 me. I think the piece you are missing is an XSLT stylesheet to convert
your
XML
 to XSL-FO.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 
 
 
  -Original Message-
  From: Manuel Reyes [EMAIL PROTECTED]
  Sent: Wed, 19 Nov 2003 17:51:51 -
  To:   [EMAIL PROTECTED]
  Subject:  Merging XML and FO files
 
  Hello all,
 
  I am currently working on an application that will pull data values
from a
 database and place these into an XML file.  The resulting XML file is
then to
be
 merged with an FO template file and the result would be used to
generate a PDF
 
  The reason for the mail, is that I wanted to get opinions on the
best way to
 go about doing this.  In my minds eye I have the following idea :
 
  XML File (containing data values) :
  merge_test_report
  field_values
  value id=@value1abc

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



--- -
Visit our Internet site at http://www.reuters.com

Get closer to the financial markets with Reuters Messaging - for more
information and to register, visit http://www.reuters.com/messaging

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.


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

RE: Merging XML and FO files

2003-11-20 Thread Manuel Reyes
That's an interesting way of doing this, and will probably come in handy
for the documents I need to produce.  Thanks a lot.

To get the code to work I needed to change this slightly:

xsl:template match=repeater
xsl:apply-templates select=tubby/
/xsl:template

xsl:template match=tubby
fo:block
Name : xsl:value-of select=repeater/tubby/name/ / Colour :
xsl:value-of select=repeater/tubby/colour/ 
/fo:block
/xsl:template

What I did find is that this only prints the first tubby value found
inside data/repeater.  Is there a way to get all the values (I did
notice that I could use for-each inside the xsl:template to do this)

Regards
Manuel

-Original Message-
From: Chris Adams [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 12:11
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files

You could have also done it like

xsl:template match=repeater
xsl:apply-templates select=tubby/
/xsl:template

xsl:template match=tubby
fo:block
Name : xsl:value-of select=name/ / Colour :
xsl:value-of select=colour/ 
/fo:block
/xsl:template

-Original Message-
From: Manuel Reyes [mailto:[EMAIL PROTECTED] 
Sent: 20 November, 2003 12:08
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files


For anybody who may be searching this list in trying to find the answers
to the questions I am asking, this is how it is done :

XML File :
repeater
tubby
nameDipsy/name 
colourGreen/colour 
/tubby
tubby
nameLaalaa/name 
colourRed/colour 
/tubby
tubby
namePo/name 
colourPurple/colour 
/tubby
/repeater

XSL File :
xsl:for-each select=repeater/tubby
fo:block
Name : xsl:value-of select=name/ / Colour : xsl:value-of
select=colour/ 
/fo:block 
/xsl:for-each

This will generate the following pdf :
Name : Dipsy / Colour : Green
Name : Laalaa / Colour : Red
Name : Po / Colour : Purple

Once again thanks to all those who replied

-Original Message-
From: Manuel Reyes 
Sent: 20 November 2003 11:36
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files

That's great, thanks a lot for those files they more or less cover
everything I needed to know.

One small thing though, due to the nature of the documents I am creating
the ability to create intelligent tables is essential.  As an example
I have a table called foos in which all my foos are listed, the data
being held in a database.  Now as the total of foos I have increases (or
decreases), I will need to regenerate the table (PDF) and this table
needs to look professional.  So I need something that will allow me to
create dynamic tables that will only contain the amount of rows I need
to add the details of the foos in the database.

I had a look around on http://www-106.ibm.com/developerworks/xml/ I
found some information about basic merging, but nothing on dynamic
merges. 

-Original Message-
From: Manjush G. Menon [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 06:45
To: [EMAIL PROTECTED]
Subject: Fw: Merging XML and FO files

Iam sorry the about  the missed attachment.
--

Manjush G Menon/\ASCII Ribbon Campaign
[EMAIL PROTECTED] \ /Respect for open standards
FSC Consultant X No HTML/RTF in
email
FSC SGB Governing body member   / \No M$ Word docs in email
- Original Message -
From: Manjush G. Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:18 AM
Subject: Re: Merging XML and FO files



 Hi,

 Iam using FOP in a similar scenario. As  Charles said, its XSLT that
you need

 Please try out the XML/XSL:FO attached.

 --
 Thanks
 Manjush

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 11:59 PM
 Subject: RE: Merging XML and FO files


  The instructions at this link
 (http://xml.apache.org/fop/running.html#standalone-start) seem pretty
clear to
 me. I think the piece you are missing is an XSLT stylesheet to convert
your
XML
 to XSL-FO.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 
 
 
  -Original Message-
  From: Manuel Reyes [EMAIL PROTECTED]
  Sent: Wed, 19 Nov 2003 17:51:51 -
  To:   [EMAIL PROTECTED]
  Subject:  Merging XML and FO files
 
  Hello all,
 
  I am currently working on an application that will pull data values
from a
 database and place these into an XML file.  The resulting XML file is
then to
be
 merged with an FO template file and the result would be used to
generate a PDF
 
  The reason for the mail, is that I wanted to get opinions on the
best way to
 go about doing this.  In my minds eye I have the following idea :
 
  XML File (containing data values) :
  merge_test_report
  field_values
  value id=@value1abc

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







RE: Merging XML and FO files

2003-11-20 Thread Chris Adams
No it should work as written.

Because when the xslt processor is the template that matches on tubby,
its context is its tubby node.

So you just need to select the value of the name child  xsl: value-of
select=name/


-Original Message-
From: Manuel Reyes [mailto:[EMAIL PROTECTED] 
Sent: 20 November, 2003 13:35
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files


That's an interesting way of doing this, and will probably come in handy
for the documents I need to produce.  Thanks a lot.

To get the code to work I needed to change this slightly:

xsl:template match=repeater
xsl:apply-templates select=tubby/
/xsl:template

xsl:template match=tubby
fo:block
Name : xsl:value-of select=repeater/tubby/name/ / Colour :
xsl:value-of select=repeater/tubby/colour/ 
/fo:block
/xsl:template

What I did find is that this only prints the first tubby value found
inside data/repeater.  Is there a way to get all the values (I did
notice that I could use for-each inside the xsl:template to do this)

Regards
Manuel

-Original Message-
From: Chris Adams [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 12:11
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files

You could have also done it like

xsl:template match=repeater
xsl:apply-templates select=tubby/
/xsl:template

xsl:template match=tubby
fo:block
Name : xsl:value-of select=name/ / Colour :
xsl:value-of select=colour/ 
/fo:block
/xsl:template

-Original Message-
From: Manuel Reyes [mailto:[EMAIL PROTECTED] 
Sent: 20 November, 2003 12:08
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files


For anybody who may be searching this list in trying to find the answers
to the questions I am asking, this is how it is done :

XML File :
repeater
tubby
nameDipsy/name 
colourGreen/colour 
/tubby
tubby
nameLaalaa/name 
colourRed/colour 
/tubby
tubby
namePo/name 
colourPurple/colour 
/tubby
/repeater

XSL File :
xsl:for-each select=repeater/tubby
fo:block
Name : xsl:value-of select=name/ / Colour : xsl:value-of
select=colour/ 
/fo:block 
/xsl:for-each

This will generate the following pdf :
Name : Dipsy / Colour : Green
Name : Laalaa / Colour : Red
Name : Po / Colour : Purple

Once again thanks to all those who replied

-Original Message-
From: Manuel Reyes 
Sent: 20 November 2003 11:36
To: [EMAIL PROTECTED]
Subject: RE: Merging XML and FO files

That's great, thanks a lot for those files they more or less cover
everything I needed to know.

One small thing though, due to the nature of the documents I am creating
the ability to create intelligent tables is essential.  As an example
I have a table called foos in which all my foos are listed, the data
being held in a database.  Now as the total of foos I have increases (or
decreases), I will need to regenerate the table (PDF) and this table
needs to look professional.  So I need something that will allow me to
create dynamic tables that will only contain the amount of rows I need
to add the details of the foos in the database.

I had a look around on http://www-106.ibm.com/developerworks/xml/ I
found some information about basic merging, but nothing on dynamic
merges. 

-Original Message-
From: Manjush G. Menon [mailto:[EMAIL PROTECTED] 
Sent: 20 November 2003 06:45
To: [EMAIL PROTECTED]
Subject: Fw: Merging XML and FO files

Iam sorry the about  the missed attachment.
--

Manjush G Menon/\ASCII Ribbon Campaign
[EMAIL PROTECTED] \ /Respect for open standards
FSC Consultant X No HTML/RTF in
email
FSC SGB Governing body member   / \No M$ Word docs in email
- Original Message -
From: Manjush G. Menon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 9:18 AM
Subject: Re: Merging XML and FO files



 Hi,

 Iam using FOP in a similar scenario. As  Charles said, its XSLT that
you need

 Please try out the XML/XSL:FO attached.

 --
 Thanks
 Manjush

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 11:59 PM
 Subject: RE: Merging XML and FO files


  The instructions at this link
 (http://xml.apache.org/fop/running.html#standalone-start) seem pretty
clear to
 me. I think the piece you are missing is an XSLT stylesheet to convert
your
XML
 to XSL-FO.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 
 
 
  -Original Message-
  From: Manuel Reyes [EMAIL PROTECTED]
  Sent: Wed, 19 Nov 2003 17:51:51 -
  To:   [EMAIL PROTECTED]
  Subject:  Merging XML and FO files
 
  Hello all,
 
  I am currently working on an application that will pull data values
from a
 database and place these into an XML file.  The resulting XML file is
then to
be
 merged with an FO template file and the result would be used to
generate a PDF
 
  The reason for the mail, is that I wanted to get opinions on the
best way to
 go about 

page-height=indefinite in PDF rendering to be continued

2003-11-20 Thread listes
previous messages :
From: listes [EMAIL PROTECTED]
First sorry for my poor english.
It seems that page-height=indefinite is not yet implemented in fop 
0.20.5 with PDF Rendering
Is there another solution to make page-height dynamic ?
I have an idea, but i don't know if it will be work.
I have created a xsl variable like this : xsl:variable 
name=page.height5cm/xsl:variable
and my simple-page-master tag is : fo:simple-page-master 
master-name=default-page page-width=5.57cm 
page-height={$page.height}
You can certainly set the page-height at XSLT stage.
Is possible to get the y coordinate (in cm or in) of the last block of 
my document ?
Not until after the document has been rendered, which I assume is no 
good to you? Why do you think you need to know this?

Chris

First, thanks for your anwser Chris, but it seems that i was not clear 
in my first message
I need to create with FOP a document which have a static width (5 cm for 
example) but with a dynamic height (dependant of the content lenght in 
the document).
how generate a document with a adaptative height of the contents of the 
document ?
I understood that i can set the page-height at XSLT stage, but at this 
stage it is impossible to know the length (in cm) of the PDF output.
My first idea was to set the page-height during document is rendered, 
but it seems impossible.
My last idea is to make one first document with an arbitrary page-height 
(rather important), check the real size (y position in cm of the last 
block of the document), and
make a new output with the real size in page-height (set during the 
second XSLT stage)
It is certainly longer but it allows me to wait for the new version of 
FOP which support the indefinite parameter in page-height during PDF 
rendering.

thanks again for anwsers ;-)
regards,  guillaume.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ERROR: Renderer has not been set!

2003-11-20 Thread Dave Chan



When trying to convert an xml and xsl into a pdf by 
running the command:

fop.sh -xsl filename.xsl 
-xml filename.xml -pdf filename.pdf
on a solaris 
platform

I receive the following 
output. This has worked on other boxes, I am not sure why it is not 
working on this one:
FOP 0.20.1
using SAX parser org.apache.xerces.parsers.SAXParser
ERROR: Renderer has not been 
set!
Dave N Chan 



The information contained in this e-mail is intended only for the individual or entity
to whom it is addressed.  Its contents (including any attachments) are confidential and
may contain privileged information.  If you are not an intended recipient you must not
use, disclose, disseminate, copy or print its contents.  If you receive this e-mail in
error, please notify the sender by reply e-mail and delete and destroy the message.


Re: ERROR: Renderer has not been set!

2003-11-20 Thread J.Pietschmann
Dave Chan wrote:
FOP 0.20.1
...
ERROR: Renderer has not been set!
This might be an old bug. Get the latest release (0.20.5)
and check whether the problem persists.
J.Pietschmann

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