Create Relationship

You use the Create Relationship dialog box to specify the nodes from one or more data sources you want to use to group data, and to choose the operator used to compare the node values.

Fields

You use the following fields to specify information for the from (Link From) and to (Link To) data sources from which you are grouping data. You also choose the operator that is used to compare the node values.

Field
Link From
Link To
Data Source
The URL of the first file added to the data sources panel in the XML Publisher Editor. You can choose a different data source, if you have added one, using the drop-down list.
The URL of the second file (if any) added to the data sources panel in the XML Publisher Editor. You can choose a different data source, if you have added one, using the drop-down list.
Key
The node in the Link From data source whose values you want to compare to the values in a node in the Link To data source.
The node in the Link To data source whose valued are being compared to the values of the node you selected from the Link From data source.
Context
Sets the context for the outer FOR loop in the generated XQuery or XSLT code. Defaults to the node selected in the Key field.
Sets the context for the inner FOR loop in the generated XQuery or XSLT code. Defaults to the node selected in the Key field.
Table 190. Link From and Link To Properties

Compare

Control used to specify the type of comparison operation you want to perform on the data source nodes you select. Valid values are:

For More Information

Grouping Data

Working with Data Sources

Building an XML Publisher Report

Convert DTD to XML

Learn how to create a sample XML instance document from a DTD using Stylus Studio DTD to XML conversion tools.

Learn XSLT

Free online video demonstrations for learning XSLT and how to design XSLT stylesheets to convert XML to HTML in publishing applications, or how to convert HTML to XML.

XSL and XSLT Tools

XSLT tools in Stylus Studio let you easily edit, debug, design and profile XSLT stylesheets using a powerful and intuitive graphical user interface.

An Introduction To XML Schema Development

An Introduction to XML schema development in Stylus Studio covers some of the highlights of our XML Schema Editor, powerful tools for editing, validating, converting and generating XML schema. Watch the video online today!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member