Best,
Kris
Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Eberlein Consulting LLC
Editors (e.g. Oxygen) might add the 'title-role' attribute when creating an element like 'titlehint'. That's typically not necessary nor desirable.
I tested and Oxygen indeed inserts the attribute like this:
<navtitle title-role="navigation"></navtitle>
Oxygen would not insert in general the default value of an attribute but in this case the attribute is considered required. I have not seen many situations where an attribute is considered both required and also has a default value in the schema, usually it's either one or the other.
For example if the attribute would be defined as optional in the RNG, then Oxygen would no longer feel compelled to insert it:
<define name="navtitle.attributes"> <optional> <attribute name="title-role" a:defaultValue="navigation"/> </optional>
-
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <oasis-tcs/dita/issues/915/2084336408@github.com>