Jump to content

XPath question


Guest Onnozelaar

Recommended Posts

Guest Onnozelaar

Hey all,i'm struggling with something :let's say i've got all kinds of nodesi need to get the nodes where the "title" attribuut contains "you"(title = "youuuuuu" or title="dmflksjfyou dmlskfj" also have to be found)i've tried many many times but no luck(while i don't think it's that difficult... probably something i'm missing)so... anyone ?thnx in advanceGreetzOnnozelaar

Link to comment
Share on other sites

The contains() function maybe?

<xsl:for-each select="//@title<xsl:if test="contains(., 'you')"><xsl:value-of select="."/></xsl:if>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...