How can I add multiple filters to a XSLT for-each statement?
- by Huuuze
I have the following XSLT node:
<xsl:for-each select="Book[title != 'Moby Dick']">
....
</xsl:for-each>
However, I'd like use multiple filters in the for-each. I've tried the following, but it doesn't seem to work:
<!-- Attempt #1 -->
<xsl:for-each select="Book[title != 'Moby Dick'] or Book[author != 'Rowling'] ">
....
</xsl:for-each>
<!-- Attempt #2 -->
<xsl:for-each select="Book[title != 'Moby Dick' or author != 'Rowling']">
....
</xsl:for-each>