CalConnect / cc-calendar-vocab

CC 51000: Calendaring and scheduling -- Vocabulary
Apache License 2.0
1 stars 0 forks source link

Concept mentions not working in non-Clause 3 of a vocabulary document #3

Open ronaldtse opened 1 week ago

ronaldtse commented 1 week ago

Errors:

AsciiDoc Input: (ID _dbf283e5-cf07-41c4-9817-aa688d118490): Error: Term reference to `iCalendar` missing: "iCalendar" is not defined in document
AsciiDoc Input: (ID _cf734446-6bbb-429b-9ec7-fdf4f4d08d4c): Error: Term reference to `iCalendar` missing: "iCalendar" is not defined in document
AsciiDoc Input: (ID _c421fa9e-3ef1-402e-8958-d68831912851): Error: Term reference to `vCard` missing: "vCard" is not defined in document

And this also causes metanorma-ietf to crash.

The way to work with vocabulary documents is documented here:

[heading=terms and definitions]
== Terms related to specific technologies

=== Calendar data formats

==== iCalendar
standard format for representing calendar data

[.source]
<<cc_glossary>>

==== vCalendar
legacy format for calendar data superseded by {{iCalendar}}

[.source]
<<cc_glossary>>

==== vCard
standard format for representing contact information

[.source]
<<cc_glossary>>

==== xCal
XML representation of {{iCalendar}} data

[.source]
<<cc_glossary>>

==== xCard
XML representation of {{vCard}} data
opoudjis commented 1 week ago

The error is different: the terms are not being recognised as terms at all:

<clause id="_terms_related_to_specific_technologies" obligation="normative">
<title>Terms related to specific technologies</title>
<clause id="_calendar_data_formats" obligation="normative">
<title>Calendar data formats</title>
<clause id="_icalendar" obligation="normative">
<title>iCalendar</title>
<p id="_f659ec5d-98f0-a569-e214-ae67c6afbc49">standard format for representing calendar data</p>

That is because Metanorma has inherited from ISO the constraint that there is only one Terms and Definitions section per document, outside of ISO/IEC vocabulary documents; and 03-22-misc.adoc is marked up as a distinct sister clause to the Terms and Definitions clause, not a subclause of it.

If I comment out that bit:

//[heading=terms and definitions]
//== Terms related to specific technologies

The concepts process fine, because the "Calendar data formats" are recognised as terms fine.

So we have two alternatives:

@ronaldtse Which do you want?

ronaldtse commented 1 week ago

Given that vocabulary documents are quite widespread amongst SDOs, perhaps it is easier if we relax the "one terms section only per document" rule.

For this particular document, I am planning to also cross-publish to ISO as a proper vocabulary document, so I prefer keeping the same structure across documents.

opoudjis commented 1 week ago

These errors have gone away with the fix to standoc, as the clause is now recognised as a second terms clause.

We now have a different error: isodoc still is expecting to find a single terms section, so the second term section is not getting any anchors processed for it.

opoudjis commented 1 week ago

Have addressed that issue too.