Tree Transformation Rules

If a path in the schema tree is selected without any query conditions, the query will simply parse the XML output and return the selected subtrees as the result. The result tree is interpreted by the report engine based on the binding of the query. If tabular data is expected by the element with which the query is associated, the tree is transformed into a table by using the following rules:

If the tree contains multiple nodes of the same type, each node is converted to a table row. This is the case if any tree path node is a selection node.

If the tree contains a single root node, this node is converted to a single table row. This is the case if the tree path does not contain any selection nodes.

A sub-tree is converted to a table row by treating each child as a table column. The child node's name is used as the column name, and the child node's value is used as the column value.

Figure 2. Example tabular output

 

Because the tree is converted to a table using the default table conversion, the child values of the name and location elements are not used in the final table. To display the values properly, you need to specify more precise table construction rules. See Table Construction for additional information.

<< Selection Nodes © 1996-2013 InetSoft Technology Corporation (v11.5) Table Construction >>