Sha256: c006c678faeec9c8a207984fb388f51a2f3e1a4ef0289e7162356a20d62d128f
Contents?: true
Size: 935 Bytes
Versions: 9
Compression:
Stored size: 935 Bytes
Contents
module Metanorma module Jis class Converter < Iso::Converter def doctype_validate(_xmldoc) %w(japanese-industrial-standard technical-report technical-specification amendment).include? @doctype or @log.add("Document Attributes", nil, "#{@doctype} is not a recognised document type") end def script_validate(xmldoc) script = xmldoc&.at("//bibdata/script")&.text %w(Jpan Latn).include?(script) or @log.add("Document Attributes", nil, "#{script} is not a recognised script") end def validate(doc) content_validate(doc) schema_validate(formattedstr_strip(doc.dup), File.join(File.dirname(__FILE__), "jis.rng")) end def image_name_validate(xmldoc); end def norm_bibitem_style(xmldoc); end def xrefs_mandate_validate(root); end end end end
Version data entries
9 entries across 9 versions & 1 rubygems