You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Bogusław Fries <bf...@dpd.com.pl> on 2012/04/16 15:53:04 UTC
problem with the soft hyphen
We have the following stylesheet:
<xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="simple-page" margin-left="1.0in" margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
page-width="8.5in" page-height="11in">
<fo:region-body />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple-page" format="1" initial-page-number="1">
<fo:flow flow-name="xsl-region-body">
<fo:block>­</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
When I am using FOP ver 1.0, it crash. Of course, I could simply do not use this block in my stylesheet but, the same crash happens when this character appears in the input data.
Is any workaround for this?
Best regards.
________
Bogusław Fries
Starszy programista
DPD Polska Sp. z o.o.
02-274 Warszawa, ul. Mineralna 15
mobile: 502 777 254
bfries@dpd.com.pl <BL...@dpd.com.pl>
www.dpd.com.pl <BLOCKED::http://www.dpd.com.pl/>
DPD Polska Sp. z o.o., 02-274 Warszawa, ul. Mineralna 15
Spółka wpisana do rejestru przedsiębiorców w Sądzie Rejonowym dla m. st. Warszawy, XIII Wydział Gospodarczy Krajowego Rejestru Sądowego,
KRS nr 0000028368, NIP: 526-020-41-10, kapitał zakładowy: 58.604.000 PLN
_____________________________________________________
P Pomyśl o środowisku! Nie drukuj tej wiadomości jeśli nie jest to konieczne.
Think about the environment! Do not print this mail unless necessary.
Re: problem with the soft hyphen
Posted by Octavi Ripollés Querol <or...@gmail.com>.
Hi,
It might be a known bug, resolved in trunk:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49837 . I got hit by
this bug when using soft hyphen html entities (­)
I suggest trying your input against fop trunk. In my case, I patched the
released 1.0 jar to cope with the issue while 1.1 is released.
Best regards,
Octavi Ripolles-Querol
2012/4/16 Bogusław Fries <bf...@dpd.com.pl>
> We have the following stylesheet:****
>
> ** **
>
> <xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
> ****
>
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >****
>
> <xsl:template match="/">****
>
> <fo:root>****
>
> <fo:layout-master-set>****
>
> <fo:simple-page-master master-name="simple-page"
> margin-left="1.0in" margin-right="1.0in" margin-top="1.0in"
> margin-bottom="1.0in"****
>
> page-width="8.5in" page-height="11in">****
>
> <fo:region-body />****
>
> </fo:simple-page-master>****
>
> </fo:layout-master-set>****
>
> <fo:page-sequence master-reference="simple-page" format="1"
> initial-page-number="1">****
>
> <fo:flow flow-name="xsl-region-body">****
>
> <fo:block>­</fo:block> ****
>
> </fo:flow>****
>
> </fo:page-sequence>****
>
> </fo:root>****
>
> </xsl:template>****
>
> </xsl:stylesheet>****
>
> ** **
>
> When I am using FOP ver 1.0, it crash. Of course, I could simply do not
> use this block in my stylesheet but, the same crash happens when this
> character appears in the input data.****
>
> ** **
>
> Is any workaround for this?****
>
> ** **
>
> Best regards.****
>
> ________
> *Bogusław Fries***
> Starszy programista
> DPD Polska Sp. z o.o.
> 02-274 Warszawa, ul. Mineralna 15
> mobile: *502 777 254*
>
> *bfries@dpd.com.pl*
> www.dpd.com.pl****
>
> DPD Polska Sp. z o.o., 02-274 Warszawa, ul. Mineralna 15
> Spółka wpisana do rejestru przedsiębiorców w Sądzie Rejonowym dla m. st.
> Warszawy, XIII Wydział Gospodarczy Krajowego Rejestru Sądowego,
> KRS nr 0000028368, NIP: 526-020-41-10, kapitał zakładowy: 58.604.000 PLN
> _____________________________________________________****
>
> ** **
>
> *P **Pomyśl** o środowisku! Nie drukuj tej wiadomości jeśli nie jest to
> konieczne.***
>
> * **Think about the environment! Do not print this mail unless necessary.*
> ****
>
> ** **
>
> ****
>
> ** **
>
Re: problem with the soft hyphen
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi,
Le 17/04/2012 15:02, Bogusław Fries a écrit :
> Thank you for the information.
>
> Using trunk version in the production environment is too risky for us.
> Stable 1.1 version would be great. When could we expect it ?
Probably during the 2nd quarter or this year.
> Best regards
>
> Bogusław Fries
>
>
> -----Original Message-----
> From: Pascal Sancho [mailto:pascal.sancho@takoma.fr]
> Sent: Monday, April 16, 2012 5:05 PM
>
> Oh sorry, I didn't read the Subject.
>
> I confirm what Octavi said: FOP 1.0 crashes while FOP trunk successfully
> run your test.
>
> Le 16/04/2012 16:40, Pascal Sancho a écrit :
>> Hi,
>>
>> what do you mean by "it crash"?
>> - how does FOP behave?
>> - is there an error message?
>>
>> that said, your snippet appears to be regular. I don't see anything wrong.
>> Further info will be welcome.
>>
>> Le 16/04/2012 15:53, Bogusław Fries a écrit :
>>> We have the following stylesheet:
>>> <xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>>> <xsl:template match="/">
>>> <fo:root>
>>> <fo:layout-master-set>
>>> <fo:simple-page-master master-name="simple-page" margin-left="1.0in"
>>> margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
>>> page-width="8.5in" page-height="11in">
>>> <fo:region-body />
>>> </fo:simple-page-master>
>>> </fo:layout-master-set>
>>> <fo:page-sequence master-reference="simple-page" format="1"
>>> initial-page-number="1">
>>> <fo:flow flow-name="xsl-region-body">
>>> <fo:block>­</fo:block>
>>> </fo:flow>
>>> </fo:page-sequence>
>>> </fo:root>
>>> </xsl:template>
>>> </xsl:stylesheet>
>>> When I am using FOP ver 1.0, it crash. Of course, I could simply do not
>>> use this block in my stylesheet but, the same crash happens when this
>>> character appears in the input data.
>>> Is any workaround for this?
>>
>
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: problem with the soft hyphen
Posted by Bogusław Fries <bf...@dpd.com.pl>.
Thank you for the information.
Using trunk version in the production environment is too risky for us.
Stable 1.1 version would be great. When could we expect it ?
Best regards
Bogusław Fries
-----Original Message-----
From: Pascal Sancho [mailto:pascal.sancho@takoma.fr]
Sent: Monday, April 16, 2012 5:05 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: problem with the soft hyphen
Oh sorry, I didn't read the Subject.
I confirm what Octavi said: FOP 1.0 crashes while FOP trunk successfully
run your test.
Le 16/04/2012 16:40, Pascal Sancho a écrit :
> Hi,
>
> what do you mean by "it crash"?
> - how does FOP behave?
> - is there an error message?
>
> that said, your snippet appears to be regular. I don't see anything wrong.
> Further info will be welcome.
>
> Le 16/04/2012 15:53, Bogusław Fries a écrit :
>> We have the following stylesheet:
>> <xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>> <xsl:template match="/">
>> <fo:root>
>> <fo:layout-master-set>
>> <fo:simple-page-master master-name="simple-page" margin-left="1.0in"
>> margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
>> page-width="8.5in" page-height="11in">
>> <fo:region-body />
>> </fo:simple-page-master>
>> </fo:layout-master-set>
>> <fo:page-sequence master-reference="simple-page" format="1"
>> initial-page-number="1">
>> <fo:flow flow-name="xsl-region-body">
>> <fo:block>­</fo:block>
>> </fo:flow>
>> </fo:page-sequence>
>> </fo:root>
>> </xsl:template>
>> </xsl:stylesheet>
>> When I am using FOP ver 1.0, it crash. Of course, I could simply do not
>> use this block in my stylesheet but, the same crash happens when this
>> character appears in the input data.
>> Is any workaround for this?
>
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: problem with the soft hyphen
Posted by Pascal Sancho <pa...@takoma.fr>.
Oh sorry, I didn't read the Subject.
I confirm what Octavi said: FOP 1.0 crashes while FOP trunk successfully
run your test.
Le 16/04/2012 16:40, Pascal Sancho a écrit :
> Hi,
>
> what do you mean by "it crash"?
> - how does FOP behave?
> - is there an error message?
>
> that said, your snippet appears to be regular. I don't see anything wrong.
> Further info will be welcome.
>
> Le 16/04/2012 15:53, Bogusław Fries a écrit :
>> We have the following stylesheet:
>> <xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>> <xsl:template match="/">
>> <fo:root>
>> <fo:layout-master-set>
>> <fo:simple-page-master master-name="simple-page" margin-left="1.0in"
>> margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
>> page-width="8.5in" page-height="11in">
>> <fo:region-body />
>> </fo:simple-page-master>
>> </fo:layout-master-set>
>> <fo:page-sequence master-reference="simple-page" format="1"
>> initial-page-number="1">
>> <fo:flow flow-name="xsl-region-body">
>> <fo:block>­</fo:block>
>> </fo:flow>
>> </fo:page-sequence>
>> </fo:root>
>> </xsl:template>
>> </xsl:stylesheet>
>> When I am using FOP ver 1.0, it crash. Of course, I could simply do not
>> use this block in my stylesheet but, the same crash happens when this
>> character appears in the input data.
>> Is any workaround for this?
>
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: problem with the soft hyphen
Posted by Pascal Sancho <pa...@takoma.fr>.
Hi,
what do you mean by "it crash"?
- how does FOP behave?
- is there an error message?
that said, your snippet appears to be regular. I don't see anything wrong.
Further info will be welcome.
Le 16/04/2012 15:53, Bogusław Fries a écrit :
> We have the following stylesheet:
> <xsl:stylesheet version="2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
> <xsl:template match="/">
> <fo:root>
> <fo:layout-master-set>
> <fo:simple-page-master master-name="simple-page" margin-left="1.0in"
> margin-right="1.0in" margin-top="1.0in" margin-bottom="1.0in"
> page-width="8.5in" page-height="11in">
> <fo:region-body />
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="simple-page" format="1"
> initial-page-number="1">
> <fo:flow flow-name="xsl-region-body">
> <fo:block>­</fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> </xsl:template>
> </xsl:stylesheet>
> When I am using FOP ver 1.0, it crash. Of course, I could simply do not
> use this block in my stylesheet but, the same crash happens when this
> character appears in the input data.
> Is any workaround for this?
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org