During the lab, you will be defining a new XML schema for the troubleshooting DTDs.
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 |
---|---|---|---|
label | String | Required | The clear text label to be used when displaying the Document Type in a list. |
id | String | Required | The root element name for the Document Type. |
publicId | String | Required | The Document Type unique public ID. |
systemId | String | Required | The Document Type system ID. |
<bean id="samples.dtd.troubleshooting" parent="xml.schema.dtd.abstract"> <property name="label" value="Troubleshooting" /> <property name="id" value="tsTroubleshooting" /> <property name="publicId" value="-//OASIS//DTD DITA Troubleshooting Samples//EN" /> <property name="systemId" value="http://www.componize.com/samples/dtd/troubleshooting.dtd" /> </bean>
Property | Type | Mandatory | Description |
---|---|---|---|
schema | XmlSchemaDefinition or DocumentTypeDefinition | Optional |
An XML schema reference that should be added to the filter. |
schemas | Collection< XmlSchemaDefinition or DocumentTypeDefinition > | Optional | A list of XML schema references that should be added to the filter. |
registry | XmlSchemaFilterRegistry | Optional | Reference to a XML schema filter registry. A value must be provided to either registry or registries. |
registries | Collection <XmlSchemaFilterRegistry> | Optional | Collection of XML schema filter registries. A value must be provided to either registry or registries. |
<bean parent="xml.schema.filter.collection.entry"> <property name="schema" ref="samples.dtd.troubleshooting" /> <property name="registry" ref="dita.schemas.topic" /> </bean>
troubleshooting-sample.dita
file and then add it back again.