- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
3 Posted Topics
[QUOTE=deean;625292] [CODE]path="form/description[contains(<%= request.Form("search_by")%>='<%= request.Form("txtSearch")%>')]//*"; [/CODE] [/QUOTE] I fear I might not get the question. But what I am seeing is Function contains should take two arguments separated by a comma. [url]http://zvon.org/xxl/XSLTreference/Output/function_contains.html[/url] Best regards.
[QUOTE=MJUGRAN;996302]Hi, How I could fetch first three character from a string variable. Say for I fetched a variable message="ABCtest" .... now [B]I want to test that the first three character matches ABD or not [/B].. How I could code to achieve in xslt? Cheers Manish[/QUOTE] I am giving answer focusing …
Let's make an example that is similar to you [CODE] <abc> <def> <img>1</img> <img>2</img> <img>3</img> </def> <ghi> <img>4</img> </ghi> <jkl/> </abc> [/CODE] Now my code will be [CODE] <xsl:template match="/"> <xsl:for-each select="//img[preceding-sibling::img or following-sibling::img]"> <xsl:value-of select="."></xsl:value-of> </xsl:for-each> </xsl:template> [/CODE] Hope it will be okay. Regards.
The End.
m.asfak