RE: Article in JAVAWORLD.

2005-03-29 Thread Glen Mazza
--- Andreas L. Delmelle [EMAIL PROTECTED]
wrote:
  -Original Message-
  From: Glen Mazza [mailto:[EMAIL PROTECTED]
  
 
  FOP can really do Japanese?  I didn't know that. 
  Anyway--well done!  
 
 I second that. I don't remember personally helping
 Manoj out, but anyway:
 
 Big THANKS for the publicity!
 

It looks like we'll be having even more publicity
soon[1]...congratulations Jeremias!

[1] http://apachecon.com/2005/EU/html/speakers.html

Glen


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



Re: Current state of Apache FOP?

2005-03-29 Thread Glen Mazza
You may want to take a look at open-source
JasperReports -- your stylesheets will not be XSL but
the system will still be Java/XML-based.  Later, as
FOP matures, you can evaluate going back to it,
possibly just by changing your stylesheets.  I have
not worked with this product, however, so am unsure of
its quality.

Glen

--- Andreas Jung [EMAIL PROTECTED] wrote:
 
 If we should decide to use to FOP for our project
 (we ship content (XHTML)
 on CD/DVD on are looking for a solution to provide
 on-the-fly PDF/RTF 
 generation
 cross-platform on Windoze and Linux) then I am sure
 we might support the 
 project
 with some resources (especially because FOP is
 open-source and has a 
 liberal license).
 
 Andreas
 

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



Re: Article in JAVAWORLD.

2005-03-28 Thread Glen Mazza
FOP wa honto ni Nihongo ga dekimasu ka?  Sono jijitsu
o shiranakatta desu.  Tonikaku, yoku dekimashita! 
Boku wa Manoj-san no kiji o oishii no rinku[1] ni
tashimashita--arigatou!

FOP can really do Japanese?  I didn't know that. 
Anyway--well done!  I added your article to my
del.icio.us links[1]--thanks!

Glen

[1] http://del.icio.us/gmazza/xsl


--- [EMAIL PROTECTED] wrote:

-
I had written an article about publishing PDF docs on
client side using FOP for JAVAWORLD magazine. The
editors have approved it and has been published in the
March 28 edition of Javaworld.
 
Check the article at http://www.javaworld.com. Its
right on the home page. The direct article link is
http://www.javaworld.com/javaworld/jw-03-2005/jw-0328-xmlprinting.html
 
I have acknowledged the help received from this forum
in the CONCLUSION section just above the ABOUT THE
AUTHOR section on page 2.
 
Thanks again to all in this group. Without your inputs
this wouldn't have been possible..
 
 
Manoj Nair
 
-To
unsubscribe, e-mail:
[EMAIL PROTECTED]
additional commands, e-mail: [EMAIL PROTECTED]

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



Fw: [appfuse-user] ... POJO to PDF Tutorial

2005-03-25 Thread Glen Mazza
FYI...frequent AppFuse contributor Ben Gill has written a FOP--AppFuse
tutorial [1].  It's nice to see my favorite and second favorite open source
projects described together...  :-)

Glen

- Original Message - 
From: Matt Raible [EMAIL PROTECTED]
To: AppFuse [EMAIL PROTECTED]
Sent: Monday, March 21, 2005 7:55 AM
Subject: [appfuse-user] Help with MySQL Access Denied and POJO to PDF
Tutorial


 FYI...

 Ben Gill has been kind enough to put a couple of good howtos together.
  The first shows how to modify MySQL when you're getting Access Denied
 errors.

 http://raibledesigns.com/wiki/Wiki.jsp?page=AssistanceWithAntSetup

 This article is linked to from the FAQ:

http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSupport#ref-AppFuseSupport-5

 The second article shows how to generate a PDF from a POJO using FOP.

[1]
 http://raibledesigns.com/wiki/Wiki.jsp?page=POJOToPDF

 This article is linked to from the Articles:
 http://raibledesigns.com/wiki/Wiki.jsp?page=Articles

 Thanks Ben!

 Matt

 -
 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: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Glen Mazza
Remove the template below from your XSLT, and that
should work.

  xsl:template match=meta
fo:block color=green
xsl:apply-templates/
/fo:block
  /xsl:template

Glen


--- Sascha Teifke [EMAIL PROTECTED] wrote:
 I am using fop with apache lenya to create pdf
 files.
 I'm using a simple xsl-file for transforming the
 created
 lenya xml files into pdf files:
 
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
  
 !-- generate PDF page structure --
 xsl:template match=/
 fo:root
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master
 master-name=page
   page-height=29.7cm
   page-width=21cm
   margin-top=1cm
   margin-bottom=2cm
   margin-left=2.5cm
   margin-right=2.5cm
 
 fo:region-before extent=3cm/
 fo:region-body
 margin-top=3cm/
 fo:region-after
 extent=1.5cm/
 /fo:simple-page-master
 
 fo:page-sequence-master
 master-name=all

 fo:repeatable-page-master-alternatives

 fo:conditional-page-master-reference
master-reference=page
 page-position=first/

 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 /fo:layout-master-set
 
 fo:page-sequence
 master-reference=all
 fo:flow
 flow-name=xsl-region-body

 fo:blockxsl:apply-templates//fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root
 /xsl:template
 
 !-- process paragraphs --
 xsl:template match=p
 fo:blockxsl:apply-templates//fo:block
 /xsl:template
 
 xsl:template match=meta
 fo:block color=green
 xsl:apply-templates/
 /fo:block
 /xsl:template
 
 !-- convert sections to XSL-FO headings --
 xsl:template match=s1
 fo:block font-size=24pt color=red
 font-weight=bold
 xsl:apply-templates select=@title/
 /fo:block
 xsl:apply-templates/
 /xsl:template
 
 /xsl:stylesheet
 
 But ... how can I make the lenya:meta tags in the
 xml file not to be 
 shown in the
 created pdf file???
 
 Thank you in advance!
 
 Sascha
 

-
 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: fop with lenya: how can I suppress the lenya:meta in a created pdf

2005-03-16 Thread Glen Mazza
I'm not sure--but you have an XSLT question, not a FOP
one--and I think the Mulberry XSLT mailing list
(Google for it) would be best for you.

Glen

--- Sascha Teifke [EMAIL PROTECTED] wrote:

 Hi Glen,
 
 thank you for the quick response.
 
 I removed it. But it still doesn't work.
 
 Her is an example xml file created by lenya.
 
 ?xml version=1.0 encoding=UTF-8?html 
 xmlns=http://www.w3.org/1999/xhtml; 
 xmlns:dc=http://purl.org/dc/elements/1.1/; 
 xmlns:dcterms=http://purl.org/dc/terms/; 

xmlns:lenya=http://apache.org/cocoon/lenya/page-envelope/1.0;
 
 xmlns:xhtml=http://www.w3.org/1999/xhtml; 
 dc:dummy=FIXME:keepNamespace
 dcterms:dummy=FIXME:keepNamespace 
 lenya:dummy=FIXME:keepNamespace
 xhtml:dummy=FIXME:keepNamespace
 lenya:meta
 dc:titledctitle/dc:title
 dc:creatorSascha Teifke/dc:creator
 dc:subjectdcsubject/dc:subject
 dc:descriptionAbstract that can be used on
 an overview 
 page/dc:description
 dc:publisher/
 dc:contributor/
 dc:dateSun Mar 06 16:40:36 CET
 2005/dc:date
 dc:type/
 dc:format/
 dc:identifier/
 dc:source/
 dc:languagede/dc:language
 dc:relation/
 dc:coverage/
 dc:rightsdcrights/dc:rights
 /lenya:meta
   head
 titleDefault Publication/title
   /head
   body
 h1Grundlagen/h1
 pIn dieser Rubrik erfahren Sie einiges über
 die a 

href=/mediengestaltung/authoring/basics/history_de.html
 
 title=Historie /ades PDF-Formates, sowie a 

href=/mediengestaltung/authoring/basics/application_de.html
 
 title=Einsatzgebiete/a und die a 

href=/mediengestaltung/authoring/basics/software_de.html
 
 title=Software/a, die man zur Erstellung
 benötigt./p/body
 /html
 
 Glen Mazza wrote:
 
 Remove the template below from your XSLT, and that
 should work.
 
   xsl:template match=meta
 fo:block color=green
 xsl:apply-templates/
 /fo:block
   /xsl:template
 
 Glen
 
 
 --- Sascha Teifke [EMAIL PROTECTED] wrote:
   
 
 I am using fop with apache lenya to create pdf
 files.
 I'm using a simple xsl-file for transforming the
 created
 lenya xml files into pdf files:
 
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet

 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 version=1.0
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
  
 !-- generate PDF page structure --
 xsl:template match=/
 fo:root
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
 fo:simple-page-master
 master-name=page
   page-height=29.7cm
   page-width=21cm
   margin-top=1cm
   margin-bottom=2cm
   margin-left=2.5cm
   margin-right=2.5cm
 
 fo:region-before
 extent=3cm/
 fo:region-body
 margin-top=3cm/
 fo:region-after
 extent=1.5cm/
 /fo:simple-page-master
 
 fo:page-sequence-master
 master-name=all

 fo:repeatable-page-master-alternatives

 fo:conditional-page-master-reference
master-reference=page
 page-position=first/

 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 /fo:layout-master-set
 
 fo:page-sequence
 master-reference=all
 fo:flow
 flow-name=xsl-region-body

 fo:blockxsl:apply-templates//fo:block
 /fo:flow
 /fo:page-sequence
 /fo:root
 /xsl:template
 
 !-- process paragraphs --
 xsl:template match=p

 fo:blockxsl:apply-templates//fo:block
 /xsl:template
 
 xsl:template match=meta
 fo:block color=green
 xsl:apply-templates/
 /fo:block
 /xsl:template
 
 !-- convert sections to XSL-FO headings --
 xsl:template match=s1
 fo:block font-size=24pt color=red
 font-weight=bold
 xsl:apply-templates select=@title/
 /fo:block
 xsl:apply-templates/
 /xsl:template
 
 /xsl:stylesheet
 
 But ... how can I make the lenya:meta tags in
 the
 xml file not to be 
 shown in the
 created pdf file???
 
 Thank you in advance!
 
 Sascha
 
 
 
 

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


