Jump to content


  • Posts

  • Joined

  • Last visited

ritagr's Achievements


Newbie (1/7)



  1. Hello, I'm using a stylesheet version 1.0.I'm setting the attribute margin-top within the following:<fo:simple-page-master> <fo:region-body> <xsl:choose> <xsl:when test="blah blah <xsl:attribute name=margin-top"> <xsl:value-of select="blah blah" The margin-top can contain from 3-10 (which is the number of lines that can be printed in the heading section of the PDF) and the <xsl:choose> has multiple combinations of tests. I now have to add an additional optional heading line which will increase the multiple combinations of test resulting in an already clumsy method being more clumsy. I was thinking of creating a template that added one to a separate variable for each of the tests above. Then I can set the final variable for the heading row count by adding these variables resulting in a value of between 3-11. I now want to set the margin-top attribute of the<fo:region-body> with this value. I don't know if this is possible and where I would call the template.I would like to set the margin-top within this new template but am not sure how to do this. Any help will be greatly appreciated! Thanks,Rita
  2. Hmmm - I just changed "text-align='right'" and this time all the MODiFIERS were printed correctly in the column. Works fine when there are 4 modifiers but most times there will just be one or two and so I need to have the text aligned center.
  3. Hello, I'm trying to get the "wrap-option = 'wrap'" to work within a block.I have the following code:<fo:table-cell text-align="center"> <fo:block wrap-option="wrap"> <xsl:value-of select="MODIFIERS/MOD1"/> <fo:inline font-size="4pt"> </fo:inline> <xsl:value-of select="MODIFIERS/MOD2"/> <fo:inline font-size="4pt"> </fo:inline> <xsl:value-of select="MODIFIERS/MOD3"/> <fo:inline font-size="4pt"> </fo:inline> <xsl:value-of select="MODIFIERS/MOD4"/> </fo:block></fo:table-cell> The MOD4 is being cut off as it doesn't fit within the column.I don't want to make the column wider.I read somewhere not to have "keep-together='always'" on the table-row line and I do not have that property there. What do I need to do to get this column to wrap? Any help with this will be much appreciated! Thanks,Rita
  • Create New...