OASIS Darwin Information Typing Architecture (DITA) TC

 View Only
  • 1.  Review Task: ID attribute

    Posted 03-18-2025 10:34

    The spec says, "All values for the @id attribute must be XML name tokens." But then it is stated that @id attributes for <topic> and <map> elements are of XML attribute type ID. However, the attribute type ID must match the syntax rule for an XML name, which is more strict than that of a name token. See Extensible Markup Language (XML) 1.0 (Fifth Edition)

    W3 remove preview
    Extensible Markup Language (XML) 1.0 (Fifth Edition)
    Extensible Markup Language, abbreviated XML, describes a class of data objects called XML documents and partially describes the behavior of computer programs which process them. XML is an application profile or restricted form of SGML, the Standard Generalized Markup Language[ISO 8879]. By construction, XML documents are conforming SGML documents.
    View this on W3 >

    in particular the difference between the productions for NameStartChar and NameChar.

    The table at the end is clear on this, but the text could be misleading.



    ------------------------------
    Frank Wegmann
    Software AG
    Darmstadt
    ------------------------------