XSLT from the Command Line in Java 5

2004-10-29 Thread Chris Pratt
Ever since I installed JDK 1.5 I havent been able to run the XSLT command line utility to check my FO. Did something change? The command Im executing is: java org.apache.xalan.xslt.Process in xmlfile -xsl xslfile -out fofile Thanks. (*Chris*)

Re: [work] Re: Avery labels

2004-09-24 Thread Chris Pratt
Unless it's imperitive that the data flows horizontally, I'd look at using the column support that's built into FOP and forget trying to build table rows. (*Chris*) Original Message --- On Sep 24, 2004, at 9:13 AM, Frank Daly wrote: Many thanks for your thoughtful reply

RE: problem with XSLTInputHandler(String,String) constructor

2004-09-17 Thread Chris Pratt
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

RE: FOP opening only 1 PDF when more than one is rendered?

2004-09-16 Thread Chris Pratt
As far as I know, that cant be done. One request, one reply, thats all you get. Have you ever seen this work on another web site? If so, take a look at how they do it. (*Chris*) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 9:17 pm To:

RE: Create special Last Page

2004-09-01 Thread Chris Pratt
If all you want to do is have some content flowed at the end of the document, just put it in your main template after the last apply-templates and it will end up on the last page. If you want a special footer (or header I think), use Britta's work-around. (*Chris*) -Original Message-

RE: Count with conditions

