Re: [xsl] How do you specify multiple attributes when using for-each?

Subject: Re: [xsl] How do you specify multiple attributes when using for-each?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sat, 27 Jul 2002 02:02:39 +0200
<xsl:for-each select="//statecodes/coderec[@country='us' | 'canada']">

thinking that a Boolean "or" might work--but it didn't.  Any help would be
appreciated!

Kathryn

<xsl:for-each select="//statecodes/coderec[@country='us' or @country='canada']">
(http://www.w3.org/TR/xpath#booleans)


| is the UNION operator and only for node sets (http://www.w3.org/TR/xpath#node-sets).

Regards,

Joerg


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread