Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with syntax for xsl multiple filter for-next select

Status
Not open for further replies.

harpconn

Technical User
Jul 15, 2002
15
0
0
US
I'm trying to set up a multiple value filter in xsl for an xml file containing book info. So, for example, I only want to output data when UsedPrice<5.00 and Media=Paperback.

I've tried <xsl:for-next select=&quot;ProductInfo/Details[number(substring-after(UsedPrice,'$'))&gt;5.00]>

that works fine.

But when I try to add the second condition it fails

<xsl:for-each select=&quot;ProductInfo/Details[number(substring-after(UsedPrice,'$'))&gt;5.00 | Media='Paperback']&quot;>

What am I doing wrong?

Thanks
 
oh and is &quot;media&quot; an attribute? if so, use &quot;@media&quot;..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top