Re: [xsl] XSLT 2.0 empty string

Subject: Re: [xsl] 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