Manu created FOP-2769:
-------------------------

             Summary: FOP hyphenation xsl fo
                 Key: FOP-2769
                 URL: https://issues.apache.org/jira/browse/FOP-2769
             Project: FOP
          Issue Type: Improvement
          Components: fo/block, fo/inline
    Affects Versions: 2.2
            Reporter: Manu
         Attachments: Immagine.png

I would like to use the attribute hyphenation="true" on my tag <intervento> if 
inside there is a tag <italic> I would like to set the hyphenation="false". The 
problem is that I can use the hyphenation only on fo:block and fo:inline. Could 
someone give me an advise ?

This is an example of my xml:


{code:java}
<intervento tipo="sottotitolo">Some text that should have the hyphenation true 
(<italic>This one shoud have the hyphenation false</italic>). (C. 
4768)</intervento>
{code}


This is my fo:sxl:

{code:java}
<xsl:template match="intervento[@tipo='sottotitolo']">
<!-- Hyphenation Enabled -->
<fo:block text-align="justify" widows="1" orphans="1" language="it" 
hyphenate="true">
<xsl:apply-templates/>
</fo:block>
</xsl:template>
<xsl:template match="italic">
<fo:inline font-style="italic" keep-together="always">
<xsl:value-of select="."/>
</fo:inline>
</xsl:template>
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to