Subject: Re: [xsl] Substring test From: "Aaron Johnson" <artpunx@xxxxxxxxx> Date: Thu, 26 Oct 2006 10:29:40 +0100 |
It processed, but the output was still wrong, I'm still getting "detachFocus" instead of "home"
in xslt2 you could use regular expressions, in 1.0 just some combination of substring-before = and contains will work, depending on what you cases are
contains(@name('Home::') might work, that would match lkjhllHome::as well but if your input is in a regular form and you are just trying to distinguish Home::foo Home::bar and Work:foo then it's enough or starts-with(substring-before(@name,'::'),'Home') is true for Home::foo and HomeOffice::foo or substring-before(@name,'::')='Home' or...
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Substring test, David Carlisle | Thread | Re: [xsl] Substring test, David Carlisle |
RE: [xsl] Upgrading to XSLT 2.0, Michael Kay | Date | Re: [xsl] Substring test, David Carlisle |
Month |