18.6 Using Two-Way Attribute Extraction
Let us create a Template file that allows content creators to enter the subject property in the document's property screen. We will create a custom XML Application that will populate this value in the SUBJECT
element of the Template file.
1. Create and import a template in Web Publisher (say
Two_Way_Template.xml)
and attach it todm_document
object type with Default Lifecycle. Following is the Template fileTwo_Way_Template.xml:
<?xml version="1.0" encoding="UTF-8"?> <INFORMATION> <SUBJECT/> </INFORMATION>
2. Create a Rules file (say
Two_Way_TemplateRule.xml)
for the above template and associate the Template file with this Rules file. Following is the Rules fileTwo_Way_TemplateRule.xml:
<?xml version="1.0" encoding="UTF-8"?> <rules> <tagcontent tag_name="SUBJECT"> <textline charlength="150" instruction="Enter a subject here" label="Subject:"> </textline> </tagcontent> </rules>
3. Create...