Re: [xml] XML Schema: Nillable custom type error (PATCH)
- From: Sir Woody Hackswell <woody hackswell com>
- To: Kasimier Buchcik <K Buchcik 4commerce de>
- Cc: ML-libxml2 <xml gnome org>
- Subject: Re: [xml] XML Schema: Nillable custom type error (PATCH)
- Date: Mon, 07 Nov 2005 19:33:42 -0500
Wow! You're right! I respectfully disagree with the standard, but it's
what we must follow. Nillable to me meant that it could have a null
value. It seems silly to me to declare that it's empty... because you
can just check if it is or not. =shurg= It's like those manuals that
have "THIS PAGE INTENTIONALLY LEFT BLANK" written in them. ;)
Thanks!
Kasimier Buchcik wrote:
Hi,
On Sat, 2005-11-05 at 20:23 -0500, Sir Woody Hackswell wrote:
[...]
The current behaviour of the processor is correct in this case.
You need to set the xsi:nil attribute to "true" in the instance in order
to activate the "nillable" mechanism.
Example:
<Price xsi:nil="true"/>
The relevant spec pieces:
http://www.w3.org/TR/xmlschema-1/#xsi_nil
http://www.w3.org/TR/xmlschema-1/#cvc-elt
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]