DocumentTypeDefinition

DocumentTypeDefinition bean attributes

A DocumentTypeDefinition is created using a Spring bean with the following attributes:

Attribute Value Description
id User-defined A unique ID for the bean.
parent xml.schema.dtd.abstract The parent bean.

DocumentTypeDefinition bean properties

The DocumentTypeDefinition bean takes the following properties:

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.

DocumentTypeDefinition bean example

<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>

Debugging

To debug your DocumentTypeDefinition, add the following entry to your log4j.properties file:

log4j.logger.com.componize.xml.schema.dtd.DocumentTypeDefinition=trace