Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
As pointed out during the thread starting here on TEI-L:
the <attRef> element is never mentioned in chapter 22. There are also only two examples for it, which are identical. The use-case discussed in the thread might provide possible examples.
The example given in the P5 documentation is as follows:
but I was not able to get it to work. However, this worked:
Louis-Dominique's issue has been corrected -- you have to drop the colons, and the examples now shows correctly, but that fact also has to be documented.
This is potentially a solution to the unease with which we contemplate the idea of claiming membership of a class, then deleting some of its attributes; with this, you can have an element that does not claim membership of the class, and instead pulls in only the attributes it wants from that class.
We really need to revamp the syntax, here, though. Instead of name= having a RELAX NG pattern, we really should refer to the class and particular attribute. E.g. <attRef class="att.global" name="xml:id"/>.
Action on MH to watch as SR and SB implement this, and then document it properly when it's done.
LB suggests we can use classRef instead, using include or exclude of attributes. Therefore we might be able to get rid of this element.
Posted to the Council list asking for any answers to these questions:
Are there (currently) any good use-cases for end-users which depend
on the use of <attRef> and which will work with current ODD processing?
If there are such use-cases, can the same results be achieved using
other existing elements and attributes?
Will future plans for ODD make <attRef> obsolete anyway?
No responses to the questions as of today. I guess this will need to be discussed in the FtF.
Feature request to extract attribute from locally defined element, either because it's special or because it over rides class definition, would be useful. Maybe add @element as an alternative to @class
F2F Raleigh: Prods MH to progress ticket.