This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


   <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]