Loading ...
Sorry, an error occurred while loading the content.

7433CALS table to XSLFo -@rowsep problem

Expand Messages
  • mina_hurray
    Dec 29, 2008

      I am trying to convert the cals table into FO.
      I am having issues with the @rowsep at an <entry> element. If the
      @rowsep=0, I want that the border-bottom to not be shown. Here is what
      I am attempting to do in the <entry> template: I have just shown the
      @rowsep part here.
      <xsl:template match="entry">
      <xsl:variable name="entry">
      <xsl:number level="multiple" format="1" count="entry"/>
      <fo:table-cell padding-before="2pt" padding-after="2pt">
      <!-- ROWSEP rules -->
      <xsl:when test="ancestor::tbody/row/entry[$entry]/@rowsep='0'">
      <xsl:attribute name="border-left"><xsl:value-of select="$FrameWidth"/>
      solid black</xsl:attribute>
      <xsl:attribute name="border-right"><xsl:value-of select="$FrameWidth"/>
      solid black</xsl:attribute>
      <xsl:attribute name="border-top">1px solid black</xsl:attribute>
      <xsl:attribute name="border-bottom">0px</xsl:attribute>

      What I wanted to when I used "ancestor::tbody/row/entry[$entry]" was to
      be able to use something like an array to navigate among all the
      <entry> elements in a table. But this is not working.

      I also want to be able to check if it is the first entry and if there
      are @morerows attributes on the <entry>. But I am not able to get this
      first step of @rowsep.

      Any help/suggestions?

      Thanks in advance.
    • Show all 3 messages in this topic