You can add an HTML form to your XSL file using the XSL Form wizard.
You will base this form on an existing XML file. The HTML form helps determine
how your HTML output will be formatted.
The following instructions were written for the Resource perspective,
but they will also work in many other perspectives.
Follow these steps
to add an HTML form:
- Open your XSL file in the XSL editor.
- Click the Snippets tab, open the XSL drawer,
and then double-click HTML form in XSL.
- Select the XML file you want to use to generate the HTML form and
click Next.
Note: If your XSL file is already
associated with an XML file, then you will not see this page. For more information
about associating XSL files with XML files, refer to the related tasks.
- Select the context node for the form. Any elements contained
inside the context node are used to create input elements
which are used in the form to obtain information.
- Select the Wrap form in a template check
box if you want the form to be wrapped in a template.
- Click Finish.
The HTML form will appear in your XSL file in the location your cursor
was located.