Re: SHY characters in user mode

2007-01-15 Thread Manuel Mall
On Tuesday 16 January 2007 00:02, DA Shetland wrote: > Sorry - I am using 0.93 - will try the trunk and get back. > -d- > SHY support in fop-trunk is a very new addition and any testing and feedback would be much appreciated. It should work as you described, that is SHY being suppressed everywher

Re: SHY characters in user mode

2007-01-15 Thread Abel Braaksma
J.Pietschmann wrote: Abel Braaksma wrote: In the case you are using XSLT 2 (and in the event you haven't applied a filter yet), here is an easy solution you can use for all your templates: I was under the impression that output maps are only applied if the transformation result is serializ

Re: SHY characters in user mode

2007-01-15 Thread J.Pietschmann
Abel Braaksma wrote: In the case you are using XSLT 2 (and in the event you haven't applied a filter yet), here is an easy solution you can use for all your templates: I was under the impression that output maps are only applied if the transformation result is serialized, which is not the ca

Re: Running FOP as a Java Stored Procedure on Oracle

2007-01-15 Thread Glen Mazza
Perhaps this would be a good skeleton for what you want to do: http://www.renderx.com/support/oracle.html Of course, the Java API between FOP and RenderX are different and will need changing, etc. But the basic principle should be the same. HTH, Glen Luciano Belotto wrote: I use Apache FOP

Re: java.lang.IndexOutOfBoundsException in ColumnSetup.getXOffset()

2007-01-15 Thread Andreas L Delmelle
On Jan 15, 2007, at 17:15, Michael Bruns wrote: Hi, Hmmm...I would really like to provide you some examples, but I couldn't figure out *what* exactly causes the crashes, yet. My best guess is that it's a table with too many cells in one row (more than there are columns)... Do your tabl

Re: SHY characters in user mode

2007-01-15 Thread DA Shetland
Well, I *should* be up-shifted to XSLT-2 by now (my "cookbook" certainly has) - this might be just the final push I need :-) Your solution really puts the patch exactly where it belongs, suitable for tracking ongoing fop-work. Thanks again. -Dave Shetland Abel Braaksma wrote: DA Shetland wrot

Re: java.lang.IndexOutOfBoundsException in ColumnSetup.getXOffset()

2007-01-15 Thread J.Pietschmann
Michael Bruns wrote: Hmmm...I would really like to provide you some examples, but I couldn't figure out *what* exactly causes the crashes, yet. I'm using quite large XSL-files to transform XML into PDF. The XML is generated dynamically, and with some XML the generation crashes, and with other XM

Re: SHY characters in user mode

2007-01-15 Thread Abel Braaksma
DA Shetland wrote: My saying that strings have to be de-SHYed up front was as much as saying that I don't trust the presentation layer to do what it needs to do for all categories of control characters, combining characters, etc. of which SHY is one. So I will pre-filter and watch for news.

Re: SHY characters in user mode

2007-01-15 Thread DA Shetland
Abel Braaksma wrote: DA Shetland wrote: In fact SHY is the character that is not a character - it is a one character size processing instruction that happens to enjoy a code point in character tables, but strictly speaking, it doesn't even need a glyph (we have a code point for the hyphen).

Re: java.lang.IndexOutOfBoundsException in ColumnSetup.getXOffset()

2007-01-15 Thread Michael Bruns
Hi Jeremias, On 15.01.2007 16:57, Jeremias Maerki wrote: > Looks like a regression we didn't catch. Please give us a minimal FO > file (not XSLT!) so we can reproduce. Thanks. Hmmm...I would really like to provide you some examples, but I couldn't figure out *what* exactly causes the crashes, yet

Re: Pagebreak

2007-01-15 Thread Abel Braaksma
J.Pietschmann wrote: There are two possibilities: 1. Use , or whatever suits you. 2. Use or something similar at the necessary places, which will apply templates to element nodes only and ignore all text nodes. And a third: use inside your match, like this (puts '1' to the result tree, whi

Re: java.lang.IndexOutOfBoundsException in ColumnSetup.getXOffset()

2007-01-15 Thread Jeremias Maerki
Looks like a regression we didn't catch. Please give us a minimal FO file (not XSLT!) so we can reproduce. Thanks. On 15.01.2007 16:13:17 Michael Bruns wrote: > Hi all, > > after updating to FOP 0.93 (from 0.92) some calls of > javax.xml.transform.Transformer.transform() cause the following excep

Re: Pagebreak

2007-01-15 Thread J.Pietschmann
paul wrote: somehow it doesn't work for me :( I suspect I have an xpath-problem, but can't figure out what would be wrong... my template starts like this: ... it works just fine, but always inserts a blank page at the beginning of the document. I don't understand this. It looks lik

Re: Pagebreak

2007-01-15 Thread Abel Braaksma
paul wrote: somehow it doesn't work for me :( I suspect I have an xpath-problem, but can't figure out what would be wrong... my template starts like this: ... it works just fine, but always inserts a blank page at the beginning of the document. I don't understand this. Can I only cal

java.lang.IndexOutOfBoundsException in ColumnSetup.getXOffset()

2007-01-15 Thread Michael Bruns
Hi all, after updating to FOP 0.93 (from 0.92) some calls of javax.xml.transform.Transformer.transform() cause the following exception: * java.lang.IndexOutOfBoundsException: Index: 5, Size: 5 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayLis

Re: SHY characters in user mode

2007-01-15 Thread DA Shetland
Oh, yes, we know about ad-hoc filters :-) Guess that is what I'll do for now, then, instead of messing with the trunk version. Just a suggestion - hyphenation is such a huge subject - maybe there could be an early version that just does the de-SHY function really well. No response needed - just

Re: SHY characters in user mode

2007-01-15 Thread Abel Braaksma
DA Shetland wrote: In fact SHY is the character that is not a character - it is a one character size processing instruction that happens to enjoy a code point in character tables, but strictly speaking, it doesn't even need a glyph (we have a code point for the hyphen). There are very many

Re: SHY characters in user mode

2007-01-15 Thread J.Pietschmann
DA Shetland wrote: Is there some way to explicitly suppress the SHY? FOP currently doesn't do this for you, but you can always try to preprocess the data before it ets into FOP. Deleting soft hyphens should be reasonably easy. The SHY should vanish automatically once the implementation in FOP

Re: SHY characters in user mode

2007-01-15 Thread DA Shetland
Sorry - I am using 0.93 - will try the trunk and get back. -d- Jeremias Maerki wrote: You should start by saying which FOP version you are using. For the recent SHY stuff to work you need the latest code from the Subversion repository (FOP Trunk). It is not available in 0.93. On 15.01.2007 15:4

Re: SHY characters in user mode

2007-01-15 Thread Jeremias Maerki
You should start by saying which FOP version you are using. For the recent SHY stuff to work you need the latest code from the Subversion repository (FOP Trunk). It is not available in 0.93. On 15.01.2007 15:47:53 DA Shetland wrote: > To fop folks interested in hyphens - or not. > > I have been f

SHY characters in user mode

2007-01-15 Thread DA Shetland
To fop folks interested in hyphens - or not. I have been following with interest the development of ideas in fop-dev for hyphenation implementation, and have started several times to post this to that list, but my immediate issue is at the user level. In a data set for which I have recently b

Running FOP as a Java Stored Procedure on Oracle

2007-01-15 Thread Luciano Belotto
I use Apache FOP to turn xml into PDF using an xsl. I wish to have this functionality run on the Oracle database as a Java stored procedure. What I want to ask is that if anyone has done this before, and can pass along some info or where I could find information on doing this. I've searched ma

Re: Blank PDF file

2007-01-15 Thread Xavier Ottolini
Hi, The problem is solved. There was some added parameters in OpenCms to set the Title and the Content-type. I removed them and now it works :-) Thank you Jeremias and Chris. You helped me to know that the problem was not in FOP but in the JSP file. Best regards, Xavier Xavier Ottolini a

Re: Pagebreak

2007-01-15 Thread paul
somehow it doesn't work for me :( I suspect I have an xpath-problem, but can't figure out what would be wrong... my template starts like this: ... it works just fine, but always inserts a blank page at the beginning of the document. I don't understand this. Can I only call for position