metanorma / metanorma-iso

Metanorma processor for ISO standards
BSD 2-Clause "Simplified" License
13 stars 5 forks source link

PDF: Error: Property ID "foreword" (found on "fo:block") previously used #1127

Closed Intelligent2013 closed 6 months ago

Intelligent2013 commented 6 months ago

Source issue: https://github.com/metanorma/metanorma/issues/357#issuecomment-1986258804

From .pdf.err:

Property ID "foreword" (found on "fo:block") previously used; ID values must be unique within a document! (See position 65:41)
org.apache.fop.fo.ValidationException: Property ID "foreword" (found on "fo:block") previously used; ID values must be unique within a document! (See position 65:41)
javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Property ID "foreword" (found on "fo:block") previously used; ID values must be unique within a document! (See position 65:41) 
<foreword id="foreword" obligation="informative" displayorder="2">
    <title>Foreword</title>
    ...
    <review id="_e761ef6b-8203-d5a1-e38a-57a1cb66e1d1" reviewer="ISO" date="2017-01-01T00:00:00Z" type="todo" from="foreword" to="foreword">

Note: foreword id="foreword", but ISO XSLT means that foreword in from="foreword" to="foreword" is the element name (<foreword).

Intelligent2013 commented 6 months ago

Fixed.