Eric,
The table was looking great until yesterday when the user made the
request:  If the vouc-type='TH' then insert a linefeed BEFORE the table
row that includes the 'TH'  is printed.
 
I am trying to change as little logic as possible.  Your diagram of the
output is exactly right.  In my sample of the code, I do not get the
linefeed in ANY situation.
 
 

Jeff 


________________________________

        From: Amick, Eric [mailto:[EMAIL PROTECTED] 
        Sent: Tuesday, August 26, 2008 8:32 AM
        To: [email protected]
        Subject: RE: Issue with LineFeed &#x0A
        
        
        I'm not sure I understand how exactly you want this to appear.
Are you looking for something like this?
         
        DC       column 2
        TH
                    column 2
        TR        column 2
         
        If so, I think it would make more sense to put a linefeed before
the data in every cell of the row but the first.
         
        Eric Amick
        Legislative Computer Systems
        Office of the Clerk
         

________________________________

        From: Steffanina, Jeff [mailto:[EMAIL PROTECTED] 
        Sent: Tuesday, August 26, 2008 8:06
        To: [email protected]
        Subject: Issue with LineFeed &#x0A
        
        

        Friends, 
        Issue: When the first column in the table row contains 'TH', I
want to do a LINE FEED   before  the remainder of the table row is
printed.  The other components in the "choose" are working perfectly.
In general, I am having problems forcing a line feed at various point in
my style sheet.  I would appreciate any hints.

        <xsl:choose> 
        <xsl:when test="./vouc-type='TR' or ./vouc-type='DR' or
./vouc-type='CC'"> 
              <xsl:attribute
name="white-space-treatment">preserve</xsl:attribute> 
            <fo:block font-style="italic"  line-height=".14in" > 
                <xsl:text>     </xsl:text><xsl:value-of
select="vouc-charge-date"/> 
              </fo:block> 
        </xsl:when> 

        <xsl:when test="./vouc-type='TH'"> 
                <xsl:attribute
name="white-space-treatment">preserve</xsl:attribute> 
          <fo:block > 
                <xsl:text>&#x0A;</xsl:text> 
          </fo:block> 
        </xsl:when> 

        <xsl:otherwise> 
                <xsl:attribute
name="white-space-treatment">preserve</xsl:attribute> 
                <xsl:value-of select="vouc-charge-date"/> 
        </xsl:otherwise> 
        </xsl:choose> 
        </fo:block> 






        Jeff 

Reply via email to