[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
I do not know how to write the following code to get the value of an attribute named in the current element but found in another element:
In this case, where @text-location is 'souvenir-sheet', I want the value '2630'.
when the context is <Inscriptions>
<Thing>
<Inscriptions czech="XIV. Zimnm olympijski hry Sarajevo '84" eng="14th Winter Olympic Games, Sarajevo, '84" text-location="souvenir-sheet"/>
<Formats souvenir-sheet="2630"/>
</Thing>
Am I even close? What am I doing wrong?
[xsl] Locating an attribute and its value indirectly
Subject: [xsl] Locating an attribute and its value indirectly From: "Mark" <mark@xxxxxxxxxxxx> Date: Fri, 4 Nov 2011 16:52:12 -0700 |
I do not know how to write the following code to get the value of an attribute named in the current element but found in another element:
In this case, where @text-location is 'souvenir-sheet', I want the value '2630'.
when the context is <Inscriptions>
<Thing>
<Inscriptions czech="XIV. Zimnm olympijski hry Sarajevo '84" eng="14th Winter Olympic Games, Sarajevo, '84" text-location="souvenir-sheet"/>
<Formats souvenir-sheet="2630"/>
</Thing>
<xsl:value-of select="../Formats/@*=@text-location"/> returns a boolean and
<xsl:value-of select="../Formats/@*[name(.)=@text-location]"/> returns a blank
Am I even close? What am I doing wrong?
Thanks, Mark
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath which tests that an, Michael Kay | Thread | Re: [xsl] Locating an attribute and, Brandon Ibach |
Re: [xsl] [possibly off topic] Adop, Andrew Welch | Date | Re: [xsl] Locating an attribute and, Brandon Ibach |
Month |