-
To unsubscribe, e-mail: [EMAIL

Re: text-indent issue

2005-03-16 Thread Glen Mazza
--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:
 If I have text-indent specified on an fo:block and
 if I have a nested block
 within this, the text following this nested block is
 indented as well. For
 example:
 
  
 
 fo:block text-indent=5
 
   This is just for testing purpose and this line
 will be indented.
 
 fo:blockthis is the nested block /fo:block
 
  The text following the nested block is indented
 as well...not sure if
 this is as per spec. since it does not happen in
 other renderers.
 
 /fo:block
 
 
 In the above example, the text following the second
 block should not be
 indented since text-indent applies only to the first
 line of that block and
 not to any subsequent text in that block. 

I really don't think so.  All of the PCDATA in your
example is owned by that outer fo:block, and subject
to its properties.

 Is there a
 way to get around this
 issue by specifying some property on the first
 block? I appreciate your
 help.
 

De-nest your fo:blocks?

Glen


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



Re: xsl:apply-templates

2005-03-11 Thread Glen Mazza
I think so; something similar to [1] -- but with
something under the xsl:otherwise that you would
want to see in the PDF in the case where there are no
team members.

Glen

[1]
http://marc.theaimsgroup.com/?l=fop-userm=110969377910177w=2


--- Ben Gill [EMAIL PROTECTED] wrote:
 Hi,
 
 I am using apply-templates, but would like to always
 spit out one child
 (ie.TeamMemeber) entry in the PDF doc.
 
 At the momment, if there is no TeamMember, nothing
 gets written to the PDF
 document..
 
 Is there a clever way of telling XSL to spit out at
 least one child anyway?
 or is the solution to 
 dump out some empty XML from the
 ProjectTeamXMLReader?
 
 Thanks
 
 
 This message has been checked for all known viruses
 by the MessageLabs Virus Control Centre.
 


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



Re: master-reference '' for fo:page-sequence matches no simple-page-master or page-sequence-master

2005-03-09 Thread Glen Mazza
The property on fo:conditional-page-master-reference
should be master-reference, not master-name [1].

[1]
http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_conditional-page-master-reference

HTH,
Glen

--- Siegfried Heintze [EMAIL PROTECTED] wrote:

 
   15fo:conditional-page-master-reference
 page-position=first
 master-name=right/
 
   16fo:conditional-page-master-reference
 odd-or-even=even
 master-name=right/
 
   17fo:conditional-page-master-reference
 odd-or-even=odd
 master-name=left/
 
   18fo:conditional-page-master-reference
 master-name=right/
 


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



Re: Leader dots not showing up and Compilation exited abnormally with code 255 at Wed Mar 09 14:20:11

2005-03-09 Thread Glen Mazza
--- Siegfried Heintze [EMAIL PROTECTED] wrote:

 Thanks for that last response! I'm now getting PDF
 output from 0.20.5!
 

That's nice.

  
 
 May I solicit you for suggestions on how to diagnose
 these problems:
 
 (1) I don't understand the warning below. I
 searched for
 table-layout=auto and could not find it in my xsl or
 my file.
 

Probably because you didn't specify table-layout
explicitly as a property, and hence that property
defaults as auto.  Use process of elimination to
determine the offending table, and explicitly use
table-layout=fixed and the message should go away.


 (2) fo:blockSIGNITEKfo:leader
 rule-thickness=1pt
 leader-pattern=dots/ does not seem to be
 producing a complete row of dots
 for my table of contents. It did in 0.19.
 

In our /examples directory, we have a leader.fo sample
somewhere.  Run that and see if it works, if so look
in that file to see what needs to be done.

 (3) area contents overflows area in line - how
 do I find which line of
 xml/fo code is causing this?
 

Process of elimination--keep reducing the input file
until the culprit is cornered.


 (4) Why does it execut with code 255? Maybe this
 is another symptom of
 the above problems. Would a warning cause this?
 

I have no idea.

  
 
 I tried using -d hoping it would give me line
 numbers in the fo file. It did
 not!
 

The nerve!  But the future 1.0 version (not ready yet)
should be better in this regard.

Thanks,
Glen


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



Re: Problem with CDATA in the input XML-file

2005-03-06 Thread Glen Mazza
--- Julian Reschke [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  Of course! We forgot theand  before and
 after the CDATA.
  We used a parser (jdom) that could handle this
 without any complaints 
  (less strict) and I was suprised to se the CDATA
 statement in the output 
  (pdf-file).
   
  Thank you!
 
 In the context of XML parsing, less strict means
 buggy.
 

Ja, auch mit der *XSL FO*-Parsierung, denke ich. 
Danke für Ihre Meinung!  ;)

Glen


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



RE: Default stylesheet

2005-03-04 Thread Glen Mazza
--- Roland Neilands [EMAIL PROTECTED]
wrote:

 [ERROR] Expected XSL-FO (root, page-sequence, etc.),
 SVG (svg, rect, etc.) or el
 ements from another supported language.
 
 I think FOP can do it, it just needs to not set the
 -xsl flag and/or this error turned into a warning:
 [ERROR] XSLT file must be specified for the
 tranform mode
 ie let xalan spit the error if there's no processing
 instruction.
 

But the user is not necessarily using Xalan, we use
JAXP internally, which is XSLT-processor-agnostic, and
I'm unsure but doubtful that the xml-stylesheet
processing instruction can be supported by JAXP.

Best option here is to just specify -xsl { filename }
at the command line, just use the filename you have in
the XML document.  That's what all the other
command-line users do, whether or not they bother with
the xml-stylesheet PI.  Apparently xml-stylesheet[1] 
is mainly for browsers anyway.

HTH,
Glen

[1] http://www.dpawson.co.uk/xsl/sect2/N6145.html#d7755e169

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



Re: Interesting question

2005-03-04 Thread Glen Mazza
Looks like an Apache Ant task.  Look at the example at
the bottom of [1].

[1] http://xml.apache.org/fop/anttask.html

Glen

--- Miroslav Pukhalsky [EMAIL PROTECTED]
wrote:

 Hi there!
 
 Can I do something like this
 
 fop.bat -fo *.fo -pdf *.pdf
 
 and got the same quantity of PDF files from some
 quantity of FO files?
 Or is it impossible for FOP 0.20.5? Or exists
 another way for do this?
 
 Miroslav
 

-
 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: Default stylesheet

2005-03-03 Thread Glen Mazza
Oh--now I see, it means a stylesheet embedded within
the XML file.

Glen

--- Glen Mazza [EMAIL PROTECTED] wrote:

 I don't know what a XSLT default stylesheet is --
 checking the XSLT Rec for default is not showing 
 any place where this is defined.  (I believe
 browsers
 have them, but that wouldn't be applicable for our
 discussion here.)
 
 But if his input XML is already XSL-processable
 (perhaps indicated by the fact that only a default
 stylesheet would be needed to transform it), I
 think
 FOP can do this already.  How about:
 
 fop -fo abc.xml -pdf abc.pdf
 
 Glen
 
 
 --- Jeremias Maerki [EMAIL PROTECTED]
 wrote:
 
  You're welcome to write a patch for the code in
 CVS
  HEAD so we have this
  feature ready when we're ready to start releasing
  again. Obviously, this
  isn't implemented in FOP 0.20.5.
  
  On 03.03.2005 06:55:01 Roland Neilands wrote:
   Hi all,
   
   I have an interesting question:
   Can FOP use the XML default stylesheet instead
 of
  having one specified?
   
   eg
   PI in test.xml:
   ?xml-stylesheet type=text/xsl
 href=test.xsl?
   
   xalan -in test.xml -out test.fo
   fop test.fo -pdf test.pdf
   fop -xml test.xsl -pdf test.pdf
   
   works fine, but to do it in one step:
   fop -xml test.xml  -pdf test.pdf
   gives usage screen +:
   [ERROR] XSLT file must be specified for the
  tranform mode
   
   Obviously this works:
   fop -xml test.xml -xsl test.xsl -pdf test.pdf
   but I would prefer to let this be specified per
  xml file if possible.
   
   Any comments appreciated.
  
  
  Jeremias Maerki
  
  
 

-
  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: check to see if newpage is created

2005-03-02 Thread Glen Mazza
Are you sure?  If I understand the question correctly
he wants a different title on page 2 (and 3, and 4,
and 5...) from page 1.

For example:  Page One:  ACME INVOICE
Page Two  onwards:ACME INVOICE (cont'd).

Would markers really help here?

Glen

--- Roland Neilands [EMAIL PROTECTED]
wrote:

 Markers sound much easier for this.
 See examples\fo\markers\ included in the FOP
 distribution.
 
 Plenty of examples in the list archive too.
 
 Cheers,
 Roland
 
  -Original Message-
  From: Glen Mazza [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 2 March 2005 10:48 AM
  To: [EMAIL PROTECTED]
  Subject: Re: check to see if newpage is created
  
  
  I think he can, although I don't have an exact
 example
  for him--[1] may come close.  It would be
 convoluted,
  and I'm unsure whether it works in FOP, but:
  
  Basically, he wants the static header to be
 different
  on pages after one, if there is more than one
 page. 
  That normally indicates using a
  fo:page-sequence-master with maximum-repeats = 1
 (see
  line 26 of [1]) for the first
  fo:repeatable-page-master-reference, and
 no-limit
  for the second, with the two fo:r-p-m-r using
  different fo:simple-page-masters.
  
  The first fo:s-p-m would be same as what he's
  currently using, the second fo:s-p-m would be the
 same
  as the first, *except* that fo:region-before would
  have a different region-name property (say
  show-contd-msg)
  
  Next, within the fo:page-sequence, construct two
  fo:static-contents for the differing headers (see
 line
  38), one having a flow-name of
 xsl-region-before,
  and the other having a flow-name of
 show-contd-msg
  (which has the cont'd message).  The first
 fo:s-c
  will be activated for the first page, and the
 second
  fo:s-c will activated for all other pages.
  
  HTH,
  Glen
  
  [1] http://tinyurl.com/4mwdc
  
  
  --- [EMAIL PROTECTED] wrote:
  
   If you are using static-content blocks to create
   headers and footers, 
   you'll automatically get that content on the new
   page. You can also put a 
   running title in the header or footer. If you
 make
   the header area big 
   enough and apply the same style choices to the
   running title, I suppose 
   you could make it like like a continued title
   (perhaps even with the word 
   continued after the title). As a rule, that's
 OK
   in short (two pages or 
   so) documents but will be seen as heavy-handed
 for
   long documents.
   
   If you want to insert a new title in the body of
 the
   document each time a 
   new page is created, I think you're out of luck.
 I
   don't believe FOP 
   offers a mechanism to detect when a flow has
 crossed
   a page boundary.
   
   I don't think this is a weakness of FOP, by the
 way.
   I'm pretty sure the 
   FO spec offers no such mechanism, so any
 compliant
   implementation of the 
   spec does not have that feature.
   
   (I have qualified all my statements because I
 have
   not taken the time to 
   go check the spec.)
   
   HTH
   
   Jay Bryant
   Bryant Communication Services
   (presently consulting at Synergistic Solution
   Technologies)
   
   
   
   Jaysheel Bhavsar [EMAIL PROTECTED] 
   03/01/2005 04:08 PM
   Please respond to
   [EMAIL PROTECTED]
   
   
   To
   [EMAIL PROTECTED]
   cc
   
   Subject
   check to see if newpage is created
   
   
   
   
   
   
   Hi,
 I am displaying some text on one of the pages,
 and
   some times the text
   might be long enough that a new page is created.
 Is
   there a way to check
   if a new page is created so I put some page
 title
   eg. (cont...) or
   something else.
   
   Thanks
   
   Jaysheel. 
   
  
 

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

-
 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: check to see if newpage is created

2005-03-02 Thread Glen Mazza
I'm confused about the comment:

!-- This marker contains Continued til last page
then the total --

But we don't want to see the text continued until
(=up to) the last page--we *do* want to see it on the
last page, and every page, except the first.  Is your
code doing this or are is it solving the above issue
instead?

Thanks,
Glen

--- Roland Neilands [EMAIL PROTECTED]
wrote:

 Some working code:
 
 ...
 fo:static-content:
 fo:block text-align=end
 space-after.optimum=3pt line-height=15pt
 font-family=serif font-size=10pt
   !-- This marker contains Continued til
 last page then the total --
   !-- xsl:value-of
 select=Header/OrderTotal/ --
   fo:retrieve-marker
 retrieve-class-name=table-continued
  
 retrieve-boundary=page
  
 retrieve-position=last-ending-within-page/
 /fo:block
 
 
 ...
 In the fo:flow (each iteration):
   fo:block
   fo:marker
 marker-class-name=table-continuedContinued
 .../fo:marker
 /fo:block
 ...
 At the end:
   fo:block text-align=end
 space-after.optimum=3pt line-height=15pt
 font-family=serif font-size=10pt
 fo:marker
 marker-class-name=table-continued
   xsl:value-of select=Header/OrderTotal/
 /fo:marker
   /fo:block
 
 More detail:

http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=marker+continuedq=b
 
 Cheers,
 Roland
 
  -Original Message-
  From: Glen Mazza [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 2 March 2005 11:30 AM
  To: [EMAIL PROTECTED]
  Subject: RE: check to see if newpage is created
  
  
  Are you sure?  If I understand the question
 correctly
  he wants a different title on page 2 (and 3, and
 4,
  and 5...) from page 1.
  
  For example:  Page One:  ACME INVOICE
  Page Two  onwards:ACME INVOICE (cont'd).
  
  Would markers really help here?
  
  Glen
  
  --- Roland Neilands [EMAIL PROTECTED]
  wrote:
  
   Markers sound much easier for this.
   See examples\fo\markers\ included in the FOP
   distribution.
   
   Plenty of examples in the list archive too.
   
   Cheers,
   Roland
   
-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 March 2005 10:48 AM
To: [EMAIL PROTECTED]
Subject: Re: check to see if newpage is
 created


I think he can, although I don't have an exact
   example
for him--[1] may come close.  It would be
   convoluted,
and I'm unsure whether it works in FOP, but:

Basically, he wants the static header to be
   different
on pages after one, if there is more than one
   page. 
That normally indicates using a
fo:page-sequence-master with maximum-repeats =
 1
   (see
line 26 of [1]) for the first
fo:repeatable-page-master-reference, and
   no-limit
for the second, with the two fo:r-p-m-r using
different fo:simple-page-masters.

The first fo:s-p-m would be same as what he's
currently using, the second fo:s-p-m would be
 the
   same
as the first, *except* that fo:region-before
 would
have a different region-name property (say
show-contd-msg)

Next, within the fo:page-sequence, construct
 two
fo:static-contents for the differing headers
 (see
   line
38), one having a flow-name of
   xsl-region-before,
and the other having a flow-name of
   show-contd-msg
(which has the cont'd message).  The first
   fo:s-c
will be activated for the first page, and the
   second
fo:s-c will activated for all other pages.

HTH,
Glen

[1] http://tinyurl.com/4mwdc


--- [EMAIL PROTECTED] wrote:

 If you are using static-content blocks to
 create
 headers and footers, 
 you'll automatically get that content on the
 new
 page. You can also put a 
 running title in the header or footer. If
 you
   make
 the header area big 
 enough and apply the same style choices to
 the
 running title, I suppose 
 you could make it like like a continued
 title
 (perhaps even with the word 
 continued after the title). As a rule,
 that's
   OK
 in short (two pages or 
 so) documents but will be seen as
 heavy-handed
   for
 long documents.
 
 If you want to insert a new title in the
 body of
   the
 document each time a 
 new page is created, I think you're out of
 luck.
   I
 don't believe FOP 
 offers a mechanism to detect when a flow has
   crossed
 a page boundary.
 
 I don't think this is a weakness of FOP, by
 the
   way.
 I'm pretty sure the 
 FO spec offers no such mechanism, so any
   compliant
 implementation of the 
 spec does not have that feature.
 
 (I have qualified all my statements because
 I
   have
 not taken the time to 
 go check the spec.)
 
 HTH
 
 Jay Bryant
 Bryant Communication Services
 (presently consulting at Synergistic

Re: Page Size

2005-03-02 Thread Glen Mazza
I can't answer your question but to help others who
may be able to, could you clarify whether you want PS
or PDF output?  (Or both?)

Thanks,
Glen


--- Uwe Kubosch [EMAIL PROTECTED] wrote:

 Hi!
 
 We are using FOP to produce a book and most issues
 have been
 successfully dealt with.
 
 Currently we are struggling with page size.  We set
 page size to be 29.7
 by 21 cm in the simple-page-master tag.
 
 We need to be able to reorder and resize the pages
 for folded printing.
 That means putting pages 4+1 on the first sheet and
 pages 2+3 on the
 second sheet for a 4 page document.  The only way we
 have found to do
 this is by converting the pdf document to postscript
 and using psbook
 for the reordering and psnup to put two pages on one
 sheet.
 
 When printing the resulting document, the page size
 is a bit off and
 visual inspection using ggv show the page sizes to
 be too small.  The
 pdf produced by FOP is 27.9 by 20.3 cm.
 
 After using pdf2ps the page size is 26.9 by 20.3.
 
 Is this a known problem?
 
 Is there a way to display the page size of a pdf or
 postscript document
 exactly?
 
 Any help is greatly appreciated.
 
 
 donV
 
 

-
 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: fo:flow must contain block-level children

2005-03-01 Thread Glen Mazza
The problem I think is with your XSLT--you should not
output an fo:page-sequence if you have no block-level
children to generate to begin with.

I'm not an XSLT guru, but I don't think it is that
hard to do.  Would anyone have a sample?

Thanks,
Glen


--- [EMAIL PROTECTED] wrote:

 
 
 
 
 I get the following error
   fo:flow must contain block-level children
 when I don't have the matching elements in my xml by
 using the following
 code generates the error.
 
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   xsl:apply-templates select=CodeDecode
   /xsl:apply-templates
/fo:flow
 /fo:page-sequence
 
 If I replace the above code with the code below I
 get an extra blank page
 and I want to suppress this blank page
 
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   fo:block
   xsl:apply-templates select=CodeDecode
   /xsl:apply-templates
   /fo:block
/fo:flow
 /fo:page-sequence
 
 Thanks
 
 -Neeru
 

--
 Le présent message ainsi que ses éventuelles pièces
 jointes est
 exclusivement destiné au(x) destinataire(s),
 personnes physiques ou
 morales, qu'il désigne.
 Il constitue de ce fait une correspondance à
 caractère privé et peut
 contenir des informations confidentielles.
 Si ce message vous est parvenu par erreur, nous vous
 remercions d'en aviser
 immédiatement l'expéditeur par retour de courrier
 électronique puis de le
 détruire, ainsi que ses éventuelles pièces jointes,
 sans en conserver de
 copie.
 
 
 This message, including any attachment, is intended
 for the use of the
 individual or entity to which it is addressed.
 It is therefore to be considered as a private
 correspondence which may
 contain confidential information.
 If you are not the intended recipient, please advise
 the sender immediately
 by reply e.mail and delete this message and any
 attachment thereto without
 retaining a copy.

--
 
 

-
 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: flow must contain block-level children

2005-03-01 Thread Glen Mazza
I don't think that helps, because he still gets the
empty fo:block and hence the blank page.  But by
rearranging your code, perhaps this will work instead:

xsl:choose
xsl:when test=0 lt; count(CodeDecode)
fo:page-sequence master-reference=page3
fo:flow flow-name=body3
xsl:apply-templates select=CodeDecode /
/fo:flow
 /fo:page-sequence
/xsl:when
xsl:otherwise
/xsl:otherwise
   xsl:choose

I think this will work.  No fo:page-sequence--and
hence no blank page--will be output if there is no
data.

Glen


--- Dennis Myrén [EMAIL PROTECTED] wrote:

 Neeru,
 
 You can test if there are any occurrences of
 CodeDecode, if not then just write out an empty
 block:
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   xsl:choose
   xsl:when test=0 lt; count(CodeDecode)
   xsl:apply-templates select=CodeDecode /
   /xsl:when
   xsl:otherwise
   fo:block /
   /xsl:otherwise
   xsl:choose
/fo:flow
 /fo:page-sequence
 
 
 Regards,
 Dennis JD Myrén
 Developer
 Oslo Kodebureau
 Tel:  (+47) 98 00 11 92
 Mail:   [EMAIL PROTECTED]
 Web:   www.oslokb.no
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: 1. mars 2005 16:36
 To: [EMAIL PROTECTED]
 Subject: fo:flow must contain block-level children
 
 
 
 
 
 I get the following error
   fo:flow must contain block-level children
 when I don't have the matching elements in my xml by
 using the following
 code generates the error.
 
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   xsl:apply-templates select=CodeDecode
   /xsl:apply-templates
/fo:flow
 /fo:page-sequence
 
 If I replace the above code with the code below I
 get an extra blank page
 and I want to suppress this blank page
 
 fo:page-sequence master-reference=page3
 fo:flow flow-name=body3
   fo:block
   xsl:apply-templates select=CodeDecode
   /xsl:apply-templates
   /fo:block
/fo:flow
 /fo:page-sequence
 
 Thanks
 
 -Neeru
 

--
 Le présent message ainsi que ses éventuelles pièces
 jointes est
 exclusivement destiné au(x) destinataire(s),
 personnes physiques ou
 morales, qu'il désigne.
 Il constitue de ce fait une correspondance à
 caractère privé et peut
 contenir des informations confidentielles.
 Si ce message vous est parvenu par erreur, nous vous
 remercions d'en aviser
 immédiatement l'expéditeur par retour de courrier
 électronique puis de le
 détruire, ainsi que ses éventuelles pièces jointes,
 sans en conserver de
 copie.
 
 
 This message, including any attachment, is intended
 for the use of the
 individual or entity to which it is addressed.
 It is therefore to be considered as a private
 correspondence which may
 contain confidential information.
 If you are not the intended recipient, please advise
 the sender immediately
 by reply e.mail and delete this message and any
 attachment thereto without
 retaining a copy.

--
 
 

-
 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: check to see if newpage is created

2005-03-01 Thread Glen Mazza
I think he can, although I don't have an exact example
for him--[1] may come close.  It would be convoluted,
and I'm unsure whether it works in FOP, but:

Basically, he wants the static header to be different
on pages after one, if there is more than one page. 
That normally indicates using a
fo:page-sequence-master with maximum-repeats = 1 (see
line 26 of [1]) for the first
fo:repeatable-page-master-reference, and no-limit
for the second, with the two fo:r-p-m-r using
different fo:simple-page-masters.

The first fo:s-p-m would be same as what he's
currently using, the second fo:s-p-m would be the same
as the first, *except* that fo:region-before would
have a different region-name property (say
show-contd-msg)

Next, within the fo:page-sequence, construct two
fo:static-contents for the differing headers (see line
38), one having a flow-name of xsl-region-before,
and the other having a flow-name of show-contd-msg
(which has the cont'd message).  The first fo:s-c
will be activated for the first page, and the second
fo:s-c will activated for all other pages.

HTH,
Glen

[1] http://tinyurl.com/4mwdc


--- [EMAIL PROTECTED] wrote:

 If you are using static-content blocks to create
 headers and footers, 
 you'll automatically get that content on the new
 page. You can also put a 
 running title in the header or footer. If you make
 the header area big 
 enough and apply the same style choices to the
 running title, I suppose 
 you could make it like like a continued title
 (perhaps even with the word 
 continued after the title). As a rule, that's OK
 in short (two pages or 
 so) documents but will be seen as heavy-handed for
 long documents.
 
 If you want to insert a new title in the body of the
 document each time a 
 new page is created, I think you're out of luck. I
 don't believe FOP 
 offers a mechanism to detect when a flow has crossed
 a page boundary.
 
 I don't think this is a weakness of FOP, by the way.
 I'm pretty sure the 
 FO spec offers no such mechanism, so any compliant
 implementation of the 
 spec does not have that feature.
 
 (I have qualified all my statements because I have
 not taken the time to 
 go check the spec.)
 
 HTH
 
 Jay Bryant
 Bryant Communication Services
 (presently consulting at Synergistic Solution
 Technologies)
 
 
 
 Jaysheel Bhavsar [EMAIL PROTECTED] 
 03/01/2005 04:08 PM
 Please respond to
 [EMAIL PROTECTED]
 
 
 To
 [EMAIL PROTECTED]
 cc
 
 Subject
 check to see if newpage is created
 
 
 
 
 
 
 Hi,
   I am displaying some text on one of the pages, and
 some times the text
 might be long enough that a new page is created. Is
 there a way to check
 if a new page is created so I put some page title
 eg. (cont...) or
 something else.
 
 Thanks
 
 Jaysheel. 
 

-
 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: CSS Mailing list.

2005-02-22 Thread Glen Mazza
Google CSS Mailing List.

Glen

--- Puppala, Kumar (LNG-DAY)
[EMAIL PROTECTED] wrote:

 Does anyone know a mailing list where I can post CSS
 related questions?
 
 Thanks,
 Kumar Puppala
 
 

-
 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: Using Date/number datatypes with SAX events (Re: Seeking for expert opinion)

2005-02-18 Thread Glen Mazza
HTH, indeed--exactly the information I was looking
for! 

Thanks,
Glen

--- Jeremias Maerki [EMAIL PROTECTED] wrote:

 I'm not sure I'm getting you. Anyway, SAX doesn't
 care about dates or
 floats, only strings, so you'd have to convert these
 datatypes yourself
 to a suitable string representation (dates to
 ISO8601 for example).
 Probably if you're following my example you can
 extend the
 EasyGenerationContentHandlerProxy (awesome name,
 right?) to handle
 special datatypes for you. In the end you simply
 have to call the
 characters() method to send the values as strings.
 HTH.
 
 On 17.02.2005 22:08:00 Glen Mazza wrote:
  Jeremias (or others),
  
  I'm converting over at work to this method you're
  describing below, using the embed sample you
 mention
  below--everything is going well so far.
  
  Question though:  For date and number types within
 the
  various objects that represent the data, should I
 use
  String datatypes instead because of the subsequent
 SAX
  event handling, or will dates and floats/ints etc.
  still work fine with this method?
 
 
 
 Jeremias Maerki
 
 

-
 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: XSLT Forum

2005-02-16 Thread Glen Mazza
The Mulberry XSLT mailing list...google for it.

Glen

--- Manisha Sathe [EMAIL PROTECTED] wrote:

 Any good  XSLT forum where i can post my xslt
 related queries there ?
  
 regards
 Manisha
  
  
 
   
 -
 Do you Yahoo!?
  Yahoo! Search presents - Jib Jab's 'Second Term'


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



Re: Seeking for expert opinion

2005-02-15 Thread Glen Mazza
Thanks for asking this question Manisha (as well of
course for your excellent answers Jeremias and
Holger)--I'm doing the same at work right now and
these responses are helpful for me as well.

Glen

--- Holger Dehnhardt [EMAIL PROTECTED] wrote:

 Hi Manisha,
 
 have a look at
 http://sourceforge.net/projects/documentserver/;
 and browse the CVS Repository for 

documentserver/Document-Server/src/de/lehmanns/documentServer/xmlFormatter
 and have a look at 
 1) SimpleSqlToXml.java which converts a ResultSet to
 XML in the Form
 row
  entity/entity
  entity/entity
  ...
 /row
 row
  ...
 (fast and simple)
 
 2) Sql2XmlFormatter.java which converts a ResultSet
 with the help of an 
 structure file to the form
 group1
  group2
   entity/entity
   ...
   group3
entity/entity
...
   /group3
  /group2
  ...
 /group1
 (Slow but more 'sophisticated')
 
 Holger
 
 
 Am Dienstag, 15. Februar 2005 02:36 schrieb Manisha
 Sathe:
  Initially i tested creating pdf using static
 xml/xsl file using following
  dos prompt cmd -
 
  fop -xml myxml.xml -xsl myxsl.xsl -pdf mydoc.pdf
 
  Now i want to generate xml/pdf on fly. User will
 specify search criteria -
  depending on that i will pick up data from
 database.I want to generate xml
  from this data and use it to create pdf file.
 
  What is normal practice to do this?
 
  1)I am not too sure about how to create XML -
 whether use SAX/DOM or just
  type it out as a string data 2)e.g If i generate
 XML o/p as a string -
  whether can i make use of this XML String to
 generate pdf ? Or i need to
  write this in a file ?
 
  Pls guide me, if anybody can share sample which
 shows creation of XML and
  generate pdf from that - would be a greate help.
 
  regards
  Manisha
 
 
 
 
 
  -
  Do you Yahoo!?
   Take Yahoo! Mail with you! Get it on your mobile
 phone.
 

 ATTACHMENT part 2 application/pgp-signature 



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



Re: representative example needed

2005-02-07 Thread Glen Mazza
Back so soon, Ilya?  ;)  Welcome to Apache FOP!

Glen

--- Ilya Khandamirov [EMAIL PROTECTED] wrote:

 Hi Glen,
 
  Oops!  Sorry...Google is giving 2:1 ratio that
 Ilya is
  male.
 
 That's right. If you also review other statements of
 yours in this thread,
 you'll understand, that all of them is are just the
 same rubbish. But first
 take a break. You are tired.
 
 
 Regards,
 Ilya
 
 
 -- 
 Lassen Sie Ihren Gedanken freien Lauf... z.B. per
 FreeSMS
 GMX bietet bis zu 100 FreeSMS/Monat:
 http://www.gmx.net/de/go/mail
 

-
 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: Embedding Type 1 Polish font

2005-02-07 Thread Glen Mazza
I don't know myself.  But these links may answer your
question:

http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=POLISHq=b

Also Google on Apache FOP  Polish perhaps?

Let us know if anything helped.

Glen

--- Jesiolowski, Dominik
[EMAIL PROTECTED] wrote:

 
 Hello
 I am trying to produce PDF with polish fonts,
 unfortunately
 necessary characters are not in Base-14 fonts. The
 fonts
 I am trying to use can be found here - they are
 free:

http://www.agh.edu.pl/pub/tex/GUST/contrib/fonts/cm-pl/plpsfont.zip
 
 I have created xml files with font metrics and added
 fonts to
 fop.xml. The PDF I am getting after processing my
 .fo file
 contains text with the right font but polish
 characters
 appear as '#'. My .fo file looks like this:
 
 ?xml version=1.0 encoding=UTF-8?
 fo:root
 xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
 fo:simple-page-master margin-bottom=2cm
 margin-left=2cm
 margin-right=2cm margin-top=2cm
 master-name=simpleA4
 page-height=29.7cm page-width=21cm
   fo:region-body/fo:region-body
 /fo:simple-page-master
   /fo:layout-master-set
   fo:page-sequence master-reference=simpleA4
 fo:flow flow-name=xsl-region-body
   fo:block
 font-family=PLRomanDemi10PLRomanDemi10-Regular:
 [polish
 chars here]/fo:block
 /fo:flow
   /fo:page-sequence
 /fo:root
 
 Instead of [polish chars here] I have real polish
 chars encoded correctly in
 UTF-8.
 For example Aogonek [hex: C484].
 
 Has anyone solved a similiar problem?
 
 Regards
 Dominik
 

-
 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: representative example needed - success story

2005-02-06 Thread Glen Mazza
Thanks for sharing.  FOP was first developed by James
Tauber in the late 1990's[1], which he then donated to
Apache, and now FOP has had multiple generations of
developers maintaining it.  

I am seeing that FOP is at its best when it comes to
invoices--mass production of smaller documents, also
it does pretty well at Docbook PDF generation.

For my day position, the main success I've had with
FOP was in switching our online help systems from
manual gotta-maintain-the-appearance-on-every-page
HTML-based RoboHelp to Docbook HTML and PDF (the
latter being generated by FOP).  The online help looks
great, with everything having a standard appearance,
and maintenance costs/time/stress fell maybe 90%. 
Also, the new solution is free.

Also at work, I am currently halfway through moving a
couple of our invoice-sized PDF reports from Oracle
Reports to a Servlet/FOP implementation.  This will be
a second huge XML victory for me--not just my first
dynamic XSL web application in actual production, but
I will then have the web framework in place for more
reports to switch over to XSL more quickly.

BTW, for your conversion of HTML to a XSL-based
system, [2] may be of use for you -- I have not gotten
to this framework yet myself though.

Thanks,
Glen

[1]
http://jtauber.com/2000/fop/acknowledge.html

[2]
http://www.onjava.com/pub/a/onjava/2002/12/11/apache_fop.html


--- Partridge, Michael [EMAIL PROTECTED]
wrote:

 I suppose now is a good time to share my experience
 with FOP with the
 rest of the mailing list, particularly the FOP
 developers.
 
 I'm a software developer working for a company that
 does health care
 administration services for many large US companies.
 Many of these
 clients have former employees who enjoy COBRA
 benefits, others provide
 subsidized benefits for their employees or retired
 former employees.
 We've been using FOP for well over a year now,
 creating over 35000
 invoices per month, most of which are available to
 our participants
 online as a static document that they can view or
 download. We're also
 beginning to use FOP to generate all of our client
 level reports,
 although we have yet to undertake the task of
 converting the old C++
 programs that currently generate the reports in HTML
 ;). If that's not
 enough, we're just finishing up a system to generate
 all types of
 different healthcare-related participant letters
 such as open enrollment
 forms using FOP for rendering.
 
 As for the future, I've just finished implementing
 an OCR scanline
 (using an embedded OCR font) and POSTNET barcode
 (using the fabulous
 barcode4j package at http://barcode4j.krysalis.org)
 on our individual
 invoice stub to save money and time spent matching
 payments to
 participants. 
 
 In other words, much thanks to all the FOP
 developers past, present, and
 future, for putting so much time into this great
 product!
 
 Mike
 


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



Re: representative example needed

2005-02-05 Thread Glen Mazza
Thanks!  Success stories ([1] is my favorite)--as well
as failures (honesty of its limitations also being
helpful in increasing confidence in FOP)--are always
welcome on this list.

Glen

[1]
http://marc.theaimsgroup.com/?l=fop-userm=107763815607390w=2


--- Markus Rietzler [EMAIL PROTECTED] wrote:

 we are using FOP to generate tickets for an
 online-ticketing-solution.
 
 for certain events listed in our online calendar it
 is possible to order 
 tickets online. payments in the online-shop are
 handled via bank account 
 or credit card. after purchase the ticket is
 produced as a pdf document.
 this pdf file can be downloaded and printed out and
 provides all infos 
 to attend the event.
 
 at the moment we are working to implement a seat
 reservation module for 
 our online ticket shop.
 
 markus rietzler
 RIETZLER_SOFTWARE/
 


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



Re: 2 problems

2005-02-05 Thread Glen Mazza
Hello Tommaso,

--- Tommaso Taglioni [EMAIL PROTECTED] wrote:

 First problem: In my xml there is a tag ndr that
 is present one or more
 times in a specified point.The problem is that I
 don't have to process it as
 a normal xsl:template match=ndr but I have to
 insert the content of this
 tag in the cover of my PDF and not in the rest of
 the PDF pages.So,how can I
 insert the content of a tag in a point of the PDF
 that I want?
 

insert the content of this tag in the cover of the
PDF and not on the other pages -- do something on
one set of pages but not on others -- use a separate
fo:page-sequence for the cover page.

I don't have to process it as a normal xsl:template
match=ndr but I have to insert the content of this
tag -- copy the value of a tag -- use xsl:copy?


 Second Problem:it's possible to say something as
 when you find the tag H1
 go to new page(start a new page) in the XSL-FO?
 

I would use separate fo:page-sequences for that as
well (I think).  You seem to be doing standard
HTML-FO conversion.  [1] may be of use for you.

[1]
http://www-106.ibm.com/developerworks/library/x-xslfo2app/

Glen


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



Re: representative example needed

2005-02-04 Thread Glen Mazza
Indeed, RenderX is a very solid product run by a very
professional company.  It would be hard to go wrong
with them.

Glen

--- Ilya Khandamirov [EMAIL PROTECTED] wrote:

 Hi,
 
 I need a representative exampe, of what is possible
 to do with FOP. For
 example, RenderX XEP comes with XML versions of XML,
 XSLT and XPath specs
 and a stylesheet to convert them to XSL-FO (say
 PDF). The generated PDFs
 look very impressive.
 


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



Re: representative example needed

2005-02-04 Thread Glen Mazza
--- [EMAIL PROTECTED] wrote:

 I was also taken aback by what seems to be a plug
 for RenderX. 

RenderX is, again, a fine company.  It is run by very
talented people of solid integrity.  I have no problem
endorsing them for Ilya, and I'm sure they will be
able to provide her the level of customer support that
she needs.


 FOP does 
 all that I need, so I've never looked at RenderX,

Indeed, as it does for most XSL users, but it won't do
all that *Ilya* needs.  She needs heavy-duty,
I-don't-even-want-to-check-the-website-for-examples
customer support, and open source is simply not the
best model for that type of user.


 and this doesn't seem a 
 like a logical forum in which to plug a commercial
 product.

Sometimes unfortunately we have to.  She's doing a
product comparison, and has an evident requirement of
hand-holding customer support that open source simply
can't provide.  (For example, wanting the FOP team to
manually provide examples to her, instead of her going
to the website or the examples/ directory of our
distribution.)  Hence, my recommendation for her to
look for a commercial product.

As for her Oh I'm continuing to compare FOP and
RenderX..., the FOP project seems dead..., Oh,
Glen, did you just call your team incompetent
buffoons, etc., etc., it appears to me just intended
to intimidate the team into providing 24x7 support for
her, as if the FOP world is going to end if she
chooses RenderX instead.  I will not play that game.  

I'm calling her bluff...she's most welcome to go to
RenderX.

Glen


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



Re: representative example needed

2005-02-04 Thread Glen Mazza
--- Glen Mazza [EMAIL PROTECTED] wrote:

 --- [EMAIL PROTECTED] wrote:
 
  I was also taken aback by what seems to be a plug
  for RenderX. 
 
 RenderX is, again, a fine company.  It is run by
 very
 talented people of solid integrity.  I have no
 problem
 endorsing them for Ilya, and I'm sure they will be
 able to provide her the level of customer support
 that
 she needs.
  ^^^

Oops!  Sorry...Google is giving 2:1 ratio that Ilya is
male.

Glen


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



Re: Trouble getting fop to work with cocoon CLI

2005-02-01 Thread Glen Mazza
Google on Unsupported element encountered (with
quotes).  I'm seeing 55 hits.

Glen


--- Peter Gustafsson [EMAIL PROTECTED] wrote:

 Hi.
 
 I have this strange problem with fop in combination
 with cocoon.
 
 What I try to do is to make a offline archive of my
 cocoon pdf files. I use 
 the cocoon command line interface (CLI) to
 accomplish this. The problem 
 however is that fop fail's to render images. It
 prints out the error message 
 shown below and omits the image from the output,
 hence the pdf is rendered 
 without the image.
 
 
 ERROR   2005-02-01 07:33:01.749 [manager.] ():
 Unsupported element 
 encountered: external-graphic (Namespace: default).
 Source context: 
 file:/C:/software/tomcat/webapps/cocoon/index.fo
 (line: 1, col: 1)
 ERROR   2005-02-01 07:33:01.759 [manager.] ():
 Expected XSL-FO (root, 
 page-sequence, etc.), SVG (svg, rect, etc.) or
 elements from another 
 supported language.
 ERROR   2005-02-01 07:33:01.829 [manager.] (): no
 handler defined for 
 external-graphic foreign xml
 
 
 If I render the pdf the normal way, using cocoon as
 a servlet the result is 
 as desired, the same is true when I use the CLI to
 generate the xsl-fo xml 
 and after that uses fop.bat on the xml.
 
 My first thought was that my java environment used
 the wrong Xerces or Xalan 
 files. However the problem persisted even after
 placing the same Xalan and 
 Xerces files found in my tomcat endorsed folder in
 the jre endorsed folder.
 
 The error message indicate that the namespace of the
 external-graphic 
 element is omitted for some reason. When trying to
 use a none existing fo 
 element such as fo:blablabla / the same error
 message is shown. However 
 the Namespace : default is change to Namespace: 
 http://www.w3.org/1999/XSL/Format) for the blablabla
 object.
 
 I run Cocoon 2.0 binary version. and fop 0.20.5. I
 have tried to do a 
 complete reinstall of cocoon (only updating the
 batik.jar so that cocoon 
 will start on tomcat5). In this test environment I
 used a minimal sitemap 
 and a static xsl:fo file. The result is the same.
 The pdf is generated as it 
 should when called through the cocoon servlet but
 fails when called through 
 the CLI.
 
 If anyone has had this problem I would be very happy
 to find a solution. I 
 have no problem making some adjustments to cocoon or
 fop source files but as 
 it is now I don't know where to start looking for
 the problem.
 
 Best regards
 Peter Gustafsson
 
 
 

-
 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: XSLTInputHandler setParameter

2005-01-31 Thread Glen Mazza
--- Gang Li [EMAIL PROTECTED] wrote:
  
 Has anybody had problem with XSLTInputHandler's
 setParameter method? 

It's usually best to forget about XSLTInputHandler,
and just use JAXP[1] instead.  Also note this example
has a setParameter() call to show you how parameters
work with FOP.

[1]
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java?rev=1.10

 Also: does anybody know how can I set the PDF file
 name for the streamed
 PDF object? I am getting the PDF streamed back to
 the browser, but I
 want it to be able to print with a specific name. I
 don't know how to do
 it. Anybody else?
 

Hopefully this will help: 
http://marc.theaimsgroup.com/?l=fop-userm=10591000465w=2

Glen

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



Re: HTML Tables converted to FO Tables

2005-01-29 Thread Glen Mazza
A Google (hint... ;) on HTML tables to FO conversion
yielded [1], as well as many other hits.

HTH,
Glen

[1]
http://www-106.ibm.com/developerworks/library/x-xslfo2app/

--- Chris Greene [EMAIL PROTECTED] wrote:

 Folks,
 
 I'm hoping that someone has already solved this
 problem...
 
 --- I have an input XML file that has a Body tag
 which contains an 
 HTML Table as its content.
 --- If I save the HTML content to a file and open it
 in a browser, the 
 browser very nicely formats the table with, I
 suspect, some 
 heuristically computed column widths.
 --- Since FO requires that you explicitly specify
 the column-width of 
 each column in a table I suppose that my XSL file
 needs to do something 
 like a browser does to compute the column-widths.
 
 Has anyone written an XSL file to create FO tables
 from HTML tables?
 
 Thanks,
 Chris
 

-
 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: Need a little help

2005-01-24 Thread Glen Mazza
I may be missing something here, but shouldn't the
flow-name be xsl-region-before[1]?

Glen

[1]
http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#region-name

--- Luke Shannon [EMAIL PROTECTED] wrote:
 
 fo:region-before extent=2.47cm/
 

snip/

 !-- header --
 fo:static-content flow-name=xsl-region-start



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



Re: create arabic pdf

2004-12-26 Thread Glen Mazza
Hello,

I don't know if FOP has this capability, but a search
on Arabic in our archives [1] (Hebrew may help as
well, as that's another R-to-L language) is giving
several links that may answer your question.

Also a Google on FOP Arabic (without the quotes)
gives thousands of hits.

Let us know if you're able to get it done, and which
link(s) helped you the most.

Thanks,
Glen

[1]
http://marc.theaimsgroup.com/?l=fop-userw=2r=1s=arabicq=b


--- nafise hassani [EMAIL PROTECTED] wrote:

 hi
 Anybody knows how to Create PDF with Arabic words?
 
 Seems FOP-0.20.5(cocoon use it in its pdf
 serializer)
 cannot handle Arabic glyphs/ligature properly. It
 can
 only display the Arabic characters but the rules to
 ligate them together cannot be displayed.
 also it show chars from left to right but  arabic is
 a
 right to left language 
 
 suggestion??
 
 
   
 __ 
 Do you Yahoo!? 
 Dress up your holiday email, Hollywood style. Learn
 more. 
 http://celebrity.mail.yahoo.com
 

-
 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: Printing PDF on the client default printer.

2004-12-01 Thread Glen Mazza
Intranet or internet, same issues, no?

Glen

--- [EMAIL PROTECTED] wrote:

-
I forgot to mention that all our international offices
are connected to our LA  headoffice via
Intranet...

-Glen Mazza [EMAIL PROTECTED] wrote: -

To: [EMAIL PROTECTED]
From: Glen Mazza [EMAIL PROTECTED]
Date: 11/30/2004 09:12AM
Subject: Re: Printing PDF on the client default
printer.

That seems odd--HTTP normally won't (can't?) work that
way.  It seems tantamount to saying that one can make
an HTTP request from one browser and have the response
sent to another browser (on a different machine).

Would you mind getting into some details of how you
managed that?

Thanks,
Glen


--- [EMAIL PROTECTED] wrote:


-
Just wanted everyone to know that I have successfully
implemented client side printing using FOP
 
Eg: If the XML file gets created on the webserver
which is located in Los Angeles and the user in
London, then the XML is converted to PDF and the PDF
file is printed on the clients default printer in
London.
 
Thanks
Manoj



-
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: Printing PDF on the client default printer.

2004-12-01 Thread Glen Mazza
Thanks for your (and Manoj's) explanation.  I didn't
know how this was done.  Good work Manoj!

Glen

--- J.Pietschmann [EMAIL PROTECTED] wrote:

 Glen Mazza wrote:
  Intranet or internet, same issues, no?
 
 The problem has been discussed several times and is
 even
 mentioned in the FAQ. The common recommendation is
 to
 provide something to the browser which can redirect
 the
 PDF to the client's local printer, an simple ActiveX
 (IEx
 only) or a Java applet (which has to be granted some
 rights, not difficult to arrange in a corporate
 setup).
 A Java applet could even render the PDF on the
 client,
 the only problem is the large Jar download for
 FOP+friends,
 which can be circumvented by pre-installation.
 
 J.Pietschmann
 

-
 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: Printing PDF on the client default printer.

2004-11-30 Thread Glen Mazza
That seems odd--HTTP normally won't (can't?) work that
way.  It seems tantamount to saying that one can make
an HTTP request from one browser and have the response
sent to another browser (on a different machine).

Would you mind getting into some details of how you
managed that?

Thanks,
Glen


--- [EMAIL PROTECTED] wrote:


-
Just wanted everyone to know that I have successfully
implemented client side printing using FOP
 
Eg: If the XML file gets created on the webserver
which is located in Los Angeles and the user in
London, then the XML is converted to PDF and the PDF
file is printed on the clients default printer in
London.
 
Thanks
Manoj



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



Re: fop text renderer

2004-11-11 Thread Glen Mazza
I suspect it would be best and simplest to download the source code, and 
modify the text renderer.

Glen
Osman Çinar Eren schrieb:
hi,
i create a table in pdf which is OK. when i use the TXT renderer, the spaces in 
the cells are replaced by hyphens. how can i disable this behavior?
i want spaces for spaces.:)
thanks in advance.
best regards..
-
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: Printing PDF on the client default printer.

2004-10-21 Thread Glen Mazza
--- [EMAIL PROTECTED] wrote:

 I already have an applet on the client side which
 uses PrinterJob class to
 popup the printer selection box on client side.
 
 Now how do I redirect the content from server to
 this printer?
 

I don't think you can, because of applet sandbox
rules.  They just can't wander over to other machines,
including printers.  But I may be incorrect here.

 Should I use Driver.RENDER_PRINT / Driver.RENDER_PCL
 set in the fop driver
 renderer ? 

No, those are non-PDF devices.  One is Java2D, the
other is HP printer control language.


 and what content type should the response
 object return?
 
 Thanks
 Manoj
 
 PS: I have successfully use the FopPrinter example (
 FopPrintServlet ) to
 print pdfs on the app servers default printer but
 what I need is to be able
 to print on the clients default printer and not on
 servers printer.
 

This issue has come up in the past, and (I believe)
the normal suggestion is to change your requirements. 
Isn't it strange to go to a website and have something
automatically print out of your printer?

Glen

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



Re: does FOP get progress?

2004-09-17 Thread Glen Mazza
--- Eclipse [EMAIL PROTECTED] wrote:
 Hello,
 i have a probelm with keep Atribute with next.
 
 i hope somebody can tell me weather the FOP Project
 is still in progress.
 

Very much so.

Glen


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



Re: Splitting large XML file into small XMLs

2004-09-17 Thread Glen Mazza
Bhaskar,

Please ask non-FO questions on the Mulberry XSLT
list--google for it.

Thanks,
Glen


--- [EMAIL PROTECTED] wrote:

 Hi guys,
 
  
 
 I have large XML file it has thousands
 of XML files embedded
 in it tell a better way to separate this.
 
  
 
 This is the format of file:
 
  
 
 ?xml version=1.0 encoding=UTF-8?
 
 non_xml_data![CDATA[?xml version=1.0
 encoding=UTF-8
 standalone=yes?
 
 DBGMMessage SchemaVersion=2.0
 xsi:schemaLocation=DbGMLPrice
 dbgml.marketdata.xsd Risk marketdata.risk.xsd

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=DbGMLPrice
 
 BusinessHdr xmlns=
 
  
 
  
 
   /BusinessHdr
 
 /DBGMMessage]]/non_xml_data
 
 ?xml version=1.0 encoding=UTF-8?
 
 non_xml_data![CDATA[?xml version=1.0
 encoding=UTF-8
 standalone=yes?
 
 DBGMMessage SchemaVersion=2.0
 xsi:schemaLocation=DbGMLPrice
 dbgml.marketdata.xsd Risk marketdata.risk.xsd

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns=DbGMLPrice
 
 BusinessHdr xmlns=
 
  
 
  
 
   /BusinessHdr
 
 /DBGMMessage]]/non_xml_data
 
  
 
  
 
  
 
 
 
 DISCLAIMER:
 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.
 


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



RE: problem with XSLTInputHandler(String,String) constructor

2004-09-17 Thread Glen Mazza
Better yet, don't even use XSLTInputHandler.  Use JAXP
instead--see the embedded page for examples.

Glen


--- Chris Pratt [EMAIL PROTECTED] wrote:

 The new InputStream(String) constructor takes an XML
 SystemID, not the XML Content.  Try wrapping your
 XML content in a StringReader.
   (*Chris*)
 
 Original Message ---
 Hi all,
 I have problem with XsltInputHandler. I tried with
 the following code.But
 its not working.I worked with XsltInputHandler
 (file,file)constructor. It
 worked fine.Please tell me what is the problem.I
 want to pass xml and xsl as
 string.Please help me.Thanks in advance
 
 
 xsl is a string contains my
 xsl file
 xml is a string contains my
 xml file
 
 InputSource is1=new InputSource(xsl);   
 
 InputSource is2=new InputSource(xml);
 
 XSLTInputHandler inputHandler = new
 XSLTInputHandler(is1,is2);
 //XSLTInputHandler inputHandler = new
 XSLTInputHandler(xml,xsl);
 ByteArrayOutputStream outStream = new
 ByteArrayOutputStream();
 
 driver.setOutputStream(outStream);
 
 driver.render(inputHandler.getParser(),
 inputHandler.getInputSource());
 
 byte[] content =
 outStream.toByteArray();
 res.setContentLength(content.length);
 
 res.setContentType(application/pdf);
 
res.getOutputStream().write(content);
res.getOutputStream().flush();
 
outStream.close();
 
 
 //I ALSO TRIED WITH XSLTInputHandler inputHandler =
 new
 XSLTInputHandler(xml,xsl);
 // means XSLTInputHandler(String,String) constructor
 
 
 
 
 

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

**
 
 

-
 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: id already exists

2004-09-06 Thread Glen Mazza
Oh--I didn't know.  Thanks.
J.Pietschmann schrieb:
Glen Mazza wrote:
Please do, so we can keep it in mind.

The issue is well known, the reasons understood. There
are already multiple open reports in bugzilla for
various specific cases.
J.Pietschmann
-
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: id already exists

2004-09-04 Thread Glen Mazza
One possibility is that you forgot to set a needed attribute within your 
Docbook source, that would be used by the XSL stylesheets to generate a 
unique ID value.

I would try to minimize your docbook xml to zero in on the precise problem.
A search on already exists in this document in the DOCBOOK-APPS 
mailing list (google for it) may also help you find the problem.

Glen
Jean-Philippe Guérard schrieb:
Hello!
I'm trying to generate PDF and PS document with FOP (from a DocBook XML 
source converted to FO). For a couple of documents, I always end up with 
the following error:

[ERROR] file:/home/fevrier/essai.fo:48:206 The id id2455426 already 
exists in this document

I tried to build the FO file with both xsltproc and xalan, with the same 
result each time.

The FO file is available here: http://tigreraye.org/essai.fo
I checked within the FO file, and failed to find the duplicate ID.
Any idea?
Thanks in advance!
Best Regards.
 


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


Re: id already exists

2004-09-04 Thread Glen Mazza
Jean-Philippe Guérard schrieb:
BTW, should I file a bug about this issue?
Thanks.
 

Please do, so we can keep it in mind.  Maintenance branch (0.20.5) is 
frozen, but in case this appears in our upcoming 1.0 version, it would 
be good for us to have a source FO to work with.

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


Re: pdf creation without file operations

2004-08-30 Thread Glen Mazza
Take a look at the samples on our embedded page:
http://xml.apache.org/fop/embedding.html

You may find an example useful for your work.

Glen

--- Peter [EMAIL PROTECTED] wrote:

 hello list,
 
 I have a question:
 
 is in FOP a way, to give, e.g. the PDF Output, in a
 stream to a java
 application.
 
 reason: only RO access to the webserver where FOP
 ist running.
 
 thanks people.
 
 so long
 Peter Reiner
 
 
 

-
 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: Question about fo:leader

2004-08-23 Thread Glen Mazza
We have a leader.fo sample in the examples/fo/basic
directory that may be of help to you.

Glen

--- Abney, Robby [EMAIL PROTECTED] wrote:

 Hello.  I had a question about using leaders in FO. 
 I'm trying to
 generate a PDF document that contains a department
 name followed by dots
 and finally a phone number.
 


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



Re: Having trouble removing linefeeds

2004-08-20 Thread Glen Mazza
Thanks, Chris, that solved it.

Glen

--- Chris Bowditch [EMAIL PROTECTED] wrote:

 Glen Mazza wrote:
 
 snip/
 
  fo:table-cell
fo:block text-align=end 
   System Codes 
   fo:retrieve-marker
  retrieve-position=first-starting-within-page
  retrieve-boundary=page
 retrieve-class-name=code/
   fo:block-/fo:block
 
 Glen, I think this is your problem. Try placing the
 minus inside a fo:inline 
 instead of a fo:block.
 


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



RE: Please help me( Error in Servlet to run fop)

2004-08-20 Thread Glen Mazza
Did you also include the batik.jar and avalon.jar?  I
don't have any more answers at this stage.  You may
wish to send your question to the Tomcat-Users list,
they may be able to understand your exception list
more easily and can point you to the problem.

I would also search the Tomcat-Users and Struts-Users
(even though you're not using Struts) lists for FOP,
hopefully someone has had your problem.  Also, search
this mailing list (URL below will also get you there)
for Servlet--see if you can a simpler example that
works.

Also, what happens if you comment out the FOP portions
of your Servlet--does it work then?  

Glen

[1]
http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=FOPq=b

--- [EMAIL PROTECTED] wrote:

 Hello Glen,
 
   I am set path for jar files correctly and also I
 already
 replaced my jar files with new ones. Also I am
 sending the log file
 generated by Tomcat.
 
 Please advise me.
 
 And thanks for your suggestions.
 
 Regards,
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 19, 2004 10:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Please help me( Error in Servlet to run
 fop)
 
 Hello Bhaskar, 
 
 Looking at the error stack at the point where FOP
 was
 invoked, it is possible you're having a problem with
 the xerces and xalan jars in the servlet container.
 
 Either (1) they're not present in either the shared/
 or common/ directories of the servlet container, or
 (2) they are, but they're old/buggy versions.  My
 guess would be (1)--it just can't find the XML
 libraries.  
 
 HTH,
 Glen
 
 

org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120
 )
   at

org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
   at

org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
   at

org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
   at 

org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactor
 yImpl.java:95)
   at

