This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: <xsl:value-of select="/ROW[$row]/@$col"/>
Michael,
Thank you for your reply. It solves my problem.
One of the reasons I am structuring data this way is that the HEADINGS
section items also contain further information about the data attributes in
a ROW :
<ITEM NAME="FOUR" TYPE="Numeric"/>
The document is dynamic, one instance may have 1 heading item with any name,
the next may have 50 columns.
I have always viewed my XML documents like Objects. An object gets a tag of
its own, properties of the object are represented as attributes unless they
are sub-objects in which case they get their own tag within the parent.
Perhaps there is a better conceptual model to use? I would appreciate the
enlightenment.
Thanks again.
- Ian Sparks.
> This must come up a lot, but I can't find any references to it :
>
> A document structured like :
>
> <LIST>
> <HEADINGS>
> <ITEM NAME="ONE"/>
> <ITEM NAME="TWO"/>
> </HEADINGS>
> <ROWS>
> <ROW ONE="a" TWO="b"/>
> <ROW ONE="x" TWO="y"/>
> </ROWS>
> </LIST>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list