Main -> Documentation -> Database Builder Newton -> Creating a New SiteSearch Database -> Creating a Database Tag Definition (.dtd) File |
Creating a Database Tag Definition (.dtd) File A database tag definition (.dtd) file is a standard text file that maps the relationships between different types of information (e.g., author, title, subject, isbn, etc.) in SGML data. A .dtd file serves as an interpreter for the Open SiteSearch Database Builder 4.0.x/4.1.x SGML conversion utility, sgmlconv, to map the SGML tagged data into ASN.1/BER format. The .dtd file used during the conversion process is not a traditional SGML DTD. In this instance, sgmlconv uses the .dtd file as a map to identify tags within the source data and replace the tags with the corresponding numbers for use in converting data to ASN.1/BER as defined in the .dtd file. These numbers are then converted into ASN.1/BER tag paths. For more information about the contents of the .dtd file, refer to the Procedures and Tip sections below. Example Use the following sample SGML data as a reference while you review how to develop a .dtd file in the Procedures section below.
Procedure Use the following steps to create a .dtd file for your SGML source data. The .dtd file will be used by sgmlconv to convert your source data into ASN.1/BER format.
To view an example source data file, .dtd file, and ASN.1/BER output after conversion, refer to the Database Tag Definition (.dtd) File Example. Tip If you are unfamiliar with your SGML source data, it might be helpful to use the sgmlconv utility program to create a .dtd file. When you run the sgmlconv utility from the UNIX command prompt, you do not need to include a .dtd file. Instead, the utility can create an initial .dtd file for you by identifying all of the fields within the source data. The utility program simply recognizes a tag and assigns it the next available number. In essence, the utility can perform step 1 and 2 above for you by identifying every tag in your source data. However, this primitive .dtd file does not contain an expressive numbering notation as shown in the second example within step 2 above. To include a notation that reflects "nested" data, you must edit the .dtd file created by the sgmlconv utility using a text editor.
To create a .dtd file using the sgmlconv utility program, refer to the Sgmlconv Utility reference documentation. It is recommended that you execute this utility program from the UNIX command prompt from within the dbs directory of your database directory. See Also The Sgmlconv Utility |
[Main][Documentation][Support][Technical
Reference][Community][Glossary][Search]
|