[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] UNIQUE List of nodes attributes that have a particular
I am trying to find all the attributes in an XML document that contain a
particular value.
Given the following data... <ExampleData> <NodeA name="foo"/> <NodeA name="larry"/> <NodeA name="foo"/> <NodeB author="foo"/> <NodeB author="larry"/> <NodeC reporter="foo"/> </ExampleData> I would like to write an XPATH statement that returns this: <NodeA name="foo"/> <NodeB author="foo"/> <NodeC reporter="foo"/> Note that I am only returning UNIQUE instances of element/attribute combinations with the attribute value. Is this possible using XPATH? Thanks! Larry _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|