Adding XSQL Tags
All XSQL tags can be inserted by selecting them from the Component Palette,
as described below. You can also insert XSQL tags by typing them in the file.
Code Insight is available for XSQL tags.
To add XSQL tags to a file:
- In the Navigator, select the XSQL file to which you want to add tags, right-click
and choose XML Editor to open the source
file.
- Place your cursor in the blank line after the
<page xmlns:xsql="urn:oracle-xsql">
tag.
- Choose View | Component Palette
to open the Palette if it is not displayed.
- Select XSQL Tags from the dropdown list in the
Palette if it is not displayed.
- Select the appropriate tag from the Palette.
If the tag has no attributes, it appears in the XSQL page immediately.
If the tag has one or more attributes, a dialog displays.
- In the dialog that displays, enter the required and any optional attributes.
Press F1 or click Help in the dialog to
get help for an XSQL tag and its attributes.
- After entering attributes, click Next
to display the next dialog or click Finish
if it is enabled.
The button you see and the number of dialogs depend on which tag you select.
Notice that the tag and attributes you entered appear in the XSQL page.
-
Add another line in the source file and select another tag from the Component
Palette if necessary.
- When you have finished adding tags, choose File
| Save All to save all your work thus far.
After adding tags, you can view the raw XML data or format the XML data with
a style sheet.
Related topics
Editing XML Files with XSQL Tags
Viewing Output from Running XSQL Files as
Raw XML Data
Formatting XML Data with a Style Sheet
Creating an XSL Style Sheet for XSQL
Files