Enabling conditional processing when the target document declares a specific DTD.
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
DTD XML schema reference
bean.
<bean id="dita.dtd.bookMap" parent="xml.schema.dtd.abstract">
<property name="label" value="DITA BookMap" />
<property name="id" value="bookmap" />
<property name="publicId" value="-//OASIS//DTD DITA BookMap//EN" />
<property name="systemId" value="http://docs.oasis-open.org/dita/v1.1/OS/dtd/bookmap.dtd" />
</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.dtd.bookMap" />
<ref bean="dita.dtd.bookMap-1.x" />
<ref bean="dita.dtd.bookMap-1.1" />
<ref bean="dita.dtd.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 DTD will automatically be recognized and will be processed for metadata and link management. This
also applies in the Pipeline Configuration wizards.