29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

XSL wizard<br />

This is a tool for creating XSL files. To create a new file from scratch, use the<br />

New XSL wizard as follows:<br />

1. Select File -> New -> XSL to launch the New XSL wizard.<br />

2. In the File name field, type your XSL file name.<br />

3. Click Finish. The XSL file is created and the XSL editor is automatically<br />

opened for you.<br />

XML and SQL Query wizard<br />

This wizard allows you to create an XML file with the results from an SQL query.<br />

Before you can use the wizard, you must first create a SQL query using the SQL<br />

Query builder (see “Building SQL statements using the SQL Query Builder” on<br />

page 211).<br />

Once you have created your query, you can also start the wizard from any<br />

perspective. Follow these steps to start the XML from SQL query wizard:<br />

1. Select File -> New -> Other -> XML -> XML and SQL Query, then click<br />

Next.<br />

2. Select the Create XML from SQL query radio button, then click Next.<br />

3. On the Select SQL Statements page, expand your project and select your<br />

SQL statement. Click Next.<br />

4. Complete the wizard using the options described below.<br />

5. When you have finished selecting your options, click Finish to run the XML<br />

from SQL query wizard.<br />

Specify mapping patterns<br />

The wizard allows you to choose from a number of different default patterns<br />

when mapping your relational data to an XML format. They include:<br />

► Mapping table columns as elements.<br />

► Mapping table columns as attributes.<br />

► Mapping table columns as elements using primary keys as attributes.<br />

► Mapping using foreign keys as links.<br />

The presence of foreign keys specifies a relationship between two tables. When<br />

generating XML files from a table that has a foreign key, there are two options<br />

that you can choose from:<br />

► Select Foreign keys as links only. If you select this option, the tool will map<br />

all the foreign key relationships into a single XML document. This will create a<br />

hierarchical document that reflects the foreign key relationship.<br />

324 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!