Use of '&' in element of XML Document
ricko at allette.com.au
Wed Jul 28 07:02:31 BST 1999
From: John E. Simpson <simpson at polaris.net>
>It's possible I'm missing something extremely (perversely) subtle, but
>don't get the sense of "*cannot* redeclare" [emphasis added] at all in
>above passage. True, it does say that "all XML processors must
>the predefined entities. If no redeclaration at all were permitted, the
>sentence beginning "If the entities in question are declared" wouldn't
>a lot of sense, right?
There is a similar issue with xml:lang.
Some processors (e.g. early LotusXSL and others) did not have built-in
declarations for xml:lang. But when you tried to give one, it required
a namespace declaration. And then it would say that declaring an
xml namespace was not allowed.
I think it is a sign of inadequate testing. Developers should check that
their products allow xml:lang in WF, valid and namespaced documents.
Even just putting xml:lang="en-US" on one element in a test file
expose the problem.
The spec says "In valid documents, this attribute, like any other, must
declared if it is used."
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev