[xquery-talk] Validating an attribute value
David Lee
dlee at calldei.com
Sat Dec 14 05:04:15 PST 2013
assuming your are not particularly pedantic about unicode characters that might look spacy-like ...
this will work
fn:exists($elem/@attribute) and fn: normalize-space( $elem/@attribute ) ne ''
but it all depends on what you mean by 'has a value'
----------------------------------------
David A. Lee
dlee at calldei.com
http://www.xmlsh.org
-----Original Message-----
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf Of Misztur, Chris
Sent: Friday, December 13, 2013 9:01 PM
To: talk at x-query.com
Subject: [xquery-talk] Validating an attribute value
If I want to make sure that an attribute has a value should I check with empty() and functx:all-whitespace()?
-c
________________________________
The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author.
Please consider the environment before printing this e-mail
_______________________________________________
talk at x-query.com
http://x-query.com/mailman/listinfo/talk
More information about the talk
mailing list