Skip to content

Commit eb54963

Browse files
committed
feat: use proper namespace configuration
1 parent f7e54fc commit eb54963

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

lib/termium/extract.rb

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,13 @@ class Extract < Lutaml::Model::Serializable
1212

1313
xml do
1414
root "termium_extract"
15-
# namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"
15+
namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"
1616

17-
map_attribute "language", to: :language
18-
map_element "extractLanguage", to: :extract_language
19-
map_element "core", to: :core
17+
map_attribute "language", to: :language, namespace: nil
18+
map_element "extractLanguage", to: :extract_language, namespace: nil
19+
map_element "core", to: :core, namespace: nil
2020
end
2121

22-
# xml do
23-
# root "termium_extract"
24-
# namespace "http://termium.tpsgc-pwgsc.gc.ca/schemas/2012/06/Termium", "ns2"
25-
26-
# map_attribute "language", to: :language, namespace: nil
27-
# map_element "extractLanguage", to: :extract_language, namespace: nil
28-
# map_element "core", to: :core, namespace: nil
29-
# end
30-
3122
def to_concept
3223
coll = Glossarist::ManagedConceptCollection.new
3324
coll.managed_concepts = core.map(&:to_concept)

0 commit comments

Comments
 (0)