Subject: [xsl] import-apply-param etc? From: "Koray Berk" <berkk@xxxxxxxxxx> Date: Mon, 30 Apr 2001 09:16:29 +0200 |
Hello Everyone, This time my question is a little more complex and here it goes. In my xsl I have constructed a tag set for defining tables: <Table> <No>18</No> <Name> Table Name </Name> <ColumnHeaders> <ColumnHeader> Col 1 </ColumnHeader> <ColumnHeader> Col2 </ColumnHeader> </ColumnHeaders> <Rows> <Row> <RowContent> R1 C1 </RowContent> <RowContent> R1 C2 </RowContent> </Row> <Row> <RowContent> R2 C1 </RowContent> <RowContent> R2 C2 </RowContent> </Row> </Rows> </Table> Now I want to put my first set of rules on a basic xsl (first one): <xsl:template match="Table"> <br/> <xsl:value-of select="No"/><br/> <xsl:value-of select="Name"/><br/> <table> <xsl:apply-templates select="ColumnHeaders"/> <xsl:apply-templates select="Rows"/> </table> <br/> </xsl:template> Where the templates of ColumnHeaders and Rows are taken care of and they work nicely. Now, I want to put all formatting information on another xls (second one). So I figured out, I "import" this standard(first) xsl to a second xsl on which I define color and font attributes and so forth. However I am clueless about how I am going to this task. In short: I want the "border" attribute of the html <table> defined in the <Table> of the simple xsl, on the format xsl (2. one) Could I make myself clear? Thanx :) Koray XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re:recursive problem with, Jeni Tennison | Thread | Re: [xsl] import-apply-param etc?, Jeni Tennison |
[xsl] Re:recursive problem with ful, Yang | Date | [xsl] How do I do an If sort of thi, Tim Watts |
Month |