DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25275>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25275

fo:page-number ignores text-decoration="underline" attribute

           Summary: fo:page-number ignores text-decoration="underline"
                    attribute
           Product: Fop
           Version: 0.20.5
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: pdf renderer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Have got the header format for a pdf manual set as follows:

<xsl:attribute-set name="header.content.properties">
  <xsl:attribute name="font-size">9pt</xsl:attribute>
  <xsl:attribute name="text-decoration">underline</xsl:attribute>
</xsl:attribute-set>

The problem that I'm getting is that the page number is not underlined, but the 
rest of the text is.

The part of the header content code that produces the example header is (using
docbook xml and the 1.62.4 XSL stylesheets):

      <xsl:when test="$sequence = 'even' and $position = 'left'">  
        <fo:page-number/>
        <fo:inline> - </fo:inline>
        <fo:inline>
          <xsl:call-template name="header.component.title">
          <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
          </xsl:call-template>
        </fo:inline>
      </xsl:when>


I've tried modifying the page-number call as follows:
        <fo:page-number text-decoration="underline"/>

And:
        <fo:inline text-decoration="underline"><fo:page-number/></fo:inline>

And:
    <xsl:when test="$sequence = 'even' and $position = 'left'">  
      <fo:block text-decoration="underline">
        <fo:page-number/>
        <fo:inline> - </fo:inline>
        <fo:inline>
          <xsl:call-template name="header.component.title">
          <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
          </xsl:call-template>
        </fo:inline>
      </fo:block>
    </xsl:when>

And:
    <xsl:when test="$sequence = 'even' and $position = 'left'">  
      <fo:inline text-decoration="underline">
        <fo:page-number/>
        <fo:inline> - </fo:inline>
        <fo:inline>
          <xsl:call-template name="header.component.title">
          <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
          </xsl:call-template>
        </fo:inline>
      </fo:inline>
    </xsl:when>

The text-decoration property on the fo:page-number element is being passed into
fop, but the page number is consistently being rendered without the underline.

Reply via email to