Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

XSLT transform deletes namespace from XML tag #532

Open
bbuchalter opened this Issue · 0 comments

1 participant

@bbuchalter

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
Something went wrong with that request. Please try again.