Class: Isodoc::Gb::Convert
- Inherits:
-
IsoDoc::Convert
- Object
- IsoDoc::Convert
- Isodoc::Gb::Convert
- Defined in:
- lib/isodoc/gb/xref_gen.rb
Overview
A Converter implementation that generates GB output, and a document schema encapsulation of the document for validation
Instance Method Summary collapse
Instance Method Details
#reference_names(ref) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/isodoc/gb/xref_gen.rb', line 8 def reference_names(ref) isopub = ref.at(ns(ISO_PUBLISHER_XPATH)) docid = ref.at(ns("./docidentifier")) date = ref.at(ns("./date[@type = 'published']")) reference = format_ref(docid.text, isopub, date) @anchors[ref["id"]] = { xref: reference } end |