lib/metanorma/iso/validate.rb in metanorma-iso-2.2.3 vs lib/metanorma/iso/validate.rb in metanorma-iso-2.2.4

- old
+ new

@@ -34,13 +34,13 @@ preceding = t.at("./preceding-sibling::text()[last()]") next unless !preceding.nil? && /\b(see| refer to)\s*\Z/mi.match(preceding) (target = root.at("//*[@id = '#{t['target']}']")) || next - if target.at("./ancestor-or-self::*[@obligation = 'normative']") + target.at("./ancestor-or-self::*[@obligation = 'normative']") && + !target.at("./ancestor::sections") and @log.add("Style", t, "'see #{t['target']}' is pointing to a normative section") - end end end # ISO/IEC DIR 2, 15.5.3 def see_erefs_validate(root)