Method: IsoDoc::PresentationXMLConvert#single_term_clause_unnest
- Defined in:
- lib/isodoc/presentation_function/section.rb
#single_term_clause_unnest(elem) ⇒ Object
75 76 77 78 79 80 81 82 |
# File 'lib/isodoc/presentation_function/section.rb', line 75 def single_term_clause_unnest(elem) t = elem.at(ns("./terms | ./definitions | ./references")) t.xpath(ns(".//clause | .//terms | .//definitions | .//references")) .each do |c| tit = c.at(ns("./fmt-title")) or next tit["depth"] = tit["depth"].to_i - 1 unless tit["depth"] == "1" end end |