Subject: RE: [xsl] How to select either ElementA -OR- ElementB in an axis From: "Aron Bock" <aronbock@xxxxxxxxxxx> Date: Wed, 15 Jun 2005 19:00:19 +0000 |
From: chris <oneskiingfool@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xslt <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] How to select either ElementA -OR- ElementB in an axis Date: Wed, 15 Jun 2005 12:35:16 -0600
Hello, This has me stumped. I want to do something simple like this (I'll keep it short as I think it's self-explanatory)....
<xsl:variable name="myvar" select="ancestor::(ElementA or ElementB)/foo/bar"/>
... where either ElementA or ElementB is selected, whichever is first.
Any ideas? I'm using XPath 2.0
Thanks!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to select either ElementA, chris | Thread | Re: [xsl] How to select either Elem, chris |
[xsl] How to select either ElementA, chris | Date | Re: [xsl] How to select either Elem, chris |
Month |