db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laura Stewart (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-2471) Change xsl/xslfo/ditafo-calstable.xsl (fillit template) to remove ' from PDF tables that contain blank cells
Date Tue, 20 Mar 2007 17:16:32 GMT
Change xsl/xslfo/ditafo-calstable.xsl (fillit template) to remove ' from PDF tables that contain
blank cells
------------------------------------------------------------------------------------------------------------

                 Key: DERBY-2471
                 URL: https://issues.apache.org/jira/browse/DERBY-2471
             Project: Derby
          Issue Type: Improvement
          Components: Documentation
            Reporter: Laura Stewart
            Priority: Minor


A blank cell in a DITA table appears blank in HTML but in PDF
and apostrophe appears in the cell.

I asked on the DITA users list and this is the response that I received:
_________________________________________________________

     You are running into an old piece of code that used the apostrophe
     character to force early PDF processors to create rules for the empty cell.
     You will need to override xsl/xslfo/ditafo-calstable.xsl to revise this
     named template:

     <xsl:template name="fillit">
     <xsl:choose>
     <!-- test to see if the cell contains any sensible text or other
     element... -->
     <xsl:when test="not(text()[normalize-space(.)] | *)">
     <fo:inline>&rbl;'</fo:inline>
     </xsl:when>
     <xsl:otherwise>
     <xsl:apply-templates/>
     </xsl:otherwise>
     </xsl:choose>
     </xsl:template>

     If memory serves me correctly, this hack was specfically done to force cell
     border rendering for an early version of FOP. This code has not been tested
     against more current FO engines such as XEP or Antenna House. You might be
     able to remove the ' character alone and get perfectly good output
     thereafter. 
__________________________________________________________

Replace the ' character with a blank character.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message