lib/isodoc/xref/xref_util.rb in isodoc-2.10.5 vs lib/isodoc/xref/xref_util.rb in isodoc-2.10.6
- old
+ new
@@ -17,11 +17,12 @@
xpath.reject { |n| blank?(n["id"]) }
end
SECTIONS_XPATH =
"//foreword | //introduction | //acknowledgements | " \
- "//preface/terms | preface/definitions | preface/references | " \
+ "//preface/abstract | " \
+ "//preface/terms | //preface/definitions | //preface/references | " \
"//preface/clause | //sections/terms | //annex | " \
"//sections/clause | //sections/definitions | " \
"//bibliography/references | //bibliography/clause".freeze
def sections_xpath
@@ -32,10 +33,10 @@
"./*[not(self::xmlns:clause) and not(self::xmlns:appendix) and " \
"not(self::xmlns:terms) and not(self::xmlns:definitions)]//xmlns:X | " \
"./xmlns:X".gsub("X", asset)
end
- CHILD_SECTIONS = "./clause | ./appendix | ./terms | ./definitions | " \
- "./references".freeze
+ CHILD_SECTIONS = "./clause | ./appendix | ./terms | ./definitions | " \
+ "./references".freeze
end
end
end