- From: Ian Hickson <py8ieh@bath.ac.uk>
- Date: Tue, 28 Sep 1999 12:39:21 +0100 (BST)
- To: xml-names-editor@w3.org
Hi. Can entities be namespaced? For example, take the following XHTML document: <html xmlns="http://www.w3.org/TR/xhtml1/strict"> <head> <title>Mozilla Tests: XML namespace</title> </head> <body> <h1>Relationships between θ and π</h1> <math xmlns="http://www.w3.org/Math/MathML"> <mrow> <mi>θ</mi> <mo>=</mo> <mn>π</mn> </mrow> </math> <relationships xmlns="http://ns.ieh.ch/relationships/dtd"> <equals type="numeric"> <i>θ</i> <i>π</i> </equals> </relationships> </body> </html> It has a section that is namespaced as MathML, and another that is namespaced as a fictional "relationships" fragment, and each of the three namespaces (XHTML, MathML, relationships) have different expansions for their respective θ and π entities. Currently, the above document is not even well-formed, because the entities have not been declared (after all, there is no DOCTYPE). But even if they _were_ declared, there would still be no way to make "θ" mean something different depending on the active namespace! And the following is even less possible: <math xmlns="http://www.w3.org/Math/MathML"> <mrow> <mi>θ</mi> <mo>=</mo> <mn>π</mn> </mrow> <mtext xmlns:html="http://www.w3.org/TR/xhtml1/strict"> <html:p>This is how &html:theta and &html:pi; are equal.</html:p> </mtext> </math> Will this ever be possible? (Is it possible now?) Will Schema cover this? If you are not the appropriate people to answer this, could you point me to an appropriate mailing list? Thanks. -- Ian Hickson : Is your JavaScript ready for Nav5 and IE5? : Get the latest JavaScript client sniffer at : http://developer.netscape.com/docs/examples/javascript/browser_type.html
Received on Tuesday, 28 September 1999 07:39:27 UTC