A region is the largest organizational component in an input file. Regions are interpreted by Stylus Studio when the input file is first read into the Convert to XML Editor, and you can define your own using the Convert to XML Editor.

An input file can contain one or more regions; every input file has at least one region that starts at offset 0. Multiple regions are common in binary files, which often contain a fixed-size header and then one or more records containing the actual data.

In the Convert to XML Editor, regions are numbered, starting with 1, followed by the row number. For example, in an input file with two regions, you might see rows labeled as follows: 1:1, 2:1, 2:2, 2:3, and so on, as shown here:

Figure 174. Rows in Regions Are Numbered Independently

Region Types

Regions can be fixed-width or line-oriented. You can also set the Region Type property to No-output. Regions that are marked as No-output are grayed out in the Convert to XML editor, and they are not converted to XML.

Managing Regions

Stylus Studio provides tools that let you create new regions, and join one region with another. You can also change a region's type, define different line terminators across regions, and mark a region so that it is excluded from output. For information on these and other topics, see Working with Regions.

Free Stylus Studio XML Training:
W3C Member