Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Filtering the output using select attribute from XML file in XSLT Filtering the output using select attribute from XML file in XSLTTo: NULL Date: 11/5/2007 1:50:00 PM Hi, Below is the XSL syntax to filter output from XML file based on single value:- <xsl:for-each select="catalog/cd[artist='Bob']"> so, above code displays the text of the CD elements whose artist is 'Bob'. But, whats the correct syntax to displays CD elements whose artist='Bob' And 'Alice' And 'Tom'. is it:- 1. <xsl:for-each select="catalog/cd[artist='Bob'] And [artist='Alice']"> Or 2. <xsl:for-each select="catalog/cd[artist='Bob'] && [artist='Alice']"> OR 3. <xsl:for-each select="catalog/cd[artist='Bob' && 'Alice']"> anything else. Please guide me Thanks, | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
