|
Subject: [xsl] How to do an OR within SELECT for a variable From: "lsl" <lsl@xxxxxxxxxxxxx> Date: Sat, 20 Aug 2005 16:27:14 GMT |
My XML can look like this :
<A>
<B>
<C>
<D ID="1">data</D>
</C>
</B>
</A>
or
<A>
<B>
<X>
<D ID="2">data</D>
</X>
</B>
</A>
I set a variable like this :
<xsl:variable name="var" select="A/B/C/D/@ID" />
or
<xsl:variable name="var" select="A/B/X/D/@ID" />
Can I use something like :
<xsl:variable name="var" select="A/B/C|X/D/@ID" />
I think this gets interpretted as 'A/B/C' or 'X/D/@ID'
Thanks in advance,
Steve
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Fw: Calling Nodes in XSL, jeb501 | Thread | Re: [xsl] How to do an OR within SE, Alan |
| Re: [xsl] Attribute value quoting w, Victor Toni | Date | Re: [xsl] How to do an OR within SE, watchstone@xxxxxxxxx |
| Month |