← Prev in month ← Prev in thread
Next in thread → Next in month →

Issue proposal: whitespace strings and datatypes

From
Murata Makoto <>
Date
2001-07-26T14:01:21+00:00
ID
Thread
Issue proposal: whitespace strings and datatypes
I propose to add this as an issue.

Cheers,

Makoto

James Clark wrote:

> > In 6.2.8 "stripSpace" removes whitespace strings.  Thus, we cannot
> > validate strings comprising whitespaces against foreign datatypes.
> >
> > For example,
> >
> > <foo>  </foo>
> >
> > does not match
> >
> > <element name="foo">
> >   <data type="xsd:string">
> >     <param name="minLength">2</param>
> >  </data>
> > </element>
> >
> > Is this a problem?
> 
> It's certainly not ideal, but it's probably not a problem in practice.  I 
> think it's going to hard to fix this given that we have decided to allow
> 
> <element name="foo"><empty/></element>
> 
> to match
> 
> <foo>   </foo>
> 
> For example, consider
> 
> <choice>
>   <element name="foo">
>     <data type="string">
>       <param name="minLength">2</param>
>     </data>
>   </element>
>   <element name="foo">
>     <empty/>
>   </element>
> </choice>
> 
> Should this match
> 
>   <foo> </foo>
> 
> with just one space?
> 
> It's worth thinking about some more to see if we can find a better solution.
← Prev in month ← Prev in thread
Next in thread → Next in month →