Lists Home |
Date Index |
On Mon, Oct 25, 2004 at 11:03:51AM -0700, James William Pye wrote:
> This works out nicely, I think. It provides entity functionality with
> namespaces, which I find quite attractive, and very interesting.
As you note, you can already do this in XInclude.
It doesn't work in attribute values, though --
This sort of approach (using element syntax for replaceable
content) has been discussed before, and has been deployed in
environments ranging from semiconductor data sheets to
transcriptions of historical texts.
If it hasn't caught on everywhere, I think it's largely
because of problems with attribute values.
You are more likely to want
<constant name="amp" />
<constant name="companyName" />
in practice -- i.e. not just a character, and perhaps even containing
But then you sometimes want to strip out the markup, so you end
up with multiple defintions or with something like
<constant name="companyName" format="plain" />
The contribution of namespaces here is perhaps that schema writers could
incorporate the namespace more easily, although it also may make life
harder for DtD writers.
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/