troubleshooting Question

Output node attribute in XSLT

Avatar of scotiaceilidh
scotiaceilidh asked on
Web Languages and StandardsXML
1 Comment1 Solution770 ViewsLast Modified:
I need a way to extract a node attribute from a XML document by first selecting the node based on value, then outputing the attribute in the node.  Here is the xml:
<PriceList CreationDate="2004-08-16 07:00:00.0" LastUpdateDate="2004-08-13 07:46:17.0">Industrial Belts</PriceList>
<PriceList CreationDate="2004-04-01 07:00:00.0" LastUpdateDate="2005-05-18 14:26:44.0">PTDA</PriceList>
<PriceList CreationDate="2002-10-01 00:00:00.0" LastUpdateDate="2003-01-17 10:59:15.0">Enterprise Master List</PriceList>
<PriceList CreationDate="2004-09-01 08:00:00.0" LastUpdateDate="2006-09-08 10:49:03.0">Automotive 432-0900</PriceList>
<PriceList CreationDate="2003-12-31 00:00:00.0" LastUpdateDate="2004-02-21 12:20:59.0">CARQUEST</PriceList>

If I wanted to output the value of the creation date for the <PriceList> node that had the value CARQUEST, how would I do this?  (<xsl:value-of select="???"/>)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros