how to specify multiple selection criteria in tag?
-
Hi every one, I've generated this xsl code from my C# application and I've given the error statement in bold here. the problem is that I wanna filter the contents of an XML file and generate its HTML. So far its working fine as long as I select one Author(as the filtering is based on the name of the author). but whenever select two or more it gives an error on XSLT. Its actually the XsltCompileException and it points out this line given in bold... So can any one plz help me in this regard and tell how exactly this kind of expression should be formatted. Any help would be highly appreciated... Thanks xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xsl:output method="html" indent="yes"/> Trying to filter xsl:for-each select="bookstore/book"> xsl:choose> xsl:when test="author/first-name='Herman' | author/first-name='Imaginary' "> /xsl:when> /xsl:choose> /xsl:for-each> /table> /xsl:template> /xsl:style sheet // I've made a few syntactic mistakes here intentionally (removed '<' character)coz this is not showing the contents of Xml when i posted this... its only showing Html... Hello... maderators of this forum... whats happening here?? (no offense):) Rocky
Title
Price
xsl:value-of select="title"/>
xsl:value-of select="price"/>
-
Hi every one, I've generated this xsl code from my C# application and I've given the error statement in bold here. the problem is that I wanna filter the contents of an XML file and generate its HTML. So far its working fine as long as I select one Author(as the filtering is based on the name of the author). but whenever select two or more it gives an error on XSLT. Its actually the XsltCompileException and it points out this line given in bold... So can any one plz help me in this regard and tell how exactly this kind of expression should be formatted. Any help would be highly appreciated... Thanks xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xsl:output method="html" indent="yes"/> Trying to filter xsl:for-each select="bookstore/book"> xsl:choose> xsl:when test="author/first-name='Herman' | author/first-name='Imaginary' "> /xsl:when> /xsl:choose> /xsl:for-each> /table> /xsl:template> /xsl:style sheet // I've made a few syntactic mistakes here intentionally (removed '<' character)coz this is not showing the contents of Xml when i posted this... its only showing Html... Hello... maderators of this forum... whats happening here?? (no offense):) Rocky
Title
Price
xsl:value-of select="title"/>
xsl:value-of select="price"/>