[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

import-apply-param etc?

Subject: import-apply-param etc?
From: "Koray Berk" <berkk@xxxxxxxxxx>
Date: Mon, 30 Apr 2001 09:16:29 +0200
 import-apply-param etc?
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.