Adding Nodes to an XML Pipeline

There are two ways to add nodes to an XML pipeline. You can

l Use existing documents
l Use the icons in the Toolbox pane

Using Existing Documents

To create a node in an XML pipeline using an existing document, just drag and drop the document (from the Project window or the File Explorer, for example) on the XML pipeline canvas. This creates a node that represents the document you dropped on the canvas. For example, if you drag and drop an XQuery document, Stylus Studio creates an XQuery node based on that XQuery document. It also incorporates that XQuery document's default scenario properties settings, including its input and output URLs, processor, and post-process instructions, validation instructions, and so on.

In addition to dropping a file on the XML pipeline canvas, you can also drop it on an existing node or on the appropriate Value field for that node displayed in the Properties window. A node's input and output ports cannot be used as drop targets.

Using the Toolbox

To create a node in an XML pipeline using the Toolbox, just drag an icon from the Toolbox pane and drop it on the XML pipeline canvas.

This creates a node that is not yet implemented, whose properties you then need to specify - either by typing, or by dragging an external document and dropping it on the node or one of its Value fields in the Properties window. For example, if you drag the XSLT icon and drop it on the canvas, you would need to specify values for the input and output nodes, as well as the URL of the XSLT document you want that node to represent in your XML pipeline.

Available tools are described in the following table.

Table 127. XML Pipeline Tools
Tool
Description
Code Generation
Choose
Used to direct the flow of XML pipeline processing using one or more XPath expressions.
Java only
ConvertFromXML
Used to convert XML to some other format (CSV, binary, and so on).
Java
C#
ConvertToXML
Used to converts a flat file (CSV, binary, and so on) or EDI message type to XML.
Java
C#
Pipeline
Represents an XML pipeline file you want to include in the another pipeline.
Java only
Pipeline Input
Used to specify an external input to an XML pipeline that includes the XML pipeline in which this node is defined.
Java
C#
Pipeline Output
Used to specify an external output to an XML pipeline that includes the XML pipeline in which this node is defined.
Java
C#
Stop
Used to terminate XML pipeline processing.
Java
C#
Validate
Used to validate XML specified as input using one or more XML Schemas.
Java
C#
Warning
Used to display a warning message during XML pipeline processing.
Java only
XML Parser
Used to convert text input to XML.
Java only
XML Serializer
Used to convert XML input to text.
Java only
XQuery
Used to query XML input using an XQuery.
Java
C#
XSL-FO
Used to process XML input using XSL-FO.
Java only
XSLT
Used to transform XML input using XSLT.
Java
C#
 
Free Stylus Studio XML Training: