Modifying the Target Structure

This section describes the techniques you can use to modify the structure and content of an XQuery mapper target structure. It covers the following topics:

Adding a Node

See How to create elements and attributes.

Removing a Node

To remove a node from the target structure:
2. Select the node and press the Delete key.
Alternative: Right-click the node and select Remove Node from the shortcut menu.

Setting a Text Value

You can set text values for target structure elements and attributes. You might want to do this if you are composing an XQuery with an element or attribute that requires a fixed value, instead of using a value gathered from an input XML document.

Here is the XQuery code Stylus Studio generates for the Title element when a text value is specified for it:

 
Free Stylus Studio XML Training:
W3C Member