org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)
 
 
 --- [EMAIL PROTECTED] wrote:
 
  Hi everybody,
  
   
  
  I am using fop to generate report. I
  have set the path of
  JAR file properly. But when tried to create object
  for Driver() class it
  is throwing an error.
  
  I sending attachment (Error.txt) file containing
  error message and I
  using Tomcat1.4.
  
   
  
  Thanks in advance.
  
   
  
  Regards,
  
  Bhaskar
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
  2004-08-20 10:51:08 HostConfig[localhost]:
Deploying
 configuration descriptor admin.xml
 2004-08-20 10:51:09 HostConfig[localhost]: Deploying
 configuration descriptor manager.xml
 2004-08-20 10:51:09 WebappLoader[/manager]:
 Deploying class repositories to work directory
 C:\Program Files\Apache Group\Tomcat
 4.1\work\Standalone\localhost\manager
 2004-08-20 10:51:09 ContextConfig[/manager]:
 Configured an authenticator for method BASIC
 2004-08-20 10:51:09 StandardManager[/manager]:
 Seeding random number generator class
 java.security.SecureRandom
 2004-08-20 10:51:09 StandardManager[/manager]:
 Seeding of random number generator has been
 completed
 2004-08-20 10:51:09
 StandardWrapper[/manager:default]: Loading container
 servlet default
 2004-08-20 10:51:09
 StandardWrapper[/manager:invoker]: Loading container
 servlet invoker
 2004-08-20 10:51:09 HostConfig[localhost]: Deploying
 web application directory bas
 2004-08-20 10:51:09 StandardHost[localhost]:
 Installing web application at context path /bas from
 URL file:C:\Program Files\Apache Group\Tomcat
 4.1\webapps\bas
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploying
 class repositories to work directory C:\Program
 Files\Apache Group\Tomcat
 4.1\work\Standalone\localhost\bas
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy class
 files /WEB-INF/classes to C:\Program Files\Apache
 Group\Tomcat 4.1\webapps\bas\WEB-INF\classes
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/avalon-framework-cvs-20020806.jar to
 C:\Program Files\Apache Group\Tomcat

4.1\webapps\bas\WEB-INF\lib\avalon-framework-cvs-20020806.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/batik.jar to C:\Program Files\Apache
 Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\batik.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/iflex_common_1_0_0.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\iflex_common_1_0_0.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/xalan-2.4.1.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\xalan-2.4.1.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/xercesImpl-2.2.1.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\xercesImpl-2.2.1.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF

Re: AW: AW: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-19 Thread Glen Mazza
Matthias,

I would recommend looking through the on-line
tutorials offered by the commercial implementations
(at www.renderx.com, www.antennahouse.com) first in
order to learn about XSL.  

Then, run each of the FOP examples in the examples/fo
directory of the FOP distribution.  Take notes on what
you can use for your own work--look at the underlying
code.

Although in a ruder tense than I would use, I think
Michael Kay's recent advice for an XSLT newbie [1] may
be relevant here.  Learn a bit more before you start
working!

Regards,
Glen

[1]
http://www.biglist.com/lists/xsl-list/archives/200407/msg00114.html

--- Mosimann Matthias [EMAIL PROTECTED]
wrote:

 Sorry but I'm very new to xml - techniques, study it
 for a couple of days. So I'm a little bit confused.
 I don't know what I should do for solving this
 error. I read the FAQ ... But I think there is no
 solution?!
 
 Could anybody give me some advice? Many thanks for
 your answers. If anyone needs the xsl file and the
 xml file pls ask for them.
 
 
 regards
 
 Matthias
 
 -Ursprüngliche Nachricht-
 Von: J.Pietschmann [mailto:[EMAIL PROTECTED] 
 Gesendet: Montag, 16. August 2004 21:31
 An: [EMAIL PROTECTED]
 Betreff: Re: AW: Error while using fop: [ERROR]
 org.apache.fop.apps.FOPException: master-reference
 
 
 Mosimann Matthias wrote:
  [ERROR] org.apache.fop.apps.FOPException: No
 meaningful layout in 
  block after many attempts.  Infinite loop is
 assumed.  Processing 
  halted.
 
 FAQ (again):
   http://xml.apache.org/fop/faq.html#fop-hangs
   http://xml.apache.org/fop/faq.html#boxoverflow
 
 I think we should update the Q title.
 
 J.Pietschmann
 
  


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



Re: Please help me( Error in Servlet to run fop)

2004-08-19 Thread Glen Mazza
Hello Bhaskar, 

Looking at the error stack at the point where FOP was
invoked, it is possible you're having a problem with
the xerces and xalan jars in the servlet container.

Either (1) they're not present in either the shared/
or common/ directories of the servlet container, or
(2) they are, but they're old/buggy versions.  My
guess would be (1)--it just can't find the XML
libraries.  

HTH,
Glen


org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
at
org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
at 
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
at
org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)


