|
Home > Online Product Documentation > Table of Contents > Working with Collections Working with Collections
In Stylus Studio, a collection is defined by
Once you create a collection, you can use the collection name as the argument for the
A complete list of the videos demonstrating Stylus Studio's features is here: http://www.stylusstudio.com/xml_videos.html. Collection NamesCollection names are created automatically by Stylus Studio. Initially, Stylus Studio uses a default placeholder name, coll1, coll2, and so on. Once you identify the relational table or view on which you wish you base the collection, Stylus Studio replaces the default name with the name of the table or view ( pubs.dbo.authors, for example).
Using Collections in XQuery Code
The XQuery
Note that the
How Collections are Processed
The Stylus Studio built-in processor and the DataDirect XQuery processor process collections differently:
Because it processes XQuery as SQL on the database server, the DataDirect XQuery processor can provide performance superior to that of other XQuery processors. How to Create a CollectionTo create a collection:
1. On the
General tab of the XQuery
Scenario Properties dialog box, click the new icon (
A new collection is added to the list box with a default name ( coll1, for example).
2. Click the
URL field.
The
URL field becomes active. A browse button (
3. Click the browse button to define the URL for the collection.
The Open dialog box appears with the URL Builder tab selected.
4. Use the URL Builder to define the URL for the relational table or view for which you wish to define the collection.
See Using the URL Builder if you need help with this step. Alternative: You can type the URL manually if you know the database URL.
6. Click
OK.
You can now reference the collection in the
|

Cart

