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

Variable number of attributes

Subject: Variable number of attributes
From: "Aaron Bawcom" <aaron_bawcom@xxxxxxxxxxxxx>
Date: Sat, 30 Sep 2000 04:41:06 -0500
aaron bawcom
I'm trying to produce a single style sheet (foo.xsl) that offers the
following functionality. I'm using IE 5.5. Any help would be greatly
appreciated.

Having a document:

<doc>
	<ele name1="A1" name2="A2"/>
	<ele name1="B1" name2="B2"/>
</doc>

processed through the style sheet (foo.xsl) produces:

<TABLE>
	<TR>
		<TH>name1</TH>
		<TH>name2</TH>
	</TR>
	<TR>
		<TD>A1</TD>
		<TD>A2</TD>
	</TR>
	<TR>
		<TD>B1</TD>
		<TD>B2</TD>
	</TR>
</TABLE>

And having a document:

<doc>
	<ele name1="A1" name2="A2" name3="A3"/>
	<ele name1="B1" name2="B2" name3="B3"/>
</doc>

processed through the same tyle sheet (foo.xsl) produces:

<TABLE>
	<TR>
		<TH>name1</TH>
		<TH>name2</TH>
		<TH>name3</TH>
	</TR>
	<TR>
		<TD>A1</TD>
		<TD>A2</TD>
		<TD>A3</TD>
	</TR>
	<TR>
		<TD>B1</TD>
		<TD>B2</TD>
		<TD>B3</TD>
	</TR>
</TABLE>


 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.