Selecting a data structure  Importing a DTD

Chapter 3: Building Production Objects

Building tree-to-stream production objects

A tree-to-stream production object uses new tree field objects and existing production rules. The tree input fields describe an incoming transaction. A tree input field references a node in the incoming tree data by name or data location. With tree input, you can import a Document Type Definition (DTD).

You can also import a New Era Canonical Metadata (NCM) schema file when you are using e-Biz Integrator or a New Era of Networks adapter. The NCM schema file is metadata of the adapter When the schema is imported, TRAN-IDE automatically generates tree fields.

  1. Click the Pro-Obj icon in the TRAN-IDE main window, then click New below the left pane. The Production Object Information window opens and displays the Tree Input Fields pane on the left and the Stream Output Rules pane on the right.

  2. Click New below the Tree Input Fields pane.

  3. Complete the fields as follows:

  4. In the Options section, select any of the following:

    Option

    Description

    Alternatives

    Checks if the NDO node is alternative. Set this property to describe mutually exclusive child nodes beneath a parent.

    Invisible

    Checks if the NDO node is invisible. Describes a logical node used to group a set of nodes.

    Repeats

    Set the NDO node to be repeating or not.

    Field must be leaf

    Select this option if the NDO node the field object parses must be a leaf node.

    Field may be empty

    Select this option if the NDO node the field object parses may be a leaf node.

    Optional

    Set the NDO node to optional or not.

  5. Select a filter from the Filters list or define a new one.

  6. Select an attribute from the Attributes list or define a new one.

  7. Select a qualification object from the Qualification field or define a new one.

  8. Click OK to save your entries and close the window.

Define rule objects and rule component objects. See “Defining rule components (subrules)” for instructions.

NoteWhen selecting input fields, click the T button to view a read-only tree representation of input tree field objects.

The Group Rule Component object must reference a repeating field object. If a rule component object gets data from tree field object (defined earlier), you can access either data or an attribute of the field by selecting the appropriate radio button.





Copyright © 2005. Sybase Inc. All rights reserved. Importing a DTD

View this book as PDF