18.2 Simple Example for Automatic Property Extraction
Let us take a simple example to understand how Automatic Property Extraction can be used in Documentum. We will see how an XML Application is created, how it is attached to the content file, and eventually how it works.
1. Refer to figure 18.2; create and import a template in Web Publisher (say
First_XMLApp_Template.xml)
and attach it todm_document
object type with Default Lifecycle.Following is the Template file
First_XMLApp_Template.xml
:<?xml version="1.0" encoding="UTF-8"?> <ROOTTAG> <TITLEOFPAGE/> <SHORTDESC/> </ROOTTAG>
2. Create a Rules file (say
First_XMLApp_TemplateRule.xml)
for the template and associate the Template file with this Rules file. Following is the Rules fileFirst_XMLApp_TemplateRule.xml:
<?xml version="1.0" encoding="UTF-8"?> <rules> <tagcontent tag_name="TITLEOFPAGE"> <textline charlength="200"...