Sha256: fcf4e8b8fb81a5c45313794255009dad665cf73b11e90eb6787c20daf1a74b94

Contents?: true

Size: 369 Bytes

Versions: 9

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true
module TrajectPlus
  module Macros
    # Macros for extracting TEI values from Nokogiri documents
    module Tei
      NS = { tei: 'http://www.tei-c.org/ns/1.0' }.freeze

      # @param xpath [String] the xpath query expression
      def extract_tei(xpath, options = {})
        extract_xml(xpath, NS, options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
traject_plus-1.3.0 lib/traject_plus/macros/tei.rb
traject_plus-1.2.2 lib/traject_plus/macros/tei.rb
traject_plus-1.1.1 lib/traject_plus/macros/tei.rb
traject_plus-1.1.0 lib/traject_plus/macros/tei.rb
traject_plus-1.0.0 lib/traject_plus/macros/tei.rb
traject_plus-0.1.0 lib/traject_plus/macros/tei.rb
traject_plus-0.0.3 lib/traject_plus/macros/tei.rb
traject_plus-0.0.2 lib/traject_plus/macros/tei.rb
traject_plus-0.0.1 lib/traject_plus/macros/tei.rb