<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="result" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />

<og:columnCheck
	command   = "{@command}"
/>

<og:value command="SET" key="TABLES" value="{@TABLES}" />

<table>

<c:forTokens items = "${TABLES}" delims = "," var = "TABLE" >

	<tr><td>Table Space</td><td>(<og:text>{@TABLE}</og:text> XML File)</td><td width="10px"></td><td class="S9">
	<og:query command="{@command}" debug="{@debug}" maxRowCount="{@maxRowCount}">
		<jsp:text>
			select	*
			from	{@TABLE}
		</jsp:text>
	</og:query>

	<og:writeTable
		fileURL        = "{@USER.ID}"
		filename       = "{@TABLE}.xml"
		writerClass    = "XML"
		encode         = "UTF-8" >
		<og:writeTableParam key="TableName" value="{@TABLE}" />
		<og:writeTableParam key="First" >
			<jsp:text>delete from {@TABLE}</jsp:text>
		</og:writeTableParam>
	</og:writeTable>

	</td></tr>

</c:forTokens>

</table>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
