Sha256: 77c7d314e56d85618e1210263de76dd227fac1e4314a92ddbdeb78f1b5cdfb14

Contents?: true

Size: 548 Bytes

Versions: 46

Compression:

Stored size: 548 Bytes

Contents

#!/usr/bin/ruby
require 'xml/smart'

Dir['*.xml'].each do |f|
  XML::Smart.modify(f) do |doc|
    doc.register_namespace 'd', 'http://cpee.org/ns/description/1.0'
    doc.register_namespace 'p', 'http://riddl.org/ns/common-patterns/properties/1.0'
    if doc.root.qname.name == 'testset'
      doc.find('//attributes | //endpoints | //dataelements | //positions | //transformation | //handlerwrapper | //description').each do |e|
        e.namespaces[nil] = 'http://cpee.org/ns/properties/2.0'
        e.namespace = nil
      end
    end
  end
end

Version data entries

46 entries across 27 versions & 1 rubygems

Version Path
cpee-2.0.30 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.30 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.28 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.28 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.27 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.27 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.26 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.26 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.25 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.25 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.24 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.24 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.23 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.23 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.22 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.22 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.21 tools/test/templates.legacy/convert_cpee2.rb
cpee-2.0.21 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.20 cockpit/templates.legacy/convert_cpee2.rb
cpee-2.0.20 tools/test/templates.legacy/convert_cpee2.rb