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

using attribute value as an attribute name OR using el

Subject: using attribute value as an attribute name OR using element value as an attribute name
From: ross@xxxxxxxxxxxxx
Date: Wed, 18 Sep 2002 09:52:30 -0700
using el to iterate
Folks,

I have a list of columns in a config block, and some data in row tags, as
shown below:

<?xml version="1.0"?>
<root>
	<config>
		<columnList>
			<column name="column1"/> <!-- could change to element text instead of
attribute
			<column name="column2"/>
			<column name="column4"/>
		</columnList>
	</config>

	<row column1="c1r1" column2="c2r1" column3="c3r1" column4="c4r1"/>
	<row column1="c1r2" column2="c2r2" column3="c3r2" column4="c4r2"/>
	<row column1="c1r3" column2="c2r3" column3="c3r3" column4="c4r3"/>
	<row column1="c1r4" column2="c2r4" column3="c3r4" column4="c4r4"/>
	<row column1="c1r5" column2="c2r5" column3="c3r5" column4="c4r5"/>

</root>

What I want to dow is iterate the rows, only showing those columns defined
in config/columnList. Seems easy, but I've been going mad trying to figure
out how. :-)

I would be insanely grateful for whatever help anyone can provide. Without
help, I'm merely insane. :-)


Thanks.

== Ross ==

Ross W. Lambert, Senior Software Engineer
Who's Calling, Inc.



 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.