xt2html

Section: User Commands (1)
Updated: 2002-10-26
Index Return to Main Contents

 

NAME

xt2html - convert from XML Table to HTML

 

SYNOPSIS

xt2html [-i input filename] [-o output filename] [-z]

 

DESCRIPTION

This command converts an xmlTable file to an html file. 1. Title enclosed by header/title tag in an xmlTable is converted to h1 tag. 2. Comment enclosed by header/comment tag in an xmlTable is converted to p tag. 3. Attribute name enclosed by header/field tag in an xmlTable is converted to /table/th tag. 4. Data enclosed by body tag in xmlTable is converted to table/td tag.

 

FILE OPTIONS

-i input filename If a suffix of the filename is '.gz', the command acts as a filter, extracting the compressed file for processing. The command will read the file as standard input when "-i" is not specified.

-o output filename If a suffix of the filename is '.gz', the command automatically returns the output data in zip archive. When "-o" is not specified, the result will sent to standard output.

-z compress the standard output to zip archive. When the option "-o" is not given and "-z" is specified, the output will be compressed as zip archive.

 

USAGE

Input file - dat.txt:
CustomerID BirthDate Gender
A00001 19610615 F
A00002 19571029 F
A00003 19790608 F
A00004 19530110 F
A00005 19790712 F
A00006 19570421 M

Example 1. Convert xmlTable data to html format.

e.g. xt2html -i dat.xt -o rsl.html

Output file - rsl.xt:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=euc-jp">
<title>Customer Master File</title>
</head>
<body>
<h1>Customer Master File</h1>
<table border>
<tr>
<th>CustomerID</th><th>BirthDate</th><th>Gender</th>
</tr>
<tr>
<td>A00001</td><td>19610615</td><td>F</td>
</tr>
<tr>
<td>A00002</td><td>19571029</td><td>F</td>
</tr>
<tr>
<td>A00003</td><td>19790608</td><td>F</td>
</tr>
 

 

SEE ALSO

txt2xt(1), xt2xml(1), xt2txt(1), xml2xt(1) For complete documentation and tutorial of xt2html and other commands, please visit http://musashi.adm.osaka-sandai.ac.jp.

 

BUG REPORT

If you find a bug in xt2html, please send electronic mail to musashi@adm.osaka-sandai.ac.jp. Before sending a bug report, please verify that you have the lastest version of MUSASHI. Read this manual carefully to ensure the error is not caused by a quirk in the language.

 

AUTHORS

Yukinobu Hamuro, Naoki Katoh, Katsutoshi Yada, Stephane Cheung


 

Index

NAME
SYNOPSIS
DESCRIPTION
FILE OPTIONS
USAGE
SEE ALSO
BUG REPORT
AUTHORS

This document was created by man2html, using the manual pages.
Time: 22:43:52 GMT, June 24, 2003