2004-09-01 Thread Chris Pratt
How about adding the counts together? i.e. count(something = run) + count(something1 = ok) (*Chris*) -Original Message- From: Sven Waibel [mailto:[EMAIL PROTECTED] Sent: Monday, August 30, 2004 4:02 am To: [EMAIL PROTECTED] Subject: Count with conditions Hello, i'd like to do a

Re: Problems with tables and templates

2004-08-27 Thread Chris Pratt
in pdf. Or am i on the wrong way? In the meantime i changed my xsl script completely, so it works in a completely other way. It's rather a problem of xsl. Thanks Sven Chris Pratt wrote: How about something like this: xsl:template match=theme table border=0 tr td colspan

RE: Problems with tables and templates

2004-08-26 Thread Chris Pratt
How about something like this: xsl:template match=theme table border=0 tr td colspan=3xsl:value-of select=name//td /tr xsl:apply-templates select=test/ /table /xsl:template xsl:template match=test tr tdxsl:apply-templates select=name//td tdxsl:apply-templates

RE: problem with Image loading with Servlet

2004-08-23 Thread Chris Pratt
Try: fo:external-graphics src=url(http://localhost:7001/crisp/servlet/BinaryServlet/QueryId=55100amp;SequenceNo=1amp;MimeType=jpeg) (*Chris*) Original Message --- Hi... Can anyone help me? I m trying to load the image (jpeg) in pdf using dynamic url of servlet.But

RE: Question about fo:leader

2004-08-23 Thread Chris Pratt
Looks like what you want is a two column table. (*Chris*) Original Message --- 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. Here is currently what I

RE: problem with Image loading with Servlet

2004-08-23 Thread Chris Pratt
for the document. Also make sure the servlet is returning the proper content type. (*Chris*) Original Message --- Hi Chris, Thanks for your reply. but i tried this as well. it didnt work.. heli --- Chris Pratt [EMAIL PROTECTED] wrote: Try: fo:external-graphics src=url(http

Re: image not included in my pdf under web-project

2004-08-18 Thread Chris Pratt
Or you can set the base directory for FOP to be the root of your Servlet Context by calling: Configuration.put(baseDir,getServletContext().getRealPath(/)); I use this code in the Servlet.init() of my controller since it only needs to be called once. (*Chris*) Original Message

RE: How to tell Driver to open acrobat in a new IE?

2004-08-12 Thread Chris Pratt
The Driver has no control over where the browser shows the output. What you have to do is open a new window and have it request the PDF file. Adding target=_new to the link that creates the pdf is probably all that you need. (*Chris*) Original Message --- I am parsing my

RE: PDF-PS-PDF with EPS

2004-07-11 Thread Chris Pratt
How about just delivering a link to FreeHEP and requiring the end user to download FreeHEP if they need that support and are willing to agree to the license? (*Chris*) -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Saturday, July 10, 2004 2:34 pm To: [EMAIL

RE: RE: Development Version: xml xsl - fo - rtf

2004-06-16 Thread Chris Pratt
Then again, the jfor tool (http://www.jfor.org) can be used by itself to translate XSL-FO to RTF, so if that's all you need, try using jfor without FOP at least until the Dev branch is release quality. (*Chris*) Original Message --- Clay Leeds wrote: RTF This is

RE: Hello and PDF 2 FOP

2004-05-13 Thread Chris Pratt
You may also want to look into iText (http://www.lowagie.com/iText). I believe it can handle PDF Forms. (*Chris*) -Original Message- From: Andreas L. Delmelle [mailto:[EMAIL PROTECTED] Sent: Thursday, May 13, 2004 12:12 pm To: [EMAIL PROTECTED] Subject: RE: Hello and PDF 2 FOP

RE: Fit data into a PDF page

2004-05-11 Thread Chris Pratt
One way that FOP could help in situations like this, without hacking or extending the XSL-FO Spec, might be to allow registration of event callback handlers for specific events with the Driver. The idea, at least in this case, would be to register a PaginationHandler that would be called whenever

RE: embeded svg with svg:image problem

2004-05-07 Thread Chris Pratt
You have to define the xlink namespace or the parser doesnt know what that namespace refers to.  You define it just like you defined the svg namespace, so your svg:svg line should probably be: svg:svg width=3.1cm height=3.6cm xmlns:svg=http://www.w3.org/2000/svg

RE: problem with two columns document and fo:table-row keep-with-next=always

2004-05-06 Thread Chris Pratt
Are you trying to keep everything in the table-row together, or keep the contents of the table-row from being broken between itself and the next table-row? If you want everything in the table-row together in the same column, use keep-together=always, not keep-with-next. Remember, you're acting

RE: Re: only display the text in XSL file but does not display the image

2004-04-09 Thread Chris Pratt
Actualy Jeremias I think you meant: xsl:param name=image select='parameter not set'/ (*Chris*) Original Message --- Ah, then add the following near the top of your stylesheet (before the first xsl:template): xsl:variable name=image select='parameter not set'/ On

Re: Determine Pagebreaks?

2004-02-10 Thread Chris Pratt
I'm not sure that this will work (I'm making it up as I go) but couldn't you use the grouping trick with the page number to test when the page number changes between elements? (*Chris*) - Original Message - From: Andreas L. Delmelle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: PDF Forms

2004-02-04 Thread Chris Pratt
J. Pietschmann wrote: Chris Pratt wrote: I'm using FOP 0.20.5 and I've coded myself into a corner. We generate some rather large PDF files using fop (lists of every eye doctor in California for example), which can be very processor and very memory intensive. To limit the overhead I

Re: error = id already exists

2004-02-04 Thread Chris Pratt
You probably have to id=value with the same value. Remember, id values must be unique across the whole document, not just the element they are used on. (*Chris*) - Original Message - From: Mark Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 11:32

Re: PDF Forms

2004-02-04 Thread Chris Pratt
J.Pietschmann wrote: Doing XForms is ambitious, start with a subset (a *small* subset). Yet, I urge you to track down the performance problems with your FO first. I usually get 2 pages per second on a Pentium 166 and an old SDK, and up to 15 pages per second on a more modern machine. Some

PDF Forms

2004-02-03 Thread Chris Pratt
I'm using FOP 0.20.5 and I've coded myself into a corner. We generate some rather large PDF files using fop (lists of every eye doctor in California for example), which can be very processor and very memory intensive. To limit the overhead I wrote a caching scheme that caches the complete PDF

Re: PDF Forms

2004-02-03 Thread Chris Pratt
such a massive difference in the time it takes to produce large documents? Any help would be massively appreciated. (*Chris*) -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 11:34 AM To: [EMAIL PROTECTED] Subject: PDF Forms I'm

Re: When is the FOP 1.0 release scheduled for?

2004-01-24 Thread Chris Pratt
No. 0.20.5 was the last release from the fop-0_20_2-maintain branch. There was a patch afterwards for releasing memory allocated by the table layout to this branch after the release. J.Pietschmann I don't see the patch on the web site. Where can I find it? (*Chris*)

Re: Servlet File Download dialog problem (IE6,Adobe 6.0)

2003-11-30 Thread Chris Pratt
Make sure that youset the content type to "application/pdf". (*Chris*) - Original Message - From: Jason Smith To: [EMAIL PROTECTED] Sent: Saturday, November 29, 2003 3:37 PM Subject: Servlet File Download dialog problem (IE6,Adobe 6.0) I'm new to FOP. I'm

Re: special characters

2003-11-25 Thread Chris Pratt
by 'already XSL-FO'? -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 1:27 PM To: [EMAIL PROTECTED] Subject: Re: special characters Even better than converting it to a stream, you can use the org.jdom.transform.JDOMSource as the XML Source

Markers and Extension Functions

2003-11-05 Thread Chris Pratt
I currently have a callable template that converts state abbreviations to their names. We're trying to use an extension function to replace this functionality, and I'm having a hard time figuring out how to call the function and pass the value of a marker. The call appears twice in the

Moving content to the last column

2003-10-27 Thread Chris Pratt
I have a multi-columnar display, where I need some content to end up in the last column on the page. What would be perfect would be the ability to specify a fo:block break-before="last-column", but that doesn't appear to be a valid value. Alternatively a method in XPath to specify xsl:if