[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: XML Schema String and white spaces
Thanks, Sacha. That certainly clarifies the issue. We probably should fix the negotiation BPSS instance document for now (in the next draft). Monica, I think we have a new BPSS issue. I can't think of any reason why the number of spaces in a row in a string in a BPSS instance document should be significant. Could you suggest discussing changing the white space constraint to "collapse"? Regards, Marty At 08:17 AM 11/25/2003, Sacha Schlegel wrote: >Hi Marty > >I looked up the XML Schema Part 2: Datatypes (W3C Recommendation 02 May >2001) from http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/ > >------------- > >Section 3.2.1 string > >The XML Schema "string" primitive type has constraning facets, such as >length, minLength, maxLength, ... and whiteSpace. > >There is a XML built in datatpye derived from string called >"normalizedString" > >Section 4.3.6 whiteSpace > >The whiteSpace constraint can have 3 values: preserve, replace, and >collapse. > >preserve: no normalisation is done. >replace: tabs, line feed and carriage returns are replaced with space >!collapse: contiguous sequences of spaces are collapsed to a single >space. and leading and trailing spaces are removed. > >It goes on that the string datatype has whiteSpace set as preserve. A >derived by restriction of string data type can have the whiteSpace set >to collapse. > >When I look at the BPSS v1.01 XML Schema I only see the usage of >"xsd:string" data type without any constraints, such as whiteSpace. > >It seems to me that the double white space in one of the expression >attributes of a Transition element of the ANCPA BPSS is a problem >because it is of xsd:string which has whitespace set a preserved. > >So "abc def" is not equal to "abc def" if the whiteSpace constraint is >set to preserved. > >What do you think? > > >Kind regards. > >Sacha > >-- >------------------------------------------------ >Sacha Schlegel >------------------------------------------------ >4 Warwick Str, 6102 St. James, Perth, Australia >sacha@schlegel.li www.schlegel.li >public key: www.schlegel.li/sacha.gpg >------------------------------------------------ ************************************* Martin Sachs standards architect Cyclone Commerce msachs@cyclonecommerce.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]