Simplifying the Mapper Canvas Display

By default, the XQuery Mapper displays all links between source and target document nodes, regardless of whether or not the node associated with a link is currently visible in the Source Document or Target Document pane. Further, as your XQuery code becomes more complex, the mapper canvas can become dense with graphical representations of the functions defined in the code and the links that represent them. Consider this example of XML-Q4.xquery, one of the sample XQuery documents in the Examples project installed with Stylus Studio.

Figure 319. Mapper Shows Links to All Nodes, Visible or Not

You can hide links for nodes that are not currently visible in the Source Document or Target Document pane by clicking the Hide Links for Nodes that are not Visible button, as shown in Figure 320:

Figure 320. Simply the Mapper by Hiding Links

When you use this feature, Stylus Studio displays

  • Links in the Mapper canvas only if both nodes are currently visible in the document panes
  • Green arrows (like the ones shown in Figure 321) in the document panes if only one of two linked nodes is currently visible.

Figure 321. Arrows Identify Partially Available Links

Other Mapper Display Features

In addition to displaying links for only those nodes that are visible in both document panes, you can use the document node shortcut menu (right-click on a node in a document pane) to

  • Show links to a specific node
  • Hide links to a specific node
  • Show/hide all links
 
Free Stylus Studio XML Training: