Ticket #9420: fo.xsl.patch

File fo.xsl.patch, 1023 bytes (added by Paul A. Bristow, 9 years ago)

Path for fo.xsl to add align items

  • fo.xsl

     
    312312  </fo:inline>
    313313</xsl:template>
    314314
     315<!-- alignment -->
    315316
     317<xsl:template match="phrase[@role='aligncenter']">
     318  <fo:inline>
     319    <fo:block text-align="center">
     320      <xsl:apply-templates/>
     321    </fo:block>
     322  </fo:inline>
     323</xsl:template>
     324
     325<xsl:template match="phrase[@role='alignleft']">
     326  <fo:inline>
     327    <fo:block text-align="left">
     328      <xsl:apply-templates/>
     329    </fo:block>
     330  </fo:inline>
     331</xsl:template>
     332
     333<xsl:template match="phrase[@role='alignright']">
     334  <fo:inline>
     335    <fo:block text-align="right">
     336     <xsl:apply-templates/>
     337    </fo:block>
     338  </fo:inline>
     339</xsl:template>
     340
     341<xsl:template match="phrase[@role='alignjustify']">
     342  <fo:inline>
     343    <fo:block text-align="justify">
     344     <xsl:apply-templates/>
     345    </fo:block>
     346  </fo:inline>
     347</xsl:template>
     348
    316349  <!--
    317350
    318351 The following rules apply syntax highlighting to phrases