Skip to content

Commit

Permalink
Ignore unknown namespaces on import
Browse files Browse the repository at this point in the history
Resolves ukf/ukf-meta#154.
  • Loading branch information
iay committed Apr 30, 2018
1 parent fee4cc5 commit fca94f2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions mdx/uk/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,32 @@
<ref bean="fetchImportMetadata"/>
<ref bean="populateItemIds"/>

<!--
Strip all elements and attributes that are in namespaces
we don't accept from registrants.
-->
<bean id="whitelistImportedNamespaces" parent="mda.NamespacesStrippingStage"
p:whitelisting="true">
<property name="namespaces">
<set>
<ref bean="alg_namespace"/>
<ref bean="ds_namespace"/>
<ref bean="hoksso_namespace"/>
<ref bean="idpdisc_namespace"/>
<ref bean="init_namespace"/>
<ref bean="md_namespace"/>
<ref bean="mdattr_namespace"/>
<ref bean="mdrpi_namespace"/>
<ref bean="mdui_namespace"/>
<ref bean="remd_namespace"/>
<ref bean="saml_namespace"/>
<ref bean="shibmd_namespace"/>
<ref bean="xenc_namespace"/>
<ref bean="xml_namespace"/>
</set>
</property>
</bean>

<!-- perform schema validation and stop immediately if this fails -->
<ref bean="checkSchemas"/>
<ref bean="errorTerminatingFilter"/>
Expand Down

0 comments on commit fca94f2

Please sign in to comment.