Adding an Instruction Block to the XSLT Mapper

To add an instruction block to the XSLT mapper
1. Right click on the mapper canvas.
The shortcut menu appears.
2. Select XSLT Instructions from the shortcut menu.
The XSLT Instructions submenu appears.
3. Select the instruction you want to add to your XSLT.
The block for the instruction you selected appears in the mapper canvas.
5. Link the output port(s).
6. Optionally, link the flow port.

Notes About Creating Instruction Blocks

Be aware of the following when working with XSLT instruction blocks in the XSLT mapper:

If you mouse over the circle, Stylus Studio displays the XSLT represented by the link (xsl:value-of select="/books/book/@pubdate"/, for example).
l If you type an XSLT instruction in the XSLT source that is not represented by the XSLT mapper, no representation of that XSLT instruction is displayed on the Mapper tab. The code remains as part of the XSLT source, however.
l If you start creating an XSLT instruction in the mapper but do not completely define it (say you specify only the input port for an xsl:for-each instruction, for example), it is not represented in the XSLT source, and it is removed from the XSLT mapper if you leave the Mapper tab and then return to it.
 
Free Stylus Studio XML Training: