Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2769

FOP hyphenation xsl fo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2
    • None
    • fo/block, fo/inline
    • None

    Description

      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:

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

      This is my fo:sxl:

      <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>
      

      Attachments

        1. Immagine.png
          31 kB
          Manu

        Activity

          People

            Unassigned Unassigned
            pocho183 Manu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: