Re: Something like xml:dir

Tab Atkins Jr. scripsit:

> I don't know much about DTDs, but isn't it possible to define default
> values for attributes per element?  I mean, you even point out that
> any problem such a case would have with xml:dir would also apply to
> xml:lang.

Yes, it's possible, but relatively little XML processing actually uses DTDs
nowadays.  XML Schema and RELAX NG have more or less taken over the
landscape, and while both provide features to *specify* attribute defaulting,
most schemas don't do it (to make schemaless processing easy) and most
and most software doesn't depend on it.

In practice, attribute defaulting winds up being an application feature.

-- 
Why are well-meaning Westerners so concerned that   John Cowan
the opening of a Colonel Sanders in Beijing means   cowan@ccil.org
the end of Chinese culture? [...]  We have had      http://www.ccil.org/~cowan
Chinese restaurants in America for over a century,
and it hasn't made us Chinese.  On the contrary,
we obliged the Chinese to invent chop suey.            --Marshall Sahlins

Received on Wednesday, 27 October 2010 17:13:43 UTC