lib/asciidoctor/rfc/common/base.rb in metanorma-ietf-1.0.3 vs lib/asciidoctor/rfc/common/base.rb in metanorma-ietf-1.0.4

- old
+ new

@@ -263,10 +263,12 @@ pi = Nokogiri::XML::ProcessingInstruction.new(doc, "xml-stylesheet", 'type="text/xsl" href="rfc2629.xslt"') doc.root.add_previous_sibling(pi) end - doc.create_internal_subset("rfc", nil, "rfc2629.dtd") + dtd = File.join(File.expand_path('../../../..', File.dirname(__FILE__)), "rfc2629.dtd") + + doc.create_internal_subset("rfc", nil, dtd) rfc_pis = common_rfc_pis(node) rfc_pis.each_pair do |k, v| pi = Nokogiri::XML::ProcessingInstruction.new(doc, "rfc", "#{k}=\"#{v}\"")