create_comment
Build an S1000D comment data module (comment.xsd) with type, priority, paragraphs, originator, and sender; verify it against XSD and BREX, then write it to the CSDB only when requested.
Instructions
Build a comment data module (comment.xsd): a remark about data modules, publication modules, DMLs or DDNs, with the type (q / i / r), the priority code (cp01–cp99), paragraphs, the originator and the sender. The enumerations are written as given and not interpreted. The sequence number defaults to the next free one in the CSDB. The XML is verified (comment.xsd, BREX). Returns xml, fileName, commentCode, verification, fixes[]. Writes only when write is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | What the comment is about (all of one kind). Empty: noReferences. | |
| title | No | ||
| write | No | Write the result into the CSDB (the first folder of csdbDirs / S1000D_CSDB_DIR). Default false: the XML is only returned. Nothing is written when the XML is not valid against the XSD unless allowInvalid is true. | |
| remarks | No | ||
| csdbDirs | No | CSDB folders (in addition to S1000D_CSDB_DIR) used to resolve references, find BREX and number new objects. The FIRST folder is also where write: true writes. | |
| language | Yes | 言語(language 要素) | |
| maxFixes | No | Cap on the remaining fixes listed in the response (default 50). | |
| brexDmRef | No | BREX the comment follows (default: the default BREX in S1000D_SPEC_DIR). | |
| issueDate | No | YYYY-MM-DD (default today). | |
| issueType | No | ||
| overwrite | No | With write: true, replace a file of the same name. Default false: an existing file is left alone and reported as write-conflict. | |
| seqNumber | No | Default: the next free number in the CSDB. | |
| originator | Yes | ||
| paragraphs | Yes | simplePara texts, written as given. | |
| commentType | Yes | ||
| senderIdent | Yes | Sender enterprise code (5 characters). | |
| allowInvalid | No | With write: true, write even when verification.schema.state is "invalid". Default false. | |
| responseType | No | rt01–rt99. Omit for no commentResponse. | |
| modelIdentCode | Yes | ||
| yearOfDataIssue | No | Default: this year. | |
| commentPriorityCode | Yes | ||
| securityClassification | Yes | 01–99, written as given. |