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 a mapping whose target structure contains an element or attribute that requires a fixed value, instead of using a value gathered from an input XML document.

Example

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

Stylus Studio displays a red letter T for nodes for which you define a text value:

There are two ways to set a text value:

l On the mapper canvas
l On the target node

How to Set a Text Value on the Mapper Canvas

To set a text value on the mapper canvas:
1. Right-click on the mapper canvas.
The shortcut menu appears.
2. Select Text Block from the shortcut menu.
The text block appears on the mapper.
Double-click the text block to display the Value dialog box.
 
Free Stylus Studio XML Training: