[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Borders on row groups
Subject: [xsl] Borders on row groups From: Gustaf Liljegren <gustafl@xxxxxxxxxx> Date: Thu, 06 Jun 2002 20:41:32 +0200 |
Hello all, I constructed a subset of the table model in XHTML 1.1. I like the frame (border around table) and rules (borders inside table) attributes, and want to make them work in an XSL-FO stylesheet. The rules attribute can be set to "groups", which means there will be borders only to separate column and row groups. A row group is a <tbody>. The idea is therefore to have a border-bottom on <td> elements in the last <tr> in each <tbody>. I tried this: <!-- Table cell --> <xsl:template match="td"> <fo:table-cell> <xsl:if test="parent::tr[position()=last()]"> <xsl:attribute name="border-bottom">0.5pt solid black</xsl:attribute> </xsl:if> <fo:block><xsl:apply-templates/></fo:block> </fo:table-cell> </xsl:template> The result is that I get border-bottom on every row, and I don't understand why. Gustaf XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] position() within for-eac, Michael Kay | Thread | Re: [xsl] Borders on row groups, Joerg Heinicke |
Re: [xsl] Determining if an element, Joerg Heinicke | Date | [xsl] Scope of Local Variables?, Rajput, Ashish S |
Month |
Keywords