XML namespace declarations in SP config files
Cantor, Scott
cantor.2 at osu.edu
Wed Apr 6 09:22:09 EDT 2016
On 4/6/16, 12:14 AM, "users on behalf of Matthew X. Economou" <users-bounces at shibboleth.net on behalf of xenophon at irtnog.org> wrote:
>Why are there duplicate XML namespace declarations in the SP
>configuration files? For example, in shibboleth2.xml the top-level
>SPConfig elements sets the default namespace to
>urn:mace:shibboleth:2.0:native:sp:config, but it also sets the conf
>namespace to the same value. attribute-policy.xml does the same thing,
>where both the default namespace and the basic namespace are set to
>urn:mace:shibboleth:2.0:afp:mf:basic.
Any time there are qualified attributes, it becomes necessary to define a prefix, and the defaulting is there to avoid extra markup. Prefixes are also better when using xsi:type, for clarity.
>I ask because I'm writing a Salt state formula that generates these
>configuration files, and I want to make sure to emit the correct XML for
>use with the SP.
Then you need to conform to the schema(s), and what you choose to do otherwise is up to you.
-- Scott
More information about the users
mailing list