[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: 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.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC