XTiSP on the Web  Index  Search  Changes  RSS  Login

Usage - XTiSP/IV

[English / Japanese]
Top Download Documentation Support Link
Publication XTiSP/PD XTiSP/IV XTiSP/AG
Installation Usage Tutorial Example
 

SYNOPSIS

xtisp [ 'file' | -ag 'file' | -xtisp 'file' ] [ -o 'program' ]
      [ -T 'output type' ]
      [ -opt ] [ -i ] [ - 'input.xml' 'output.xml' ] [ -clean ]

OPTIONS

'file'
-ag 'file'
-xtisp 'file'

The string 'file' is the name of the program source file for XML transformation. The programming language of the source is detected by the suffix of the name: If .xtag, .ag or .sag, the language is XTAG; If .xtisp or .xt, the language is XTiSP. You can specify the language by options -ag or -xtisp.

-o 'program'

'program' is the name of the obtained program. If -o is not specified, the program is sent to standard output. When -T option is used at the same time, the program is obtained as an intermediate code in a stage which is specified by -T.

-T 'output type'

This option enables you to obtain an intermediate code on the way to derive an XML stream processing program. You can use ag, tt or sp as output type: if 'ag', it outputs an attribute grammar over XML trees; if 'tt', it outputs a tree transducer corresponding the attribute grammar; if 'sp', it outputs a tree transducer which is obtained by the composition with an XML parser. Most people don't have to use this option.

-opt

Output the native code program. You can use this option if you have ocamlopt.

-i

Run the program in interactive mode. It is used for checking that the program behaves a desirable processing. If you use this option, the command wait an input XML text and returns some outputs as many as possible.

% xtisp -i bar.xtisp
<article>
  -> <HTML><HEAD>
<name>
  -> <TITLE>
XTiSP</name>
   -> XTiSP</TITLE></HEAD><BODY>
</article>
  -> </BODY><HTML>

If the input is only character data, anything will not be output because of XML lexer. The lexer is waiting for the end of the character data such as open/close tag.

- 'input.xml' 'output.xml'

Direct mode. We can directly transform from 'input.xml' to 'output.xml' by a given XML transformation program. Even if you use this mode, the compilation of the program is required. Therefore you should use this option just for testing your program.

-clean

Clean temporary files created by XTiSP. You had better do

% xtisp -clean

at odd moments since XTiSP creates some temporary files for every compilation.

Last modified:2006/06/09 09:57:38
Keyword(s):
References:[TabTree]