Help with Fop - FO to PDF, Accent problem
First of all, please, let me know if it is'nt the right list to make this question. I explain my process... Y convert some html files to FO with HTML2FO. Like that, I generate FO templates. After that, I replace some text in these templates and I use FOP to convert from these FO templates to PDF files. Under windows there is no problem and all works fine. But under linux (debian woody), accents (á, é, ...), are displayed as ? (both, original accents and these that come from replacement of text). I've considered some causes with no success. There are many things involved. Could be a problem on the system Locale in my linux? A file encoding problem? Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help about FOP 1.0 DR1
On Wed, Jul 20, 2005 at 09:21:32PM +0200, Jeremias Maerki wrote: On 20.07.2005 17:26:04 David Xicota Adell wrote: Basically we need the widow-orphan lines features. Ok, this should already work in the trunk code. And some advanced line treatment such: - Do not end X number of lines with the same word. - Do not start X number of lines with the same word. - Do not end lines with some characters. Ok, that is indeed advanced and, as far as I can see, not in the specification. If you need something like that you will most probably have to implement it yourself. The new line breaking code is entirely based on Donald Knuth's boxes, glue and penalties. It should be possible to modify the algorithm such that it does the above. Each box has access to the text that it contains, and it has pointers to the line endings of the preceding lines. That would be an interesting exercise. But it is entirely out of the scope of regular FOP. Regards, Simon -- Simon Pepping home page: http://www.leverkruid.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem when link has contentid
Hello, I have an XSLT and an XML file, which I use to generate a PDF. Both those files work fine except for one circumstance. This is an example of how I have data in the XML. Item textSome text here /text a href=http://www.example.com/fop/test.jsp?contentID=1234;please click here/a text more text here./text /Item And this is the data in the XSL: !-- === -- !-- child element: a-- !-- === -- xsl:template match=a fo:basic-link color=blue external-destination=[EMAIL PROTECTED] fo:inlinexsl:value-of select=text()//fo:inline /fo:basic-link /xsl:template When the link contains contentID the PDF creation generates an error: [ERROR] The reference to entity contentID must end with the ';' delimiter. org.apache.fop.apps.FOPException: The reference to entity contentID must end with the ';' Does anyone know how I can make the contentID be interpreted as ordinary text and not as a reference to entity? Thanks in advance, Fabrizio. _ Chegou o que faltava: MSN Acesso Grátis. Instale Já! http://www.msn.com.br/discador - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem when link has contentid
Hi, Fabrizio, Try xsl:value-of select=./ rather than text(). The two are very similar in most cases, but . tends to be more reliable because it picks up the text value of the entire node. Also, it's more standard XSLT. Jay Bryant Bryant Communication Services - Original Message - From: Fabrizio Caldas [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org Sent: Thursday, July 21, 2005 4:28 PM Subject: Problem when link has contentid Hello, I have an XSLT and an XML file, which I use to generate a PDF. Both those files work fine except for one circumstance. This is an example of how I have data in the XML. Item textSome text here /text a href=http://www.example.com/fop/test.jsp?contentID=1234;please click here/a text more text here./text /Item And this is the data in the XSL: !-- === -- !-- child element: a-- !-- === -- xsl:template match=a fo:basic-link color=blue external-destination=[EMAIL PROTECTED] fo:inlinexsl:value-of select=text()//fo:inline /fo:basic-link /xsl:template When the link contains contentID the PDF creation generates an error: [ERROR] The reference to entity contentID must end with the ';' delimiter. org.apache.fop.apps.FOPException: The reference to entity contentID must end with the ';' Does anyone know how I can make the contentID be interpreted as ordinary text and not as a reference to entity? Thanks in advance, Fabrizio. _ Chegou o que faltava: MSN Acesso Grátis. Instale Já! http://www.msn.com.br/discador - 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]