Skip to content

Commit 389dbb5

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/isodoc/ribose/presentation_xml_convert.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ def termsource1(elem)
2424
end
2525

2626
def preface_rearrange(doc)
27-
preface_move(doc.at(ns("//preface/abstract")),
27+
preface_move(doc.xpath(ns("//preface/abstract")),
2828
%w(foreword executivesummary introduction clause acknowledgements), doc)
29-
preface_move(doc.at(ns("//preface/foreword")),
29+
preface_move(doc.xpath(ns("//preface/foreword")),
3030
%w(executivesummary introduction clause acknowledgements), doc)
31-
preface_move(doc.at(ns("//preface/executivesummary")),
31+
preface_move(doc.xpath(ns("//preface/executivesummary")),
3232
%w(introduction clause acknowledgements), doc)
33-
preface_move(doc.at(ns("//preface/introduction")),
33+
preface_move(doc.xpath(ns("//preface/introduction")),
3434
%w(clause acknowledgements), doc)
35-
preface_move(doc.at(ns("//preface/acknowledgements")),
35+
preface_move(doc.xpath(ns("//preface/acknowledgements")),
3636
%w(), doc)
3737
end
3838

0 commit comments

Comments
 (0)