Re: [xml] ATTRIBUTE NAME validation problem
- From: Mike Hommey <mh glandium org>
- To: Stefan Behnel <stefan_ml behnel de>
- Cc: xml gnome org, murulidharar huawei com
- Subject: Re: [xml] ATTRIBUTE NAME validation problem
- Date: Mon, 28 Jan 2008 20:04:39 +0100
On Mon, Jan 28, 2008 at 01:55:01PM +0100, Stefan Behnel wrote:
Hi,
murali wrote:
<!ATTLIST doc : CDATA #IMPLIED>
is a valid declaration of attribute ":" for element doc.
But , currently LIBXML2 generates a error when it encounters this.
well, that's just because ':' isn't really a well-formed attribute name. So
you're actually lucky libxml2 tells you that, otherwise you'd generate XML
that no parser can parse.
But that's still true that the XML declaration spec tells : is a valid
attribute name in an ATTLIST. ::::::::::: is, too.
http://www.w3.org/TR/xml/#NT-Name
That's puzzling.
Mike
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]