XSLT transform deletes namespace from XML tag #532

Open
bbuchalter opened this Issue Sep 7, 2011 · 0 comments

Projects

None yet

1 participant

Expected behavior

Original XML: <w:headerReference w:type="default" r:id="rId8"/>
Transformed XML: <w:headerReference w:type="default" r:id="rId8"/>

Actual behavior

Original XML: <w:headerReference w:type="default" r:id="rId8"/>
Transformed XML: <w:headerReference w:type="default" id="rId8"/>
(Note the 'r' namespace is removed from the attribute 'id')

Steps to reproduce

See readme on https://github.com/bbuchalter/nokogiri-xml-transform-bug

Reference Documents

Thread on nokogiri-talk: http://groups.google.com/group/nokogiri-talk/browse_thread/thread/b7ec9c158610a58b
XSLT: https://github.com/bbuchalter/nokogiri-xml-transform-bug/blob/master/sample-data/transform.xslt
XML Template: https://github.com/bbuchalter/nokogiri-xml-transform-bug/blob/master/sample-data/template.xml
Ruby code performing transform: https://github.com/bbuchalter/nokogiri-xml-transform-bug/blob/master/app/models/document.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment