[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Can a single XPath statement duplicate the functionality of this verbose
but I may have explained my needs incorrectly. Your statement works on the first example below [uses @denomination] but returns nothing for the second example; there it should return the value of the <Locations @souvenir-sheet>, i.e., '1'.
Thanks,
Mark
<Stamp>
<Formats souvenir-sheet="2896"/>
<Location denomination="5"/>
<Location souvenir-sheet="1"/>
</Stamp>
Re: [xsl] Can a single XPath statement duplicate the functionality of this verbose statement?
Subject: Re: [xsl] Can a single XPath statement duplicate the functionality of this verbose <xsl:choose> statement? From: "Mark" <mark@xxxxxxxxxxxx> Date: Sun, 23 Oct 2011 17:39:01 -0700 |
Hi Ken, Yes, only one attribute to either element.
You said: xsl:copy-of select="( ../Location[name(@*)=name(current()/@*)] , ../Location/@denomination , '0' )[1]"/>
but I may have explained my needs incorrectly. Your statement works on the first example below [uses @denomination] but returns nothing for the second example; there it should return the value of the <Locations @souvenir-sheet>, i.e., '1'.
Thanks,
Mark
<Stamp> <Formats souvenir-sheet="2895"/> <Location denomination="1"/> </Stamp>
<Stamp>
<Formats souvenir-sheet="2896"/>
<Location denomination="5"/>
<Location souvenir-sheet="1"/>
</Stamp>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Can a single XPath statem, G. Ken Holman | Thread | Re: [xsl] Can a single XPath statem, G. Ken Holman |
Re: [xsl] Can a single XPath statem, G. Ken Holman | Date | Re: [xsl] Can a single XPath statem, Dimitre Novatchev |
Month |