Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: conflicting operators >Thread Next - Re: conflicting operators Re: conflicting operatorsTo: NULL Date: 6/4/2004 1:02:00 AM This is a multi-part message in MIME format ------=_NextPart_000_43017768 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Okay thanks, I had already tried that with the exclamation mark and the equals sign in the right place (sorry I mistyped it :-)) but the starts-with()function does not work for me with this select query, so I have to type in the complete value to get the filtered records in my table but I want it to work as well when I only type in the first few characters of a value. How can I get the starts-with() function to work? Thanks! *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! ------=_NextPart_000_43017768 Content-Type: text/html; name="_alt.0" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="_alt.0" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4=2E0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html;= charset=3Diso-8859-1"> <META content=3D"MSHTML 6=2E00=2E2900=2E2096" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3DArial size=3D2>It is possible abter all= :)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Following is the simplified example= that should give you an idea:</FONT></DIV><FONT size=3D2> <DIV><FONT face=3DArial> <HR> </FONT></DIV> <DIV><FONT face=3DArial>XSL:</FONT></DIV> <DIV></FONT><FONT face=3DArial size=3D2><xsl:stylesheet version=3D"1=2E0"<BR> xmlns:xsl=3D"</FONT><A href=3D"http://www=2Ew3=2Eorg/1999/XSL/Transform"><FONT face=3DArial size=3D2>http://www=2Ew3=2Eorg/1999/XSL/Transform</FONT></A><FONT= face=3DArial size=3D2>"<BR> xmlns:msxsl=3D"urn:schemas-microsoft-com:xslt"<BR= > exclude-result-prefixes=3D"msxsl"></FONT></DIV> <DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT size=3D2></FONT><FONT size=3D2></FONT><BR><FONT face=3DArial= size=3D2><xsl:template match=3D"/root"><BR><root><BR> <xsl:variable name=3D"trio"><BR> <xsl:call-template name=3D"doA"><BR> <xsl:with-param= name=3D"this" select=3D"a[1]" /><BR> <xsl:with-param name=3D"bCount"= select=3D"0" /><BR> </xsl:call-template><BR> </xsl= :variable><BR> <xsl:for-each select=3D"msxsl:node-set($trio)//trio"><BR> <set&g= t;<BR> <xsl:copy-of select=3D"a"/><BR> </set><BR> </xsl:for= -each><BR></root><BR></xsl:template></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><xsl:template name=3D"doA"><BR> <xsl:param name=3D"this"= /><BR> <xsl:param name=3D"bCount" /><BR> <xsl:if test=3D"$this"><BR> <xsl:choose><BR>  = ; <xsl:when test=3D"count($this/b) &lt; $bCount"><BR> <xsl:copy-of= select=3D"$this" /><BR> <xsl:call-template name=3D"doA"><BR> <xsl:with-para= m name=3D"this" select=3D"$this/following-sibling::a[1]" /><BR> <xsl:with-param= name=3D"bCount" select=3D"$bCount - count($this/b)" </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>/><BR> </xsl:call-template>= ;<BR> </xsl:when><BR> <= ;xsl:otherwise><BR> <trio><BR>&nb= sp; <xsl:call-template name=3D"doA"><BR> <xsl:wit= h-param name=3D"this" select=3D"$this" /><BR> <xsl:with-param= name=3D"bCount" select=3D"4" /><BR> </xsl:call-template>= <BR> </trio><BR> &l= t;/xsl:otherwise><BR> </xsl:choose><BR> = </xsl:if><BR></xsl:template><BR> <BR></= xsl:stylesheet></FONT></DIV> <DIV><FONT face=3DArial size=3D2> <HR> XML:</FONT></DIV> <DIV> <DIV><FONT face=3DArial><FONT size=3D2><root><BR><a><BR> <b>1</b><BR= > <b>2</b><BR></a><BR><a><BR> &= lt;b>3</b><BR> <b>4</b><BR></a><B= R><a><BR> <b>5</b><BR> <b>6<= /b><BR></a><BR><a><BR> <b>7</b><B= R></a><BR><a><BR> <b>8</b><BR></a= ><BR></root><BR></FONT><FONT size=3D2> <HR> Output:</FONT></FONT></DIV> <DIV><FONT size=3D2></FONT><FONT face=3DArial= size=3D2><root></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <set></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>1</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>2</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </set></FONT></DIV> <DIV><FONT face=3DArial= size=3D2> <set></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>3</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>4</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </set></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <set></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>5</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>6</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>7</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </set></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <set></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = <b>8</b></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </a></FONT></DIV> <DIV><FONT face=3DArial size=3D2> = </set></FONT></DIV> <DIV><FONT face=3DArial size=3D2></root><BR> <HR> </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT size=3D2><FONT size=3D3> <DIV><FONT face=3DArial size=3D2>You just need to change a to= Products/ProductsItem and b to Identifiers/Identifier</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Have fun!</FONT></DIV></FONT></DIV></FONT></DIV></DIV></BODY></HTML> ------=_NextPart_000_43017768-- | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
