W3C home > Mailing lists > Public > www-html@w3.org > July 2001

Entity Redeclaration in Module Implementation as a DTD

From: <kjc777@nca.or.kr>
Date: Tue, 17 Jul 2001 22:28:41 +0900
Message-ID: <001e01c10ec4$65209ea0$71421eca@nca.or.kr>
To: "w3c" <www-html@w3.org>, "w3c member" <w3c-html-wg@w3.org>
I have two questions;

Firstly, 

I want to know where "NS.prefixed" and "NS.decl.attrib" were defined.

Secondly, 

As you say, Section 4.2 (Entity Declarations) of the XML Recommendation [1] says:
"If the same entity is declared more than once, the first declaration encountered is binding".

I want to know if the next example does not have any problem in redeclaration.

It shows an example of using a different XML namespace prefix in a document instance. 
As you know, the initial value of parameter entity for prefix was set to "inventory" 
in the case of prefixed mode.

<!DOCTYPE i:shelf SYSTEM "inventory-1.dtd" [
    <!ENTITY % Inventory.prefixed "INCLUDE">
    <!ENTITY % Inventory.prefix "i">
]>
<i:shelf xmlns:i="http://www.example.com/xmlns/inventory">
    <i:item>
        <i:desc>
          this is a description.
        </i:desc>
        <i:sku>
          this is the price.
        </i:sku>
        <i:price>
          this is the price.
        </i:price>
    </i:item>
</i:shelf>

Hope your comments,

Jin.
Received on Tuesday, 17 July 2001 09:26:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT