Sha256: e370521dc4fa1a84f4c90174dc7b4cf1eaa2f5e796f4c22c64232227861dad9d
Contents?: true
Size: 826 Bytes
Versions: 74
Compression:
Stored size: 826 Bytes
Contents
require_relative "base_convert" require "isodoc" module IsoDoc module Ogc # 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) doctype = docxml&.at(ns("//bibdata/ext/doctype"))&.text doctype = "other" unless %w(abstract-specification-topic best-practice change-request-supporting-document community-practice community-standard discussion-paper engineering-report policy reference-model release-notes standard user-guide test-suite white-paper).include? doctype "ogc.#{doctype}.xsl" end end end end
Version data entries
74 entries across 71 versions & 2 rubygems