Example: Dropping a Repeating Node

As described earlier, the data source - whether it is an XML document, a relational database table, an EDI file converted to XML, or some other XML data source - is represented as a data model in the data sources panel. The glyphs used for the nodes are based on the object they represent in the data source, as shown here.

Figure 447. Glyphs Used to Represent a Data Source

For this example, we use books.xml as the report's data source. When we drop the book repeating element on the canvas, we select Insert Table > Populated Columns from the short-cut menu. Stylus Studio creates a table with five columns, one for each of the child nodes in the book repeating element, as shown in Figure 449.

Figure 448. Table Created Automatically Using Repeating Element Child Nodes

The following table summarizes the types of components you can create and automatically populate with data based on the node type.

Repeating Nodes
Non-Repeating Nodes
Text
Text
Image
Image
If
If
Table (either a table with three empty columns, or a table with one column for each child node of the repeating element)
-
Repeater
-
List
-
Table 127. Components for Repeating and Non-Repeating Nodes

Note

 

You cannot drag document nodes.

See Working with Report Components for information about specific components.

Using OASIS XML Catalogs in Stylus Studio

Learn about Stylus Studio's XML catalog support and how to work with XML catalogs in your Stylus Studio XML projects.

OASIS Catalogs for Fun and Profit

This tutorial about, Understanding Catalogs, A Use-Case for Catalogs, Registering Catalogs in a Project, Using the DOCTYPE Syntax Sense:X Aid, Navigating Catalogs, Building Composite Catalogs, Converting TR9401 Catalogs to OASIS XML Catalogs and more

Learn Stylus Studio in 6 Minutes

Learn Stylus Studio in 6 Minutes is the world's fastest introduction to XML development using Stylus Studio. In just six minutes, learn how to leverage Stylus Studio's powerful XML tools and utilities to simplify XML development.

XQuery Blasts off at NASA's Johnson Space Center

This is a short story how DynCorp (CSC) used XQuery at NASA's Johnson Space Center to Simplify XML Data Access and Integration

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member