Subject: Re: XSLT 2.0 empty string
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 28 Feb 2005 15:53:18 GMT
|
How should we read the '?' in this case?
Convert to string if you can, else don't bother?
no it should be read the way ? is read in regex or dtd syntax as 0-or-1
you could also use + or * there, again with their regex or dtd meanings
of 0-or-more or 1-or-more.
a type of xs:string requires a value that is a string.
a type of xs:string? requires a value that is a sequence of 0 or more
strings. (as always though, there is no difference between a single
string and a sequence of length 1 that contains a string)
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
| Current Thread |
Pawson, David - 28 Feb 2005 15:47:59 -0000
- David Carlisle - 28 Feb 2005 15:53:45 -0000 <=
- Michael Kay - 28 Feb 2005 16:06:46 -0000
Andrew Welch - 28 Feb 2005 16:32:50 -0000
|
|