Skip to content

Commit

Permalink
Adding namespace declaration to filter XSLT
Browse files Browse the repository at this point in the history
  • Loading branch information
klakegg committed Nov 22, 2023
1 parent 6aa6a42 commit a513e6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/fields-unpublished
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ fields = source['fields'].to_h {|o| [o['id'], o]}

NS = {
'xmlns:xsl' => 'http://www.w3.org/1999/XSL/Transform',
'version' => '2.0'
'version' => '2.0',
'xmlns:cac' => 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2',
'xmlns:cbc' => 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2',
'xmlns:ext' => 'urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2',
'xmlns:efac' => 'http://data.europa.eu/p27/eforms-ubl-extension-aggregate-components/1',
'xmlns:efext' => 'http://data.europa.eu/p27/eforms-ubl-extensions/1',
'xmlns:efbc' => 'http://data.europa.eu/p27/eforms-ubl-extension-basic-components/1',
}

doc = Nokogiri::XML::Builder.new do |xml|
Expand Down

0 comments on commit a513e6a

Please sign in to comment.