Sha256: 7dbeb6a9746cd910eaaa73115fffd79d04f8ec9b1d2dd8fd8fe95b984e8810e6

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

require "isodoc"

module Isodoc
  module Gb
    # A {Converter} implementation that generates GB output, and a document
    # schema encapsulation of the document for validation
    class Convert < IsoDoc::Convert
      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-gb-0.2.4 lib/isodoc/gb/xref_gen.rb
asciidoctor-gb-0.2.3 lib/isodoc/gb/xref_gen.rb
asciidoctor-gb-0.2.2 lib/isodoc/gb/xref_gen.rb