Create an excel sheet using a ResultSet.
 

1 excel.Sheet.fromResultSet

<excel.Sheet.fromResultSet>
    <sheet /> +
    <resulset /> +
</excel.Sheet.fromResultSet>
Example

Generate a sheet excel by a selecto to ctercero.

Copy
<xsql-script name='sample_excel_Sheet_fromResultSet'>

	<body>
		<set name='wb'>
		    <excel.Workbook />
		</set>
		
		<set name="sheet_1">
		    <excel.Workbook.createSheet name="Sheet 1">
		        <wb/>
		    </excel.Workbook.createSheet>
		</set>
		
		<excel.Sheet.fromResultSet >
		    <sheet_1 />
		    <sql.toResultSet>
		        <select>
		            <columns>
		                *
		            </columns>
		            <from table='ctercero' />
		        </select>
		    </sql.toResultSet>
		</excel.Sheet.fromResultSet>
		
		<excel.Workbook.write>
		    <wb/>
		    <file name="test.xls" type="absolute"/>
		</excel.Workbook.write>
	</body>

</xsql-script>