Specifying XML Input

When you create an XQuery scenario, you can optionally specify inputs - XML documents or other sources of XML that set the context for the XPath expressions in your XQuery code. This XML source is referred to as the main input.

The main input is a URL for a specific XML document. Specifying a main input is an alternative to using the XQuery document() function in your XQuery code. When you specify a main input document, expressions like \books\book in your XQuery code are evaluated in the context of that document.

You specify XML input on the General tab of the Scenario Properties dialog box.

Figure 339. XQuery Scenario General Properties

Note

 

If you build your XQuery using the XQuery Mapper, Stylus Studio uses the first source document you select as the main input XML document, though you can override this default at any time. See Source Documents to learn more about the process of selecting and working with XQuery source documents in XQuery mapper.

How to Build PDF Forms using Stylus Studio

Learn how to build PDF Forms using Stylus Studio and the RenderX XEP FO processor

XPath Query Editor

Stylus Studio's XML Editor has an XPath Query Editor that allows you to easily roubleshoot, test, and debug any XPath expression.

XML Publisher - XSLT Generator and XSL:FO Generator

The XML Publisher lets you easily design beautiful documents in HTML or PDF format from relational, XML and other data sources using XSL:FO or XSLT, using an intuitive visual interface.

XML Unicode Encoding

Stylus Studio supports over 300 different file encodings, including UTF-8, UTF-16, EUC-JP, SHIFT-JIS, and more, alowing you to work with any XML document. Robust text editors support standard editing features, and Sense:X intelligent auto-completion.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member