Enabling conditional processing when the target document declares a specific XSD.
In the following steps you will be creating and/or configuring Spring beans in a Spring context file. A
basic knowledge of Spring and the Spring Framework is required.
-
Open or create a new Spring context file.
-
Create a new
XSD XML schema reference
bean.
<bean id="dita.xsd.bookMap" parent="xml.schema.xsd.abstract">
<property name="label" value="DITA BookMap" />
<property name="location" value="urn:oasis:names:tc:dita:xsd:bookmap.xsd" />
</bean>
-
Add the schema reference to an existing
XML schema filter
by defining an
XML schema filter collection entry
bean.
<bean parent="xml.schema.filter.collection.entry">
<property name="schemas">
<list>
<ref bean="dita.xsd.bookMap" />
<ref bean="dita.xsd.bookMap-1.x" />
<ref bean="dita.xsd.bookMap-1.2" />
</list>
</property>
<property name="registry" ref="dita.schemas.bookMap" />
</bean>
-
Restart the application server for your changes to take effect.
The new XML schema reference will be available in Componize. Any content written to the repository with the
corresponding XSD will automatically be recognized and will be processed for metadata and link management. This
also applies in the Pipeline Configuration wizards.