|
Home > Online Product Documentation > Table of Contents > Your First XQueries Your First XQueriesTry a few simple examples to get acquainted with XQuery. Start Stylus Studio, and open a new XQuery document ( File > New > XQuery File). Save the file now (if you do not, Stylus Studio will prompt you to save it when you preview your first XQuery). Type the following in the XQuery Editor:
Now, click the
Preview Result button (
Enter a simple equation (
Finally, try the XQuery function
Your results, will vary based on several conditions. For example, the
XQuery processor you use to execute the XQuery will affect the precision of the time value (fractions of seconds), and the time zone (here, shown as
None of these is a very useful query on its own, but within a query language you need to be able to perform little calculations and XQuery has this covered. Further, XQuery is designed so that expressions can be fully nested - that is, any expression can be used within any other expression, provided that it delivers a value of the right type - and this means that expressions that are primarily intended for selecting data within a
|
Building DataDirect XQuery Applications
Stylus Studio further simplifies relational and XML data integration by providing advanced XQuery tools support for building XQuery applications which use DataDirect XQuery.
XML-DEV Discussion Forum
XML-DEV is a leading technical forum for XML discussion and a valuable free XML learning resource. Subscribe to the XML-DEV email discussion forum today to help further your XML education.
Create XML Schema from XML Content
Create XML Schema from XML Content by auto-generating an XML Schema with Stylus Studio.
Single Source Publishing
Single source publishing is the ability to use one source of information for generating multiple types of output. Stylus Studio XML Publishing enables Single Source Publishing - publish PDF or HTML documents from Relational, XML or Legacy files.