--- [EMAIL PROTECTED] wrote:

 Hi everybody,
 
  
 
 I am using fop to generate report. I
 have set the path of
 JAR file properly. But when tried to create object
 for Driver() class it
 is throwing an error.
 
 I sending attachment (Error.txt) file containing
 error message and I
 using Tomcat1.4.
 
  
 
 Thanks in advance.
 
  
 
 Regards,
 
 Bhaskar
 


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



Re: FOP extension development (newbie)

2004-08-19 Thread Glen Mazza
--- Peter Verhoye
[EMAIL PROTECTED] wrote:

 I know, this is already possible but the goal is to
 be able to insert a 
 generated image in a PDF document on the fly.
 I can't use a servlet so no help there.
 

Instead of an extension element--*very* complex--can't
you use XSLT to generate your FO stylesheet, possibly
using xsl:param to dynamically choose the graphic
desired?

Glen


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



Re: different input type to org.apache.fop.apps.XSLTInputHandler;

2004-08-17 Thread Glen Mazza
Besides Chris' answer, I would also recommend
switching to JAXP.  Look at our examples on this page:

http://xml.apache.org/fop/embedding.html

Also, please remember to unsubscribe from the FOP user
lists (as well as any other) when you go on vacation,
so we don't receive your out of the office messages.
 

