Your First XQuery

Try a few simple examples to get acquainted with XQuery. Start Stylus Studio, and open a new XQuery (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 ( ), and Stylus Studio displays the result of this XQuery in the Preview window:

Enter a simple equation (2+2) and click the Preview Result button ( ). Predictably, the result is:

Finally, try the XQuery function current-time() and click the Preview Result button ( ):

 
Free Stylus Studio XML Training:
W3C Member