About
Pricing
Community
Teams
Start Free Trial
Log in
badtz7229
asked on
11/21/2013
XSL: obtain attribute value when another attribute value is matching
I have the following 3 items stored in a variable $viewServRef:
<ServRef Key="333" Doc="1076">
<ServRef Key="336" Doc="1079">
<ServRef Key="339" Doc="1082">
how do i then proceed to grab the one instance of Key where Doc is found
I was trying to do something like below. but that returned nothing.
<xsl:variable name="Key" select= "$viewServRef/@Key[@Doc=$T
kt]" />
such that $Key = 333 bc $Tkt =1076
XML
CSS
3
1
Last Comment
Gertone (Geert Bormans)
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gertone (Geert Bormans)
11/21/2013
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
badtz7229
11/21/2013
ASKER
thank u
Gertone (Geert Bormans)
11/21/2013
welcome
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy