tommy online
home euphoria smel bookmarks sitemap info tommy.blog

smel

Special SMEL-directives

Next to user-defined directives, the SMEL-standard has some special directives that are intercepted by the parser and treated separately.

Table of contents

<smel> - <smel:meta> - <smel:link> - <smel:ns>

<smel>

The smel-directive is called the SMEL-declaration, and is the first line of every SMEL-document. It has the following attributes:

version
The version of the used SMEL-standard. This should be "1.1" for SMEL 1.1.
ns
The default namespace for the document.
app
The application used for reading the document.

Examples:

<smel version="1.1" ns="smels" app="SmelSchema/1.0">
<smel version="1.1" ns="smelt" app="SmelTransform/1.0">

<smel:meta>

The meta-directive contains metadata about the SMEL-document. The attributes of this directive are free to chose.

Examples:

<smel:meta author="Tommy Carlier" last_update="18/11/2003">
<smel:meta generator="Notepad" description="Description of the document">

<smel:link>

The link-directive links other resources to the SMEL-document. This directive has the following attributes:

rel
The relationship of the linked resource to the SMEL-document.
type
The type of the linked resource.
ref
A URL of the resource.
target
If the relationship is transform, then target is the type of file the transformation will produce.

Examples:

<smel:link rel="schema" type="text/smel+schema" ref="files/doc.smels">
<smel:link rel="transform" type="text/smel+transform" ref="files/doc2htm.smelt" target="text/html">
<smel:link rel="transform" type="text/smel+transform" ref="files/doc2svg.smelt" target="text/xml+svg">

<smel:ns>

The ns-directive is used to give more information about the used namespaces. It has the following attributes:

id
The namespace-identifier.
app
The application and version.
ref
A URL where you can find more information about the namespace.

Examples:

<smel:ns id="smels" app="SmelSchema/1.0" ref="http://users.pandora.be/tommycarlier">
<smel:ns id="smelt" app="SmelTransform/1.0" ref="http://users.pandora.be/tommycarlier">

This is the printed version of a page from tommy online: http://users.telenet.be/tommycarlier
Copyright © 2003 - 2005 Tommy Carlier ()
smel: intro tutorial smel 1.1 <smel:...>
Opera WebBrowser