lib/xml/mixup.rb in xml-mixup-0.1.11 vs lib/xml/mixup.rb in xml-mixup-0.1.12

- old
+ new

@@ -438,10 +438,11 @@ spec = [] # add xslt stylesheet if transform - spec << (transform.is_a?(Hash) ? transform : + spec << (transform.is_a?(Nokogiri::XML::ProcessingInstruction) ? + transform.dup : transform.is_a?(Hash) ? transform : { '#pi' => 'xml-stylesheet', type: 'text/xsl', href: transform }) end # add doctype declaration if dtd