Skip to content

Autotailor generates xml with NS0 namespace #2309

@Mab879

Description

@Mab879

Discussed in #2308

Originally posted by johanmontald-cloud February 12, 2026
The generated tailoring file has namespace ns0, which is inconsistent with the SSG file where the prefix for NS = "http://checklists.nist.gov/xccdf/1.2" is xccdf-1.2.
To rectify, modify autotailor with

31a32

NS_PREFIX = "xccdf-1.2"
267a269,271
#--- Set the NameSpace Prefix, otherwise ns0 is used.
ET.register_namespace(NS_PREFIX, NS)

This should be an easy fix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions