<?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:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF7110"
	title	= "サンプルデータ出力"
	date	= "2008/10/27"
	author	= "Hiroki.Nakamura"
	text	= ""
	version	= "001"
/>

<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}">
			select	*
			from	{@TABLE}
	</og:query>

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

	</td></tr>

</c:forTokens>

</table>

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