[xquery-talk] Validating an attribute value

Michael Kay mike at saxonica.com
Sat Dec 14 01:10:01 PST 2013


If you want to check that an attribute exists and that its value is non-empty and not all whitespace, use

if (normalize-space(@att)) then...

Michael Kay
Saxonica

On 14 Dec 2013, at 02:01, Misztur, Chris <CMisztur at macleanfogg.com> wrote:

> 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