INRIA
[Up]
Warning

Work in progress

This version may be updated without notice.

System Specification

A System module for Active Tags

Working Draft 29 march 2006

Editor
Philippe Poulard  <Philippe.Poulard@sophia.inria.fr>

Copyright © INRIA

Abstract

This specification describes a System optional module for Active Tags. This System module provides tags, attributes, functions and predefined properties related to System interactions.

Requirement levels

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Note that for reasons of style, these words are not capitalized in this document.

Active Tags specifications

The following specifications are part of the Active Tags technologies.

Table of contents

1 The System module
2 System module reference

2.1 Elements
2.2 Foreign attributes
2.3 Predefined properties
2.4 Extended XPath functions
2.5 Data types

Appendix

A Glossary
B Related Active Tags specifications
C Active Schema for the System module


1 The System module

This Active Tags module has been designed to provide basic System interactions. It provides standard I/O properties, a mean to get the environment variables, etc.


2 System module reference

System namespace URI : http://www.inria.fr/xml/active-tags/sys
Usual prefix : sys
Foreign attributes Predefined properties
@sys:version
$sys:in
$sys:out
$sys:err
$sys:null
$sys:encoding
$sys:env

2.1 Elements

No additional elements are defined by this module.

2.2 Foreign attributes

@sys:version

The version of the System module to use. This attribute should be encountered before any System element, but it takes precedence on the element inside which it is hosted.

2.3 Predefined properties

$sys:in

  • Property type: io:input
  • $sys:in is a reference to the standard input stream (keyboard).


    $sys:out

  • Property type: io:output
  • $sys:out is a reference to the standard output stream (console).


    $sys:err

  • Property type: io:output
  • $sys:err is a reference to the standard error output stream.


    $sys:null

  • Property type: io:output
  • $sys:null is a reference to the null output stream. Any byte written it this output is ignored.


    $sys:encoding

  • Property type: xs:string
  • $sys:encoding contains the default locale charset encoding.


    $sys:env

  • Property type: adt:list of xs:string
  • $sys:env contains the list of environment variables known by the underlying engine.

    2.4 Extended XPath functions

    No additional XPath functions are defined by this module.

    2.5 Data types

    No additional data types are defined by this module.


    Appendix

    A Glossary

    B Related Active Tags specifications

    This list is not exhaustive; it is a list of common modules usable by an engine that implements the Active Tags specifications that implementors may use. Additional modules are welcome.

    C Active Schema for the System module

    [schema.asl]

    <asl:active-schema asl:version="1.0" target="sys" schema-version="1.0" xml:lang="en"
        xmlns:sys="http://www.inria.fr/xml/active-tags/sys"
        xmlns:asl="http://www.inria.fr/xml/active-schema">
    
        <asl:attribute name="sys:version" ref-type="xs:string"/>
    
    </asl:active-schema>