Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 7th, 2018, 12:45 PM
Friend of Wrox
Points: 465, Level: 7
Points: 465, Level: 7 Points: 465, Level: 7 Points: 465, Level: 7
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
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.

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

I think is is wrong.

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.