During the lab, you will be creating and loading a new XML catalog for the troubleshooting DTDs. With the new DTD configured, Componize will be able to validate your troubleshooting files.
troubleshooting.dtdtroubleshooting.modcatalog.xml.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public"> </catalog>
catalog.xml file in your favorite editor.
dtd/ directory using a relative path.
<group xml:base="dtd/"> </group>
troubleshooting.dtd file.
troubleshooting.mod file.
<group xml:base="dtd/"> <public publicId="-//OASIS//DTD DITA Troubleshooting Samples//EN" uri="troubleshooting.dtd" /> <public publicId="-//OASIS//ELEMENTS DITA Troubleshooting Samples//EN" uri="troubleshooting.mod" /> </group>
context.xml.
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> </beans>
context.xml file in your favorite editor.
| Property | Type | Mandatory | Description |
|---|---|---|---|
| location | String | Optional | A catalog (URI as String) to be loaded. |
| locations | List <String> | Optional | List of catalogs (URIs as Strings) to be loaded. |
<bean id="samples.catalog" parent="catalog.loader.abstract"> <property name="location" value="classpath:/com/componize/samples/01-catalog/catalog.xml" /> </bean>
troubleshooting-sample.dita file and then add it back again.
troubleshooting-sample.dita file should have been validated without
errors.