This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Specifying element associated with attribute


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]