| Add a rule | Parsing rules define how elements are handled. To add a rule:
- Select Add New Rule.
- Select a rule type: Element (default), Attribute, XPath.
- Under Properties, select Basic and edit the following:
- Translate: Yes (default), No, Inherit.
- Tag Type: Structure (default), Inline.
- Whitespace: Inherit from Parent (default), Always preserve, Always normalize, Normalize unless xml:space='preserve'
- Under Properties, select Advanced and edit the following:
- SID XPATH - Leave the field empty, as this option is only used by WorldServer. For more information about SID, consult the WorldServer documentation.
- Segmentation Hint - This option is available only if you work with inline tags and only if you specified the extraction rule (segmentation hint) in the Embedded Content section of your file type. Select one of the available options: May Exclude (default), Include, Include With Text, Exclude. Check this topic to learn what each segmentation hint does.
- Length restrictions - Specify a minimum length and a maximum length.
- This option is available only if you work with inline tags. Under Formatting, specify: the size, the color, the position (Inherit, Normal, Superscript, Subscript), and the style (Bold, Italic, Strikethrough, Underline).
- This option is available only if you work with structure tags. Under Structure Information:
- Select Add new.
- Under Properties, select one of the available structure elements from the Name list, and then specify a code, an identifier, a description, color.
- Under Formatting, specify: the size, the color, the position (Inherit, Normal, Superscript, Subscript), and the style (Bold, Italic, Strikethrough, Underline).
- Select Done.
|