Sha256: ccfdadfc3af1cecd64db99fd3d510739ca1358e0b443afd7f2ae2c81b2109e70

Contents?: true

Size: 668 Bytes

Versions: 8

Compression:

Stored size: 668 Bytes

Contents

require "isodoc"
require "fileutils"
require_relative "base_convert"

module IsoDoc
  module NIST
    # A {Converter} implementation that generates PDF HTML output, and a
    # document schema encapsulation of the document for validation
    class PdfConvert < IsoDoc::XslfoPdfConvert
      def initialize(options)
        @libdir = File.dirname(__FILE__)
        super
      end

      def pdf_stylesheet(docxml)
        series =  docxml&.at(ns("//bibdata/series/abbreviation"))&.text
        case series
        when "NIST CSWP" then "nist.cswp.xsl" 
        when "NIST CSTS" then "nist.csts.xsl" 
        else "nist.sp.xsl"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metanorma-nist-1.3.2 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.3.1 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.3.0 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.16 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.15 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.14 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.13 lib/isodoc/nist/pdf_convert.rb
metanorma-nist-1.2.12 lib/isodoc/nist/pdf_convert.rb