You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by George Cristian Bina <ge...@sync.ro> on 2003/12/15 16:08:05 UTC
Names beginning with a match to (('X'|'x')('M'|'m')('L'|'l'))
Hi,
According with
*** http://www.w3.org/TR/REC-xml#sec-logical-struct ***
This specification does not constrain the semantics, use, or (beyond syntax)
names of the element types and attributes, except that names beginning with
a match to (('X'|'x')('M'|'m')('L'|'l')) are reserved for standardization in
this or future versions of this specification.
***
The following file is reported by Xerces to be both well formed and valid
against the DTD below:
*** XML.xml ***
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE XML SYSTEM "XML.dtd">
<XML/>
***
*** XML.dtd ***
<?xml encoding="UTF-8"?>
<!ELEMENT XML EMPTY>
***
Are there any reasons Xerces does not check for this ?
Best Regards,
George
----------------------------------------------------------------------------
George Cristian Bina mailto:george@oxygenxml.com
<oXygen/> XML Editor - http://www.oxygenxml.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: Names beginning with a match to (('X'|'x')('M'|'m')('L'|'l'))
Posted by George Cristian Bina <ge...@sync.ro>.
> In this case, "Reserved" means "If you do it for any reason *except* as
> part of an approved standard, don't complain if a later standard yanks that
> name out from under you."
Thank you for the explanation.
Best Regards,
George
-----------------------------------------------------------------------------
George Cristian Bina mailto:george@oxygenxml.com
<oXygen/> XML Editor - http://www.oxygenxml.com/
Re: Names beginning with a match to (('X'|'x')('M'|'m')('L'|'l'))
Posted by Joseph Kesselman <ke...@us.ibm.com>.
In this case, "Reserved" means "If you do it for any reason *except* as
part of an approved standard, don't complain if a later standard yanks that
name out from under you."
As a specific example: Consider how XML Namespaces was introduced. It
relies on attributes starting with xmlns. If parsers had rejected these, we
would have been unable to use them to prototype code which depended upon
this new standard. Of course anyone who happened to have used an xmlns or
xmlns:* attribute had their document broken by this change, but that's
their fault for having used a reserved name.
______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: Names beginning with a match to (('X'|'x')('M'|'m')('L'|'l'))
Posted by Igor Malinin <ig...@widespace.ee>.
George Cristian Bina wrote:
> According with http://www.w3.org/TR/REC-xml#sec-logical-struct :
> This specification does not constrain the semantics, use, or (beyond syntax)
> names of the element types and attributes, except that names beginning with
> a match to (('X'|'x')('M'|'m')('L'|'l')) are reserved for standardization in
> this or future versions of this specification.
_reserved_, but it is not a well-formedness or validity constraint. Only
processing instruction target cannot match (('X'|'x')('M'|'m')('L'|'l')).
> The following file is reported by Xerces to be both well formed and valid
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE XML SYSTEM "XML.dtd">
> <XML/>
>
> Are there any reasons Xerces does not check for this ?
There is no reason to check this since such constraint is not defined
for element names.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: Names beginning with a match to (('X'|'x')('M'|'m')('L'|'l'))
Posted by Meilin Yeoh <M....@lboro.ac.uk>.
----- Original Message -----
From: "George Cristian Bina" <ge...@sync.ro>
To: <xe...@xml.apache.org>
Sent: Monday, December 15, 2003 3:08 PM
Subject: Names beginning with a match to (('X'|'x')('M'|'m')('L'|'l'))
> Hi,
>
> According with
> *** http://www.w3.org/TR/REC-xml#sec-logical-struct ***
> This specification does not constrain the semantics, use, or (beyond
syntax)
> names of the element types and attributes, except that names beginning
with
> a match to (('X'|'x')('M'|'m')('L'|'l')) are reserved for standardization
in
> this or future versions of this specification.
> ***
>
> The following file is reported by Xerces to be both well formed and valid
> against the DTD below:
>
> *** XML.xml ***
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE XML SYSTEM "XML.dtd">
> <XML/>
> ***
>
> *** XML.dtd ***
> <?xml encoding="UTF-8"?>
> <!ELEMENT XML EMPTY>
> ***
>
> Are there any reasons Xerces does not check for this ?
>
> Best Regards,
> George
> --------------------------------------------------------------------------
--
> George Cristian Bina mailto:george@oxygenxml.com
> <oXygen/> XML Editor - http://www.oxygenxml.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org