Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Cannot get Table borders

Reply
Thread Tools

Cannot get Table borders

 
 
james
Guest
Posts: n/a
 
      11-22-2004
Hello everyone!

I'm trying to convert to pdf and I have this XSL file where
I declate table attributes:

<xsl:attribute-set name="table.data">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
<xsl:attribute name="space-before">10pt</xsl:attribute>
<xsl:attribute name="space-after">10pt</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">10pt</xsl:attribute>
</xsl:attribute-set>

then I use them:

<xsl:template match="table">
<fo:table xsl:use-attribute-sets="table.data">
<xsl:if test="@layout">
<xsl:attribute name="table-layout">
<xsl:value-of select="@layout"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@border">
<xsl:attribute name="border-width">
<xsl:value-of select="@border"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@width">
<xsl:attribute name="inline-progression-dimension">
<xsl:value-of select="@width"/>
</xsl:attribute>
</xsl:if>

but it does not change the border!!!

it doesnt read the <xsl:value-of select="@border"/>


Any suggestons?

James
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with Table borders =?Utf-8?B?VGhlUGlua1BhbnRoZXI=?= ASP .Net 4 02-13-2006 04:01 PM
Tables with different color left and right borders, no top or bottom borders, etc. George HTML 9 10-25-2004 04:25 PM
How did they d these? Table Borders JA HTML 8 11-15-2003 12:47 AM
[JSTL] empty strings inside table cells *with borders* Karsten Wutzke Java 9 10-31-2003 09:18 PM
table borders for Mac/IE5 RedLine HTML 1 06-23-2003 09:21 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57