Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 7th, 2018, 12:45 PM
Friend of Wrox
Join Date: Apr 2013
Posts: 101
Thanks: 14
Thanked 0 Times in 0 Posts
Default How do I check the first 3 characters in an element?

I have the node below. I would like to check if the first 3 characters are not equal to 169.

			<StatuteCode Word="269142a4">Traffic</StatuteCode>
How do I do it using xslt when test? e.g.
<xsl:when test='(StatuteCode,1,4)!="169")'>
<xsl:value-of select="true()"/>

I think is is wrong.

Last edited by winkimjr2; August 7th, 2018 at 02:02 PM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use onblur to check no. of characters olivaw Javascript How-To 4 March 7th, 2010 12:18 AM
How to check for last element in for each? nadavvin XSLT 1 March 4th, 2009 12:38 PM
Check if string is in element hykyit XSLT 3 May 1st, 2006 09:26 AM
check if element is disabled or enabled crmpicco Javascript How-To 1 November 10th, 2005 07:21 PM
Check Latin characters in form nikosdra Classic ASP Basics 4 June 27th, 2003 06:08 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.