[Home] [By Thread] [By Date] [Recent Entries]

  • To: Kintali Shiva Prasad <shiva@s...>
  • Subject: Re: Is whitespace allowed with xsi:nil="true" ?
  • From: ht@c... (Henry S. Thompson)
  • Date: Wed, 03 Sep 2003 09:03:05 +0100
  • Cc: xml-dev@l...
  • In-reply-to: <3F54F1F7.2020100@s...> (Kintali Shiva Prasad's messageof "Tue, 02 Sep 2003 14:39:35 -0500")
  • References: <3F54F1F7.2020100@s...>
  • User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux)

The W3C XML Schema REC says  :

  "[if xsi:nil is true t]he element information item must have no
   character or element information item [children]."

So I think Xerces is giving the correct answer.  XSV also gives an
error for this one:

  " <invalid char="1" code="cvc-elt.1.2.1" line="5" 
    resource=".../niltest-whitespace.xml">element name is nilled
       but is not empty</invalid>"

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@c...
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member