Pipeline and Related Nodes

Including an XML pipeline refers to the process of inserting one XML pipeline inside another - instead of piping a node's output to an XQuery or XSLT transformation for processing, for example, output is piped to the included XML pipeline. That XML pipeline performs the processes defined by its nodes, and then returns one or more outputs to a node in the including XML pipeline for subsequent processing.

Example

The getHoldings.pipeline in the pipelines\stocks folder in the examples project installed with Stylus Studio uses an included XML pipeline, retrieveData.pipeline. Figure 413 illustrates how an included XML pipeline is represented in the including XML pipeline.

Included XML pipelines, as any other documents (XQuery and XSLT, for example), cannot be edited from the including XML pipeline. You must open these documents separately.

Pipeline Node Input and Output Ports

A Pipeline node displays input and output ports only if the XML pipeline it represents has been defined with Pipeline Input and Pipeline Output nodes, as shown in Figure 423. These nodes allow the included XML pipeline to be connected to the including XML pipeline.

How to Include an XML Pipeline

To include an XML pipeline:
1. Define the XML pipeline (XML pipeline A) you want to include in another XML pipeline (XML pipeline B).
2. Ensure that you have defined Pipeline Input and Pipeline Output nodes for XML pipeline A (the XML pipeline to be included in XML pipeline B).
3. Drag and drop XML pipeline A into XML pipeline B.

Alternative: Create an empty Pipeline node in XML pipeline B and manually specify the URL for XML pipeline A in its .pipeline file property.

4. Connect the input and output ports of the Pipeline node representing XML pipeline A to node ports in XML pipeline B as required.

XSLT Mapper

Simplify XSLT mapping with the Stylus Studio XSLT Mapper - supports multiple data sources, round-trip engineering (synchronized editing views), XSLT function blocks, integrated XSLT preview and more.

Internet & eBusiness

Internet & eBusiness

XSD Mapping

Stylus Studio® includes a visual XSD-to-XSD mapping tool that allows you to easily implement sophisticated XML data mappings involving multiple data sources and customized data processing using either XSLT or XQuery code.

Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial

Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member