Creating an XSLT Procedure
This topic describes how to create an XSLT procedure.
To create an XSLT procedure
|
1.
|
Select a folder in the Studio resource tree, and then right-click and select New XSLT Procedure, or select File > New > XSLT Procedure. |
|
2.
|
Type a name for the procedure in the New XSLT Procedure dialog box and click OK. |
The editor opens in the XSLT panel on the right.
|
3.
|
Use the XSLT panel to formulate and edit the XSLT XML script. |
|
—
|
The XSLT procedure editor supports XSLT 1.0 and 2.0. |
|
—
|
If you have a script stored in your file system, you can upload it using the Insert from File button. |
|
—
|
The XSLT panel can highlight XSLT syntax (elements, attributes, and so on). |
|
—
|
Insert standard XML comment notation by highlighting one or more lines and typing Ctrl-Hyphen. |
The procedure editor inserts “<!--” at the start, and “-->” at the end, of each line you have highlighted.
For details on executing an XSLT procedure, see Executing a Procedure or Parameterized Query.