We can implement attribute inheritance by SAX or other event-driven
API's (e.g., XML in perl).
We only have to introduce one method of the class DocumentHandler.
setInheritedAttributes(String)
This sets names of inherited attributes. By default,
"xml:lang" and "xml:space" are inherited.
An attributeList (the second argument for startElement)
now contains attribute-value pairs for inherited
attributes.
Does such an API cover your concern?
Of course, this has to become namespace-aware. That is, the argument
of setInheritedAttribute should be a pair of URI and local part.
Does this cause troubles to your implementation? > Paul
Makoto
Fuji Xerox Information Systems
Tel: +81-44-812-7230 Fax: +81-44-812-7231
E-mail: murata@apsdc.ksp.fujixerox.co.jp