Thanks,
Glen

--- Andrew S Moy [EMAIL PROTECTED] wrote:

 
 
 
 
 Hi,
 
 The constructor of
 org.apache.fop.apps.XSLTInputHandler takes the XML
 file
 and XSL file.  I was wondering if anyone knows other
 XSLTInputHandler which
 takes some source of input stream objects.  This way
 we don't have to write
 the data to a physical file and knowing that it will
 be read again from the
 InputHandler.  Reading/writing from/to a physically
 media is always slower
 that from/to the system memory.
 
 Thanks,
 
 
 Andy
 
 

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



Having trouble removing linefeeds

2004-08-17 Thread Glen Mazza
Hello,

Within an fo:table-cell, I wish to have an output
similar to the following:

System Codes 25-30

Where 25 and 30 are calculated using fo:markers.

The FO snippet is as follows:

fo:table-cell
  fo:block text-align=end 
 System Codes 
 fo:retrieve-marker
retrieve-position=first-starting-within-page
retrieve-boundary=page retrieve-class-name=code/
 fo:block-/fo:block
 fo:retrieve-marker
retrieve-position=last-ending-within-page
retrieve-boundary=page retrieve-class-name=code/
  /fo:block
/fo:table-cell

When running this, however, I'm getting this output:

System Codes 25
-
30

I.e., without the linefeeds being removed.

Question:  What is the combination of
white-space-collapse, white-space-treatment, and/or
linefeed-treatment I need to use, and where should I
specify them in the snippet above, in order to get the
output as desired?

Thanks,
Glen

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



Re: Error while using fop: [ERROR] org.apache.fop.apps.FOPException: master-reference

2004-08-16 Thread Glen Mazza
I suspect there is something wrong with your
transformation--the fo:layout-master-set is not
getting copied over into the FO document.

FOP is claiming that your fo:layout-master-set (at the
top of your FO) has no simple-page-master or
page-sequence-master called der-einzige-seitentyp. 
Please check for the fo:layout-master-set in the
resultant file and make sure it has a
der-einzige-seitentyp.  (Use Xalan for this.)

You may also wish to look at examples/pagination to
see the use of layout-master-set.  

Glen

--- Mosimann Matthias [EMAIL PROTECTED]
wrote:


 [ERROR] org.apache.fop.apps.FOPException:
 master-reference
 'der-einzige-seitentyp' for fo:page-sequence matches
 no
 simple-page-master or page-sequence-master
 
 
 Anyone could help me? If it's neccessary I will send
 you the xml and the
 xsl file!
 
 Regards and many thanks for your answers!
 Matthias 
 

-
 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: org.w3c.dom.Document to PDF...

2004-08-16 Thread Glen Mazza
This example may help you:

http://cvs.apache.org/viewcvs.cgi/xml-
fop/examples/embedding/java/embedding/ExampleDOM2PDF.java?rev=1.9


--- Rodrigo Reyes C. [EMAIL PROTECTED]
wrote:

 Does anyone out there has some code to translate a
 org.w3c.dom.Document 
 object to PDF? I would like to keep the PDF data in
 memory, not a file. 
 Thanx in advance...
 
 Rodrigo
 PS. I have this code but it doesn't seem to be
 working...
 
 Driver driver = new Driver();
 driver.setRenderer(Driver.RENDER_PDF);
 driver.setOutputStream(new
 FileOutputStream(targetFilename + 
 .pdf));
 driver.render(doc);
 
 

-
 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: Attaching PDF to FOP output

2004-08-02 Thread Glen Mazza
Apparently a product called PJ and also iText are
able to post-process a FOP-made (or any other) PDF
document.  I suspect they will be able to append
another PDF, but haven't used these products yet so I
don't know for sure.  See here:

http://marc.theaimsgroup.com/?l=fop-userm=108131949107145w=2

Glen

--- Sönke_Ruempler [EMAIL PROTECTED] wrote:

 Hi,
 
 Maybe a little bit offtopic:
 
 Is it possible to attach a PDF file to a FOP output?
 
 --
 
 Sönke
 
 

-
 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: Enhancing FOP command line speed

2004-07-29 Thread Glen Mazza
I would go to the PHP site/ML's/FAQ's, etc., and look
at how to keep a Java application active in memory for
your PHP calls.

Once you find out how that can be done, I would then
move away from a FOP command line to an FOP-embedded
program (see http://xml.apache.org/fop/embedding.html
for examples) that you can keep active for your
multiple documents.  

Glen


--- Sönke_Ruempler [EMAIL PROTECTED] wrote:

 Hi,
 
 Anyone knows how to speed up FOP from the command
 line? Atm I call the
 fop.sh from a PHP script to generate the PDF and so
 everytime the (slow ;) )
 Java Runtime must be started.
 
 --
 
 Sönke
 
 

-
 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: FOP hangs at Driver driver = new Driver(); line

