This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Specifying element associated with attribute
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Specifying element associated with attribute
- From: Mike Brown <mike at skew dot org>
- Date: Wed, 3 Jan 2001 13:37:56 -0700 (MST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Jeni Tennison wrote:
> To go from an attribute to its element involves using the parent::
> axis.
I would add that in any discussion of the relationship between elements
and their attributes, it is prudent to mention that in XPath/XSLT,
attributes are not, contrary to what one might think, the children of
their elements. But elements are their attributes' parents. An interesting
paradox, that only makes sense if you consider that attributes are like
rebellious teenagers.
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list