OASIS Darwin Information Typing Architecture (DITA) TC

 View Only

Fw: [oasis-tcs/dita] The alternativeTitlesDomain.rng declares the 'title-role' attribute as required (Issue #915)

  • 1.  Fw: [oasis-tcs/dita] The alternativeTitlesDomain.rng declares the 'title-role' attribute as required (Issue #915)

    Posted 10 days ago


    Best,

    Kris

    Kristen James Eberlein
    Chair, OASIS DITA Technical Committee
    Eberlein Consulting LLC

    From: Radu Coravu <notifications@github.com>
    Sent: Tuesday, April 30, 2024 12:06 AM
    To: oasis-tcs/dita <dita@noreply.github.com>
    Cc: Subscribed <subscribed@noreply.github.com>
    Subject: Re: [oasis-tcs/dita] The alternativeTitlesDomain.rng declares the 'title-role' attribute as required (Issue #915)
     

    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>