2004-07-28 Thread Glen Mazza
Take a look at the examples on our embedding page
(http://xml.apache.org/fop/embedding.html) to make
sure you're following the general syntax needed.  

I assume you're using current production 0.20.5, our
sample servlet
(http://cvs.apache.org/viewcvs.cgi/xml-fop/src/java/org/apache/fop/servlet/FopServlet.java?rev=1.5view=markup)
may also be of help to you.

Glen


--- Manfred Reuter [EMAIL PROTECTED] wrote:
 there was a spelling mistake in my previous email:
 org.java.fop.apps.Driver.java should be
 org.apache.fop.apps.Driver.java 
   - Original Message - 
   From: Manfred Reuter 
   To: [EMAIL PROTECTED] 
   Sent: Tuesday, July 27, 2004 11:03 PM
   Subject: FOP hangs at Driver driver = new
 Driver(); line
 
 
   Hi,
 
   I'm using FOP (creating adhoc pdf reports) that is
 called from a servlet on a JRUN 3.1 machine (JDK
 1.4.1) and have trouble to initialize the Driver
 class. Actually it seems as it would hang at this
 point ... no exception, no error message ...
   I tried already adding 
   if (cl == null){
   cl = ClassLoader.getSystemClassLoader();
   }
   to Service.provider() method in
 org.java.fop.apps.Driver.java to rule out a class
 loader issue. I found the code somewhere in the
 archive of this email list, but I found out the
 program doesn't reach this particular code at all.
 
   Any help is highly appreciated.
 
   Thanks and regards,
   Manfred


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



Re: FOP hangs at Driver driver = new Driver(); line

2004-07-28 Thread Glen Mazza
Something else to look at whenever something
inexplicable is occurring is make sure that the same
versions of xalan.jar and xerces.jar are being
activated on both machines--some versions of the two
don't work well with Fop.

Glen

--- Clay Leeds [EMAIL PROTECTED] wrote:
 
 On Jul 28, 2004, at 11:06 AM, Manfred Reuter wrote:
  Hi,
 
  I was able to narrow it down where the problem in
 Driver.java is: 
  Somehow the program stops when the Driver adds the
 Element Mapping of 
  org.apache.fop.svg.SVGElementMapping.
 
  Thanks and regards,
  Manfred
 
 This may not be related, but are the staging and
 production systems 
 running 'headless'? If so, there's a FAQ about it:
 
 http://xml.apache.org/fop/faq.html#svg-headless
 
 Hope this helps!
 
 Web Maestro Clay
 
 

-
 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: FOP 0.20.5 and XDK 10.10.0.2.0

2004-07-27 Thread Glen Mazza
My thinking is that this might be an question for a
relevant Oracle ML (one for JDeveloper, perhaps). 
IIRC  their XDK incorporates FOP 0.20.4.

Another option for Slavko might be: can you use FOP
separate from the XDK?  I.e., perhaps just use the XDK
to get the XML, and then use FOP natively to
generate the PDF.  You may wish to look at our
embedding examples
http://xml.apache.org/fop/embedding.html to see if you
can use FOP in this manner.

Glen

--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Slavko Dzalto wrote:
  I tried to use FOP 0.20.5 and XDK 10.10.0.2.0 but
 they don´t work 
  together. If I use an older version of the XDK it
 works but I have to 
  use the new one.
 
 Are there any details available about the don't
 work
 together part? Like: error messages, stack traces,
 browser behaviour description etc.
 
 J.Pietschmann


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



Re: command line problem

2004-07-25 Thread Glen Mazza
Did you build (compile) the application first?  If you
just downloaded the source (instead of the binary)
version of FOP, you'll need to build the app first by
typing ant (or build.sh) at the command line in
the root directory.

Also, building will require downloading  installing
Apache Ant first--time well spent if you haven't done
this already, as Ant is a very useful tool.  Follow
the instructions in build.sh for more information.

Glen

--- Conor Quinn [EMAIL PROTECTED] wrote:
  since no matter what I do, the command
  line still spits back nothing but
  
 -bash: fop: command not found
  
  in response to a standard 
  
 fop fonts.fo fonts.pdf
  
  test of the newly added directory and files. 



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



Re: NullPointerException with fo -- rtf conversion

2004-07-15 Thread Glen Mazza
 at
org.apache.fop.apps.Driver.render(Driver.java:321)

There is no Driver.java:321 anymore (the file is only
300 lines).  Please delete your entire CVS source
directory, then download again, also delete your
entire build directory, and then do a full rebuild.

We're now on JAXP, please look at the first example on
our embed page for information on how to switch to it.

Glen


--- Marc [EMAIL PROTECTED] wrote:
 Hi!
 
 After running a cvs update yesterday morning an
 fo-file that used to convert quite
 unproblematically to rtf in the past causes trouble.
 I get the following exception:
 


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



Re: Development Version: xml+xsl - fo - rtf

2004-06-16 Thread Glen Mazza
Many non-trivial fo files will not work on the
development version, even including several of our own
examples.  It is still very much a work in progress. 
We try to fix the issues as we encounter them, and
over time, more and more of them become functional.

Glen

--- Johannes Franz [EMAIL PROTECTED] wrote:
 Ok, i created a fo file, with a preprocessor from
 xml+xsl. Now i tried:
 
 [EMAIL PROTECTED]:~/xml-fop ./fop.sh protocol.fo -rtf
 bittebitte.rtf
 
 and get the following error message:
 
 16.06.2004 18:18:54 org.apache.fop.apps.Fop main
 INFO: 1.0dev
 Exception in thread main
 java.lang.NullPointerException
 at
 org.apache.fop.apps.Driver.render(Driver.java:544)
 at org.apache.fop.apps.Fop.main(Fop.java:71)
 
 What did i do wrong?
 
 - Original Message -
 From: Victor Mote [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, June 16, 2004 6:19 PM
 Subject: RE: Development Version: xml+xsl - fo -
 rtf
 
 
  Clay Leeds wrote:
 
   RTF
  
   This is currently not integrated with FOP but it
 will soon.
   This will create an rtf (rich text format)
 document that will
   attempt to contain as much information from the
 fo document
   as possible.
  
   If any of the fop-devs knows more about getting
 FOP to output
   to RTF, it would be great to update the web site
 to make the
   above actually contain useful information. I
 checked CVS for
 
  RTF support is much more robust in the development
 branch, thanks mostly
 to
  the jfor crew, led by Bertrand Delecretaz, and
 Peter Herweg's efforts to
  integrate it. However, since releases are not
 being made from the
  development branch yet, users will have to
 download and build it
 themselves,
  at their own risk.
 
   the FOP Output Target page (from whence the
 above quote was
   taken), but couldn't find any information on the
 subject. The
   RTF-related info appears to have either been
 entered into the
   FOP Output Targets page before it was brought
 into CVS, or it
   wasn't well-documented.
 
  The web site, of course, refers to the released
 versions, and is accurate.
 
  WRT the source file, I don't follow. I can see the
 content here:
 

http://cvs.apache.org/viewcvs.cgi/xml-fop/src/documentation/content/xdocs/ou
  tput.xml?rev=1.16only_with_tag=MAINview=markup
  at line 240.
 
  Victor Mote
 
 
 

-
  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: Wrapping too long words?

2004-06-15 Thread Glen Mazza
I suspect he's using German, the hyphenation file of which we had to 
remove from FOP recently due to licensing issues--but Simon is currently 
hosting them for us at http://www.leverkruid.nl/FOP/index.html. 
Instructions on how to install the file might be here:  
http://xml.apache.org/fop/hyphenation.html.  (I have not done this 
myself, however, so I'm not sure how it works.)

Glen
[EMAIL PROTECTED] wrote:
Hi Johannes,
 

Use  hyphenate=true language=en to overcome the problem.
 

Bye
 


*From:* Johannes Franz [mailto:[EMAIL PROTECTED]
*Sent:* Monday, June 14, 2004 9:17 PM
*To:* [EMAIL PROTECTED]
*Subject:* Wrapping too long words?
 

Hi there,
 

i have the following problem. Perhaps you can help me.
Ok, since i am producing my fo file from an automatically created xml 
file, there are often words wich are too big for a table cell and so 
overflow in the next cell. Sometimes words are even to long for one 
line of the page. So is there a fo attribute to wrap the word and go 
forward in a new line when it exceeds a predefined length? It has not 
to be an intelligent wrapping like hyphenation.

 

Ciao.

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


Re: FW: OutOfMemoryError by large tables: Alternative solution?

2004-06-15 Thread Glen Mazza
Another option for generating PDF, if you don't need all the advanced 
functionality of an XSL processor, could be iText:  
http://www.lowagie.com/iText/, http://sourceforge.net/projects/itext/.  
I have not worked with this product before, but it *may* be able to 
handle very large and relatively simple/repetitive documents better.  
However, you'll no longer be working with XML  XSL documents as input.

Glen
[EMAIL PROTECTED] wrote:

Thanks for the answers.
There are some items where I am still a bit confused.
First, I must agree that it might not make sence to render 2 rows into
PDF. The problem is, that the user can pick bad criteria and I can not
interact with him at that time.
As to splitting up the table:
J.Pietschmann wrote:
It's not enough to reduce memory consumption. In order to
reclaim memory locked up in Area objects related to the
table, the FOs itself have to be reclaimed, which only
happens at the end of a page sequence.
I am quite new to XSL:FO but I think that you can only have one body-flow
inside a page-sequence? Snipet:
fo:page-sequence master-reference=repA4 font-family=Helvetica
font-size=8pt
 fo:flow flow-name=xsl-region-body
   xsl:apply-templates select=//tables/
/fo:flow
 /fo:page-sequence
If so, and it has no (positive) impact if I have more tables or not, then
the only possibility is to split the source (xml) and run more times?
Regards,
Anders Malmborg

-
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: Dynamic generation of fo:page-sequence in static XSL page

2004-06-15 Thread Glen Mazza
[EMAIL PROTECTED] schrieb:
Hi all,
 

Is there any tag or way to generate fo:page-squence dynamically in a 
static XSL page (like looping) depending on the information available 
in XML page.

 

With Regards
Bhaskar
I think this is a Mulberry XSLT list question.  Best to ask these types 
of questions there.

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


RE: Dynamic generation of fo:page-sequence in static XSL page

2004-06-15 Thread Glen Mazza
Umm, have you ever heard of Google?

Glen

--- [EMAIL PROTECTED] wrote:

 Hi Glen,
 Please send the URL so that I can search for it.
 
 With Regards
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 15, 2004 6:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Dynamic generation of
 fo:page-sequence in static XSL page
 
 [EMAIL PROTECTED] schrieb:
 
  Hi all,
 
   
 
  Is there any tag or way to generate
 fo:page-squence dynamically in a
 
  static XSL page (like looping) depending on the
 information available 
  in XML page.
 
   
 
  With Regards
 
  Bhaskar
 
 
 I think this is a Mulberry XSLT list question.  Best
 to ask these types 
 of questions there.
 
 Glen
 

-
 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: Regarding Radio Button in JSf Application

2004-06-14 Thread Glen Mazza
I'm unsure what this question has to do with FOP. 
Perhaps the Sun Java forums would be of help for you.

Glen

--- Amit Garg [EMAIL PROTECTED] wrote:
 Hi,
 
 I am facing a problem while creating a Radio Button
 for a JSF page in Studio
 Creator.Please tell me How can I add Radio button in
 my JSF page.
 
 Thanx and Regards
 
 Amit Garg
 
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
   Sent: Monday, June 14, 2004 10:42 AM
   To: [EMAIL PROTECTED]
   Subject: Any solutions to
 java.lang.OutOfMemoryError
 
 
   Hi everybody,
 
 
 
   I want to generate report to do this I am querying
 the data base between
 two dates there may 1 record or 1 records or
 10 records  exists how
 to handle this in FOP .
 
 
 
   Please send me some tips
 
 
 
   Is there is any dynamic solutions for this ?
 
 
 
   With regards
 
   Bhaskar
 
 


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



RE: Help me from Outmemory issue

2004-06-14 Thread Glen Mazza
Actually, neither--I'm referring to the
fo:page-sequence formatting object, which is an
immediate child of fo:root and positioned after
fo:layout-master-set, and (optionally)
fo:declarations.

Glen


--- [EMAIL PROTECTED] wrote:
 Hi Glen,
 Thanks for help.
 
 Tell me elaborately what you mean by 'more page
 sequences'.
 Is it more number of fo:simple-page-master or more
 number of
 fo:page-sequence-master master-name=contents 
 referring to
 single-page-master.  
 
 With regards
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 14, 2004 3:33 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Help me from Outmemory issue
 
 You can probably keep your XML the same.  However,
 you
 *might* find it helpful you if you add a metadata
 row
 for the number of rows you have--if you wish to rely
 on that number for subsequent XSLT processing logic.
 
 Your XSL stylesheet however--can you rewrite it to
 use more page sequences, or more (but smaller)
 tables?
  Is there some key value in each record that you can
 divide by 10, perhaps, to set up 10 page sequences
 or
 10 different tables?  The Mulberry XSLT list can
 help
 you with any XSLT programming that may require.
 
 HTH,
 Glen
 
 
 --- [EMAIL PROTECTED] wrote:
  Hi all, 
  
  I am having out of memory issues when transforming
  my FO -  PDF using 
  fop-0.20.5rc2. I read that using multiple page
  sequences in the XSL and 
  therefore in the FO means that fop will release
 some
  memory. I don 't
  see how 
  I can do this. My XML file is generated
 dynamically
  from a database so I
  
  don 't know how big it will be. Is there any
  solutions I can use that
  uses 
  multiple page sequences or possible change the xml
  structure, if not is 
  there another FOP transformer that isn 't as
 memory
  intensive. Thanks in
  
  advanced for any help. If I havn 't provided
 enough
  info please ask and
  I can 
  get back to you.
  
   
  
  With regards
  
  Bhaskar
  
  
 
 

-
 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: shift_jis and FOP?

2004-06-12 Thread Glen Mazza
Oops, I guess I stand corrected.  Sorry.

Glen

--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Karl Critz wrote:
  Has anyone ever successfully converted japanese
 text to PDF using FOP?
 
 Yes, I did. There's even one in the FOP examples.
 


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



Re: Please help me

2004-06-06 Thread Glen Mazza
Yes, take a look at these examples [1] , in particular the 
fo:page-sequence-master elements near the top of three of the more 
complex examples.

[1] http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/pagination/
Glen
[EMAIL PROTECTED] schrieb:
If you want more than One Page, you can use repeatable page master or 
conditional page master

Regards
Jerald S
-Original Message-
*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]
*Sent:* Friday, June 04, 2004 12:48 PM
*To:* [EMAIL PROTECTED]
*Subject:* Please help me

Hi everybody
When execute the command fop infile xml prac.xml xsl prac.xsl pdf 
prac.pdf  I am getting the pdf file with single page only, though 
there are many data in the xml file.

Earlier it was working fine means I was getting 3 pages in the pdf 
file. But after me using fo:block-container within the body of 
fo:flow flow-name=xsl-region-body I am getting only one page in 
the pdf file and I am using fo:simple-page-master tag

With Regards
Bhaskar
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.
   


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


Re: embedded FOP - logging

2004-04-27 Thread Glen Mazza
This section should help you:

http://xml.apache.org/fop/embedding.html#basic-logging

Glen


--- Johannes Stuermer [EMAIL PROTECTED] wrote:
 How do I tell FOP to only log ERROR messages and not
 messages that fall into
 the INFO category?
 
 Thanks
 
 
 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 27, 2004 12:04 PM
 To: [EMAIL PROTECTED]
 Subject: Re: iteration in xsl
 
 
 Varadharajan Sethuraman wrote:
  I just want to know the *iteration functionality*
 in xsl.
  for example similar to the following ...
  *for(int i=0;i10;i++){*
 
 You most likely wont need it. Check your XSLT book
 (you
 have a book, haven't you?) for the position() and
 count()
 XPath functions.
 If you decide to ask on the XSL list, state your
 original
 problem, like how do I get FO list items enumerated
 similar
 to HTML ol?, rather than the derived one. This is
 more
 likely to get you a sensible answer.
 
 J.Pietschmann
 

-
 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: Outline extension generates a PDF bookmark set for each page-sequence

2004-04-23 Thread Glen Mazza
Bruce,
1.0dev is *quite* unfinished--with hundreds of classes only partially 
complete--but yes, please add it into Bugzilla just to make sure it is 
not missed. 

Thanks,
Glen
Krautbauer, Bruce wrote:
Hi,
I've come across what I think is a bug.  I did some searching and could
not find any references to anything similar.  I am running version
1.0dev checked out earlier today.
If I use the outline extension to generate PDF bookmarks it generates a
complete set of bookmarks for each page-sequence I have.  In other
words, if I have this input:
?xml version=1.0 encoding=UTF-8 ?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=simple
page-height=29.7cm page-width=21cm margin-top=1cm
margin-bottom=2cm
margin-left=2.5cm margin-right=2.5cm
fo:region-body margin-top=3cm /
fo:region-before extent=3cm /
fo:region-after extent=1.5cm /
/fo:simple-page-master
/fo:layout-master-set
fox:bookmarks xmlns:fox=http://xml.apache.org/fop/extensions;
fox:outline internal-destination=sec1
fox:labelSection 1/fox:label
/fox:outline
fox:outline internal-destination=sec2
fox:labelSection 2/fox:label
/fox:outline
/fox:bookmarks
fo:page-sequence master-reference=simple
fo:flow flow-name=xsl-region-body font-size=10pt
font-family=Helvetica
fo:block id=sec1Section 1/fo:block
/fo:flow
/fo:page-sequence
fo:page-sequence master-reference=simple
fo:flow flow-name=xsl-region-body font-size=10pt
font-family=Helvetica
fo:block id=sec2Section 2/fo:block
/fo:flow
/fo:page-sequence
/fo:root
I expect to get one set of bookmarks with items of Section 1 and Section
2 linking to the first page and second page respectively.  Instead I get
two complete sets, i.e., items Section 1, Section 2, Section 1 and
Section 2.  The bookmarks link to the right places.  This only seems to
happen if there are outline references to more than one page-sequence.
Is this something I should write a bug report about?
Thanks,
Bruce

-
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: solid instead of dashed line

2004-04-14 Thread Glen Mazza
Clay Leeds wrote:
I would set a @border-bottom=1pt solid #00 to the fo:table-cell 
in the table-header (Name and City).

Web Maestro Clay - [EMAIL PROTECTED]
---

Excellent, thanks.
Glen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


solid instead of dashed line

2004-04-13 Thread Glen Mazza
Hello,

Newbie question--For a FOP report, instead of using a
dashed underline for a column heading, I'd like to see
a solid line.  What is the usual way of doing
this--use a leader?  Set a solid after line border
for the table cell that the header is in?

For example:

Name  City   
  ---
John  Baltimore
Bob   Washington
Mark  Richmond

I would like the hyphens under the column names to be
a solid line instead.

Thanks,
Glen


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



Re: monitoring embedded FOP

2004-04-11 Thread Glen Mazza
Note that current production 0.20.5 still uses Avalon logging--the 
example on our web page is for commons-logging which is for the upcoming 
version.  To use Avalon-logging,
reference the left side of the link below.  (Right side is newer 
commons-logging.)

http://cvs.apache.org/viewcvs.cgi/xml-fop/src/documentation/content/xdocs/embedding.xml?r1=1.18r2=1.19diff_format=h
I'll try to update the page to indicate as much.
Glen
Andreas L. Delmelle wrote:
-Original Message-
From: Johannes Stuermer [mailto:[EMAIL PROTECTED]
   

 

Occasionally I'm running into a situation where FOP gets locked 
in an endless loop. Although this is extremely rare and can be fixed 
by adjusting the xsl-fo file, it would be nice to be able to catch 
these situations at runtime. 
I'm looking for a way to monitor the rendering progress. 
   

Hi,
How about logging?
check: http://xml.apache.org/fop/embedding.html#basic-logging
Hope this helps!
Cheers,
Andreas
-
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]


Want to convert a standard form to XSL

2004-04-07 Thread Glen Mazza
Hello,

Sorry to give such a traumatizing example, but here is
the U.S. IRS 1040A income tax form:

http://www.irs.gov/pub/irs-pdf/f1040a.pdf

Question:  If I wanted to convert a to-be-filled-out
PDF form available on the web (such as this one) to an
XSL that can be generated by FOP or a commercial
implementation (with user-added text printed on it),
what is the process?*

a) Would I have to manually declare every line, every
checkbox, plus all the background text of the form
within the FO, in addition to what the user may enter
in?  (I hope not!)

b) Can I somehow make a BMP or JPEG of the generic
form, and just specify it as a background to the XSL. 
Then, I would just need to hardcode the locations of
where the user-entered text will go.  (I hope so!)

If (b), what format does one normally save the
background PDF document as?  Also, what fo:object do I
use to specify this graphic as the background?

Thanks,
Glen

*My goal is not to convert the 1040A form itself--I'm
just using this form as an example.


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



Re: Want to convert a standard form to XSL

2004-04-07 Thread Glen Mazza
Excellent.  Thanks!

Glen

--- Jeremias Maerki [EMAIL PROTECTED] wrote:
 to a): You don't have to.
 to b): I wouldn't (quality and PDF size!). Instead
 create a stylesheet
 (for XSL-FO, SVG or both) that places the values in
 the right places (on
 a white page). Then use a PDF-postprocessor to
 overlay your generated
 PDF with the form template, page per page. I've done
 that once using PJ.
 Worked fine. iText should be able to do that, too.
 HTH.
 

http://xml.apache.org/fop/resources.html#products-pdf
 
 
 On 07.04.2004 01:24:08 Glen Mazza wrote:
  Hello,
  
  Sorry to give such a traumatizing example, but
 here is
  the U.S. IRS 1040A income tax form:
  
  http://www.irs.gov/pub/irs-pdf/f1040a.pdf
  
  Question:  If I wanted to convert a
 to-be-filled-out
  PDF form available on the web (such as this one)
 to an
  XSL that can be generated by FOP or a commercial
  implementation (with user-added text printed on
 it),
  what is the process?*
  
  a) Would I have to manually declare every line,
 every
  checkbox, plus all the background text of the form
  within the FO, in addition to what the user may
 enter
  in?  (I hope not!)
  
  b) Can I somehow make a BMP or JPEG of the generic
  form, and just specify it as a background to the
 XSL. 
  Then, I would just need to hardcode the locations
 of
  where the user-entered text will go.  (I hope so!)
  
  If (b), what format does one normally save the
  background PDF document as?  Also, what fo:object
 do I
  use to specify this graphic as the background?
  
  Thanks,
  Glen
  
  *My goal is not to convert the 1040A form
 itself--I'm
  just using this form as an example.
 
 -- 
 Jeremias Maerki [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: hide logging message

2004-04-05 Thread Glen Mazza
The new version will not require you to specifically
code for a logger; it quietly gives you a Commons
Logging SimpleLog by default.

Also, in the maintenance/production branch, we put in
a patch to make the logger not set error not appear,
it just uses an Avalon Console Logger quietly if not
specified.  However, for the release version, you
still need to explicitly set a logger or else you get
the warning message.

Glen

--- Chris Bowditch [EMAIL PROTECTED] wrote:
 Teator, Michael wrote:
 
  What if you just wanted to reduce the logging to
 errors?
 
 snip/
 
  You need to do something like:
  
 
logger=new ConsoleLogger(LEVEL_ERROR);
MessageHandler.setScreenLogger(logger);
m_fopDriver.setLogger(logger);
 
 This will send only error messages to the Console.
 
 Chris
 
 
 

-
 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: url port 8080

2004-03-26 Thread Glen Mazza
Now I understand your question!  The answer:  No, you have to specify 
the port number.

If you look at the http spec[1], and search on 80, you'll see a few 
places where it specifies that if you do *not* specify the port number, 
it defaults/must be taken as 80 for http.

Glen
[1] http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc2616.html
Benjohn P. Villedo schrieb:
thanks mike for the suggestion i am a bit worried though since 
apache httpd uses port 80 hence moving tomcat to port 80 might 
cause some problems... am still finding other means... all the best!!!

pal,
benjohn
 


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


Re: url port 8080

2004-03-22 Thread Glen Mazza
--- Benjohn P. Villedo [EMAIL PROTECTED] wrote:
 
 is there a means by which i could access those web
 applications 
 without port 8080??
 

I'm not sure--it's been a while since I've personally
worked with Tomcat.  The tomcat-user list is probably
the best resource for you--this also looks like a
(very) FAQ question--that of changing the port the
servlet container listens to--so you may want to check
the Tomcat website as well.


 
 inside server.xml of tomcat i placed the context
 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
 !-- Define Cocoon Context --
 Context path=/cocoon docBase=/var/www/cocoon
 debug=3
   reloadable=true crossContext=true
 Logger
 className=org.apache.catalina.logger.FileLogger
   prefix=localhost_cocoon_log. suffix=.txt
   timestamp=true/
 /Context
 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
 
 mod_jk.conf file added the line
 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
 JkMount /cocoon/* worker1
 ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
 
 but still doesn't work... any hint or tip would be
 very much 
 appreciated... all the best!!!
 

The Cocoon-user list may also be of help here.  But
I'm missing something--I don't see how any of this
could possibly change your servlet port (parameters
that use numeric attributes would appear to be more
plausible, no?  ;)

Glen


 pal,
 benjohn
 


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



Re: using multiple page sequences

2004-03-12 Thread Glen Mazza
Fleetwood, Brett (SSABSA) schrieb:
I read that using multiple page sequences in the XSL and
therefore in the FO means that fop will release some memory. 

The ML archives seem to indicate that, but I'm unsure how significant 
the savings would be.  It might not be worth the effort.  I'm currently 
looking in this area for our newer version (1.0) and hopefully 
band-aids such as these will not be necessary in the future.

Is there any solutions I can use that uses
multiple page sequences or possible change the xml structure, if not is
there another FOP transformer that isn't as memory intensive. 

RenderX and AntennaHouse are the main commercial implementations.
			
fo:layout-master-set
	fo:simple-page-master master-name=A4
	/fo:simple-page-master		
/fo:layout-master-set
		
fo:page-sequence master-reference=contents
 

Hmmm...I guess I'm missing something here--doesn't the master reference 
(contents) need to refer to the master-name of the simple-page-master 
(A4)?

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


Re: using multiple page sequences

2004-03-12 Thread Glen Mazza
Yes, 1.0 is far away, but we keep working on it.  Every day it's getting 
better formed.

Glen
Cheers Glen, Are you on the FOP dev team? Is 1.0 far away? I'll look into
these other implementations. You are right the XSL won't work, I was
originally playing around with page-sequence-master master-name =
contents but removed it as it wasn't useful, and obviously forgot to
change the rest. Thanks again.
bF.
 


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


Re: FOP 0.20.5 and Verio VPS

2004-02-27 Thread Glen Mazza
You'll need to add the Avalon jar (as well as the
others in the \lib directory of the distribution) to
your classpath.

I believe, however, FOP requires a minimum 1.2 JDK so
even that may not help.

Glen

--- Daniel Kuebler [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm trying to run FOP 0.20.5 on a Verio FreeBSD
 (4.4-RELEASE)
 Virtual-Private-Server. On this server is the
 relatively old 1.1.8 jdk
 installed. I already found the hint to add the
 /x/y/z/classes.zip to the
 classpath to fix the problem with cannot find class
 java/lang/Thread. 
 
 So far so good, but when i try to start fop.sh with
 or without any
 parameters, i'll always get the following message :
 
 
 java.lang.NoClassDefFoundError:
 org/apache/avalon/framework/logger/ConsoleLogger
 at

org.apache.fop.apps.CommandLineOptions.init(CommandLineOptions.java:125)
 at org.apache.fop.apps.Fop.main(Fop.java:60)
 
 
 Does anyone have an idea how to solve this problem ?
 
 Many thanks in advance !
 
 Regards,
 Dany
 

-
 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: running FOP -xml 1.xml -xsl 2.xsl -print programmatically

2004-02-16 Thread Glen Mazza
Two main options are:
1.  Use the Apache Ant Task:  (if you haven't yet learned Ant, it is 
time very well spent to do so):
http://xml.apache.org/fop/anttask.html

2.  Or, for a very simple Java program, click the This example link here:
http://xml.apache.org/fop/embedding.html#ExampleXML2PDF
I suspect, given your requirements, Apache Ant will prove the more 
efficient for you.

Glen
[EMAIL PROTECTED] wrote:
Hi all, in order to do a batch print of pdf files that
are on my customers local pc, I would like to run
the equivalent of
FOP -xml 1.xml -xsl 2.xsl -print
programmatically, is there another way than resorting to a 
Runtime.getRuntime().exec(..)

this is what I am thinking I have to do, but would prefer to
do this from java without using runtime.exec
=
String printPdfCmd = FOP -xml 1.xml -xsl 2.xsl -print;
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec(printPdfCmd);

-
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: running FOP -xml 1.xml -xsl 2.xsl -print programmatically

2004-02-16 Thread Glen Mazza
Andreas L. Delmelle wrote:
Say, I was about to point Robert there too, but first wanted to check a bit
more on how he would have to adapt the example for Print output...
Do you know off the top of your head (correct expression?) whether he could
just replace the setRenderer()? (I was under the impression that Print  AWT
were the two exceptions in this case; might be mistaken)
TIA
Andreas
 

I didn't see that as an option, because he wanted the PDF output 
option.  Print uses AWT and has different results.

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


Re: request for java code snippet to XML- XSL-FO - PDF

2004-02-06 Thread Glen Mazza
Hello Robert,

You can find a full example in our current release:

{fop directory}\examples\
embedding\java\embedding\ExampleXML2PDF.java.

To compile and run this example, it would be best to
have Apache Ant on your machine.  The build.xml file
is at  {fop directory}\examples\embedding.  From that
directory, just type ant to compile the Java file,
and ant example3 to run the above Java application.

Thanks,
Glen


 On Wed, 2004-02-04 at 15:57,
 [EMAIL PROTECTED] wrote:
  
  can someone send a java code snippet on how to do
 this 
  from within a java app
 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: fork ant fop task with its own heap?

2004-02-06 Thread Glen Mazza
Something like this may be of help--this is what I do
for running FOP within the JEdit IDE:

target name=run
   java classname=MyAppWithFOPEmbedded fork=true
  classpath refid=.classpath /
   /java
/target

Glen

--- J.Pietschmann [EMAIL PROTECTED] wrote:
 S. Alan Ezust wrote:
 
  Is it possible to fork an ANT FOP task and give it
 a heap size of its own? I 
  can't find a fork= attribute in taskdef,
 target or fop. Do I put this 
  somewhere else?
 
 You'll probably want to look at the java task.
 Check
 the Ant docs for details, and you likely get more
 hints
 on the Ant user list.
 
 J.Pietschmann
 
 

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


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Re: fop ant task: change working directory?

2004-02-02 Thread Glen Mazza
The basedir attribute for our FOP task has not been
programmed yet, I believe.

Could you check to see if the example at the bottom of
http://xml.apache.org/fop/anttask.html (i.e., where
you use fileset) is of help to you?  Let us know.

Thanks,
Glen

--- S. Alan Ezust [EMAIL PROTECTED]
wrote:
 I'm not sure if this is an ant question or a fop
 question, but I was trying to 
 use the fop custom task, and I want to set the
 current working directory that 
 fop runs from. How does one do that with fop ant
 task? Do I set a property 
 somewhere? 
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Re: xhtml to pdf

2004-02-02 Thread Glen Mazza
--- Chris Bowditch [EMAIL PROTECTED] wrote:
 And since antenna house's formatter supports
 more features youll 
 get errors if you try to use this stylesheet. I
 suggest you take this 
 stylesheet and refine it to work with FOP.
 

Or take FOP and refine it to work with the stylesheet.
 Patches always welcome...   ;)

Glen


 Chris
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



RE: Change-bar with FOP

2004-01-14 Thread Glen Mazza
--- John Austin [EMAIL PROTECTED] wrote:
 
 And then I thought 'what would Jimmy
 BuffetNorman Walsh
 do' ?
 

Indeed, as a matter of fact, from Nashville,
Newfoundland *is* where it's 5 o'clock!  ;)  

Anyway, just wish to point out that change bars are
expected to be added to the 1.1 spec:

fo:change-bar-begin and fo:change-bar-end

http://www.w3.org/TR/2003/WD-xsl11-20031217/
http://www.w3.org/TR/2003/WD-xsl11-req-20031217/

Glen


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



RE: FOP being very slow.

2004-01-13 Thread Glen Mazza
Yes, logging appears to be overdone within FOP, even
if a NULL logger object is chosen, a lot of function
calls are still being made.  I haven't researched
Xalan much yet, but their system may be a good guide
on the amount of logging appropriate for our system.

Glen

--- John Austin [EMAIL PROTECTED] wrote:
 
 I also pointed out that LOGGING is a performance
 hog. This is
 mentioned on the Cocoon list from time to time. In
 one case
 I got a 20% improvement for an 80 page PDF.
 


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: gain memory

2003-12-10 Thread Glen Mazza
Please use the JAXP standard instead of the
XSLTInputHandler wrapper.  Look at the
ExampleXML2PDF.java in:

http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/

Glen

--- Philippe PITHON [EMAIL PROTECTED] wrote:
 Hello !
 
  
 
 I would like to improve the code below 
 
  
 
  
 
 2 questions :
 
 - java says to me that input.getParser() 
 input.getInputSource() are
 deprecated
 
 what is necessary to use in the place ?
 
  
 
 - to gain memory, are my files well closed? 
 
  
 
 ---
 
  
 
 XSLTInputHandler input = new XSLTInputHandler(new
 File(xml),new
 File(xsl));
 
 ByteArrayOutputStream out = new
 ByteArrayOutputStream();
 
 Driver driver = new Driver();
 
 driver.setLogger(loggerFop);
 
 driver.setRenderer(Driver.RENDER_PDF);
 
 driver.setOutputStream(out);
 

driver.render(input.getParser(),input.getInputSource());
 
 byte[] content = out.toByteArray();
 
 FileOutputStream fos = new FileOutputStream(pdf);
 
 fos.write(content);
 
 


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



RE: Japanese fonts do not appear in desired weights

2003-12-08 Thread Glen Mazza
--- Graham Hannington [EMAIL PROTECTED] wrote:
 The home page also offers instructions that are
 probably perfectly readable
 in Japanese, or to a more experienced FOP user, but
 I have not been able to
 get anywhere with this.
 
...
 I'd really like to get JPFOP working, not just for
 the multiple weight
 fonts, but also because it appears to fix the FOP
 line break issue in
 Japanese (where lines can sometimes begin with a
 punctuation mark).
 
 Any advice would be greatly appreciated.
 
 Regards,
 Graham Hannington
 

A search on JPFOP and its author gave a
Japanese-language XML ML--
http://www2.xml.gr.jp/1ml_logmain.html?MLID=jaxml-dev,

which may be of help.  The author appears very active
on that list and may be able to help you.  (I'm unsure
how to subscribe to it, however.)

Glen


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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



Re: FOP Performance

2003-11-18 Thread Glen Mazza
--- John Austin [EMAIL PROTECTED] wrote:
 
 If anyone would like to see JPEG's of a couple of
 related screen dumps,
 I could post them to the list or send under separate
 cover.
 

Please do!

 
 [Anyone else watching John Madden and crew tonight
 ?]
 -- 

Well, the Buffalo Bills are the official NFL team of
the Apache FOP project, but I guess we can root for
the Steelers tonight...  ;)

Glen

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: schedule for next release (was: Properties redesigned in CVS Head)

2003-11-18 Thread Glen Mazza
--- Jeremias Maerki [EMAIL PROTECTED] wrote:
 Next release will be when the redesign is able to
 cover at least the
 same functionality as 0.20.5 (I think that's what we
 agreed). 

Yes, a very nice goal--I didn't think of it that
way--I might further reduce it though as the same
functionality as 0.20.5 for just certain of the
renderers (RTF and PDF of course, perhaps also AWT/AWT
Print.)  The bonus with getting AWT done I believe is
that Oleg said he can merge his TIFF renderer once
that's done.

Glen


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



  1   2   >