[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Selection based on attribute value
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 9 Dec 1999 16:03:17 GMT
> I want (in my XSL stylesheet) to be able to get the color and title for the
> <Portal:Screen> element where the attribute 'primary' has the value
> true.  

If the current node is Portal:ScreenPreferences then:

select="Portal:Screen[@primary='true']/screenTitle"

select="Portal:Screen[@primary='true']/screenColor"

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member