Home > Online Product Documentation > Table of Contents > Mapping Source and Target Document Nodes
You map a source document node to a target structure node using drag and drop to create a link between the two nodes. Stylus Studio composes XSLT based on these maps.
This section covers the following topics:
|
Tip
|
|
You can also map source document nodes to XSLT instruction blocks, XPath and Java function blocks, and logical operators. See Working with XSLT Instructions in XSLT Mapper and Processing Source Nodes. |
As you add function blocks to the XSLT mapper, Stylus Studio places them in the center of the mapper canvas. You can change the default placement of function blocks by dragging and drag and dropping them where you like. Stylus Studio preserves the placement you select within and across sessions (as you toggle between the mapper and the XSLT Source tab, for example).
As you use the splitter in the XSLT mapper to widen the source and target document panes, the size of the mapper canvas is reduced. The
Fit in Mapper Canvas button (
), located at the top of the XSLT mapper, redraws the diagram in whatever space is currently available to the mapper canvas. This feature is also available from the mapper short-cut menu (right-click anywhere on the mapper canvas to display the short-cut menu).
You can use either the left or the right mouse button to perform the drag and drop operation used to create source-target mappings in the XSLT mapper.
If you use the left mouse button to perform the drag operation, the link always maps the source node to the target node without making any changes to the target structure. If you use the right mouse button, Stylus Studio displays a shortcut menu that provides you with alternatives for modifying the target structure.
Using this menu, you can
|
Tip
|
|
If you need help with this step, see Left and Right Mouse Buttons Explained. |
Stylus Studio draws a link between the source and target nodes you chose is
step 1. If you linked two repeating elements, Stylus Studio displays a symbol representing the
xsl:for-each instruction. See
Working with XSLT Instructions in XSLT Mapper.
Alternative: Select Delete from the line shortcut menu (right click on the line to display the shortcut menu).