Skip to content

Commit db4fc1d

Browse files
committed
bugfix: reversing order of multiple preface elements with same name in Presentation XML: metanorma/isodoc#617
1 parent e0523c3 commit db4fc1d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/isodoc/iho/presentation_xml_convert.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ def biblio_ref_entry_code(ordinal, _idents, _ids, _standard, _datefn,
1818
def middle_title(docxml); end
1919

2020
def preface_rearrange(doc)
21-
preface_move(doc.at(ns("//preface/abstract")),
21+
preface_move(doc.xpath(ns("//preface/abstract")),
2222
%w(foreword executivesummary introduction clause acknowledgements), doc)
23-
preface_move(doc.at(ns("//preface/foreword")),
23+
preface_move(doc.xpath(ns("//preface/foreword")),
2424
%w(executivesummary introduction clause acknowledgements), doc)
25-
preface_move(doc.at(ns("//preface/executivesummary")),
25+
preface_move(doc.xpath(ns("//preface/executivesummary")),
2626
%w(introduction clause acknowledgements), doc)
27-
preface_move(doc.at(ns("//preface/introduction")),
27+
preface_move(doc.xpath(ns("//preface/introduction")),
2828
%w(clause acknowledgements), doc)
29-
preface_move(doc.at(ns("//preface/acknowledgements")),
29+
preface_move(doc.xpath(ns("//preface/acknowledgements")),
3030
%w(), doc)
3131
end
3232

0 commit comments

Comments
 (0)