Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT 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 July 29th, 2008, 04:18 PM
Authorized User
 
Join Date: Jul 2008
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default test for empty content?

Is test='../c:Subject/d8p1:PersonBirthDate[.!= " "] and ../c:Subject/d8p1:PersonBirthDate same?

Rakesh

 
Old July 29th, 2008, 04:33 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

No, the first expression tests whether the element exists and has content that is not equal to a single space; the second expression merely tests whether the element exists. In the case where the element exists and its content is a single space the two expressions will give different results.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old July 29th, 2008, 05:51 PM
Authorized User
 
Join Date: Jul 2008
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks u






Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me test this, please larry HTML Code Clinic 0 June 11th, 2007 11:51 PM
if test=???? jmirickhai XSLT 9 August 25th, 2006 02:54 AM
Choosing content depending on content of other ele dsekar_nat XSLT 1 February 27th, 2006 05:58 AM
How do I test for an empty array element kmoran Excel VBA 1 October 8th, 2004 03:34 AM
test pettyqiang BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 10th, 2004 02:44 AM





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