Class: Metanorma::IsoDocument::Sections::IsoPreface

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/metanorma/iso_document/sections/iso_preface.rb

Overview

Prefatory clauses in an ISO/IEC document. Corresponds to isostandard.rng:

preface = element preface { abstract?, foreword, introduction? }

This class deliberately does NOT inherit StandardDocument::Preface: lutaml-model deep-duplicates a parent's XML mappings into subclasses, so inheriting would keep the isodoc-level acknowledgements and executivesummary mappings that the ISO grammar forbids. Attributes are composed directly instead.

The clause mapping is a documented extension required by real ISO presentation output, which emits front-matter clauses such as <clause type="toc"> ahead of the foreword. content mirrors clause for the generic preface-content consumers (e.g. the mirror renderer), matching the runtime behavior of the previous inherited dual mapping.