Subject: Re: [xsl] Locating an attribute and its value indirectly From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx> Date: Fri, 4 Nov 2011 19:56:04 -0400 |
Try: <xsl:value-of select="../Formats/@*[name(.)=current()/@text-location]"/> -Brandon :) On Fri, Nov 4, 2011 at 7:52 PM, Mark <mark@xxxxxxxxxxxx> wrote: > 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 -> |
---|---|---|
[xsl] Locating an attribute and its, Mark | Thread | Re: [xsl] Locating an attribute and, Mark |
[xsl] Locating an attribute and its, Mark | Date | Re: [xsl] Locating an attribute and, Mark |
Month |