|
Home > Online Product Documentation > Table of Contents > Setting the XQuery Node Data Sources Setting the XQuery Node Data SourcesAlthough the XQuery code was specified with default data sources, we want the XQuery to use the data sources we defined in the two ConvertToXML nodes we created in Configuring Data Sources. We do this by connecting the output ports on the ConvertToXML nodes to the input ports on the XQuery node. To set an XQuery node's data sources:
1. With the pointer over the
Get books catalog from txt file ConvertToXML node, drag and drop the output port on the
allBooks input port on the
Extract full order information XQuery node.
Stylus Studio creates a pipe connecting the two nodes, shown in Figure 406.
2. Repeat this procedure, connecting the output port from the
Get order from EDIFACT request ConvertToXML node to the
ediOrder input port on the
Extract full order information XQuery node.
Default and Specified Port ValuesAs you can see in Figure 406, an input port can have both a default value, and a value provided by another node's output port. Note, however, that an output port's default value is never used if a pipe is connected to the port - the pipe either supplies a value or it does not, but the default value is ignored. An Alternate Way to Create ConvertToXML Nodes
It should be noted that when you add an XQuery or an XSLT document to an XML pipeline, Stylus Studio creates other nodes required to support the resulting XQuery or XSLT node, based on the XQuery or XSLT definition. For example, since
We will see this functionality in action later, when we add another XQuery document to the XML pipeline. (See Add createReport.xquery for more information.) |
XQuery API for Java (XQJ)
DataDirect XQuery is an embeddable software product based on the XQuery and XQJ standards that enables Java developers to access both relational and XML data sources using a single XQuery query. Runs on Oracle, SQL Server, DB2, and more!
DTD Validator
This page talks about Stylus Studio's DTD Validator it has the ability to specify any third-party XML parsers and validators, real-time syntax checking and DTD validation error reporting, backmapping, integrating third-party DTD validators and more!
XML-to-XML Mapper
XML to XML mapping tools in Stylus Studio provide a powerful visual interface for mapping XML data from-and-to virtually any data format using industry-standard XSLT and XQuery technologies.
Whitepaper: FIXML - Working with Complex Message Sets Defined Using XML Schema
The advanced XML Schema handling and presentation capabilities of Stylus Studio have valuable implications for users of industry-specific XML message sets.


