RelaxNG Schema XComponent.rng

Part of the XPipe system http://xpipe.sourceforge.net

Generated: Sat Jan 12 15:22:23 2002. By RNG2HTML.py

For information on the RelaxNG schema language see http://www.relaxng.org

Element Index

AuthorInfo
Author Information. Must be well formed. Basic XHTML recommended.
Doc
Documentation for the XComponent. Must be well formed. XHTML recommended.
Input
Typically an XML instance. Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent.
Keyword
A keyword.
Keywords
Keywords are used for cataloging and retrieval of XComponents. A controlled vocabular is under consideration.
Parameter
A named parameter. In an XPipe the named parameters can have values associated with them. At execution time, the parameter values are made available to the executing XComponent on its command line.
Parameters
An XComponent can take command line parameters. The parameters have names which are used for documentation purposes only. Only the values will be passed into the executing XComponent by the XPipe executive. Parameters are passed into the XComponent in the order specified in the XComponent.
Resources
Resources are "files" used by this XComponent. They can be input/output files for unit tests, schemas etc.
Test
A unit test. Used to exercise the XComponent and ensure it is doing what it is supposed to do. The XComponentUnitTester application can be used to execute the test.
Title
XComponent Title. A reasonably descriptive string for what the XComponent does.
UnitTests
Unit Tests. Used to exercise the XComponent and ensure it is doing what it is supposed to do. The XComponentUnitTester application can be used to execute the tests.
Version
XComponent version information.
XComponent
XComponent RelaxNG Schema. Part of the XPipe system http://xpipe.sourceforge.net. The RelaxNG Schema itself can be found at http://xpipe.sourceforge.net/XComponent.rng. It makes use of some common RelaxNG patterns housed in http://xpipe.sourceforge.net/Common.rng.

Attribute Index

Code[CLASSPATH]
Additions to the CLASSPATH made by the XPipe executive prior to executing the XComponent.
Code[Encoding]
Code encoding (PLAIN or BASE64).
Code[ExtractFilename]
Filename to extract the Code element into. Used with Encodinging=BASE64 and Type = JavaClass
Code[Type]
Code Type. JavaClass indicated Java .class file (base64 encoded). "Exec" signifies that Code element contains a command suitable for command line execution to invoke the component.
Input[Encoding]
Encoding - default is "PLAIN"
Input[Href]
Refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent.
Output[Encoding]
Code encoding (PLAIN or BASE64).
Output[Href]
Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent.
Post[CLASSPATH]
Additions to the CLASSPATH made by the XPipe executive prior to executing the code.
Post[Encoding]
Code encoding (PLAIN or BASE64).
Post[ExtractFilename]
Filename to extract the Pre element into. Used primarily with Encodinging=BASE64 and Type = JavaClass
Post[Href]
Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent.
Post[Type]
Post condition type.
Pre[CLASSPATH]
Additions to the CLASSPATH made by the XPipe executive prior to executing the XComponent.
Pre[Encoding]
Pre condition Encoding (PLAIN or BASE64).
Pre[ExtractFilename]
Filename to extract the Pre element into. Used primarily with Encodinging=BASE64 and Type = JavaClass
Pre[Href]
Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent.
Pre[Type]
Pre condition type.
Resource[Encoding]
Encoding - default is "PLAIN"
Resource[ExtractFilename]
Filename to extract the Resource into. If not supplied, resource not extracted when XComponent installed.
Resource[Id]
Resource identifier - must be unique in the XComponent.
Test[Name]
An optional Name for the Test. Used in XComponentUnitTest application for example, to display test progress to the user.

Element Models

AuthorInfo
<element name="AuthorInfo"> <sd:comment> Author Information. Must be well formed. Basic XHTML recommended. </sd:comment> <ref name="ANY"/> </element>
Doc
<element name="Doc"> <sd:comment> Documentation for the XComponent. Must be well formed. XHTML recommended. </sd:comment> <ref name="ANY"/> </element>
Input
<element name="Input"> <sd:comment> Typically an XML instance. Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> <optional> <attribute name="Href"> <sd:comment> Refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute> </optional> <optional> <attribute name="Encoding"> <sd:comment> Encoding - default is "PLAIN" </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <text/> </element>
Keyword
<element name="Keyword"> <sd:comment> A keyword. </sd:comment> <text/> </element>
Keywords
<element name="Keywords"> <sd:comment> Keywords are used for cataloging and retrieval of XComponents. A controlled vocabular is under consideration. </sd:comment> <zeroOrMore> <ref name="Keyword"/> </zeroOrMore> </element>
Parameter
<element name="Parameter"> <sd:comment> A named parameter. In an XPipe the named parameters can have values associated with them. At execution time, the parameter values are made available to the executing XComponent on its command line. </sd:comment> <attribute name="Name"> <text/> </attribute> <text/> </element>
Parameters
<element name="Parameters"> <sd:comment> An XComponent can take command line parameters. The parameters have names which are used for documentation purposes only. Only the values will be passed into the executing XComponent by the XPipe executive. Parameters are passed into the XComponent in the order specified in the XComponent. </sd:comment> <zeroOrMore> <ref name="Parameter"/> </zeroOrMore> </element>
Resources
<element name="Resources"> <sd:comment> Resources are "files" used by this XComponent. They can be input/output files for unit tests, schemas etc. </sd:comment> <zeroOrMore> <ref name="Resource"/> </zeroOrMore> </element>
Test
<element name="Test"> <sd:comment> A unit test. Used to exercise the XComponent and ensure it is doing what it is supposed to do. The XComponentUnitTester application can be used to execute the test. </sd:comment> <ref name="Parameters"/> <ref name="Pre"/> <ref name="Input"/> <ref name="Output"/> <ref name="Post"/> <optional> <attribute name="Name"> <sd:comment> An optional Name for the Test. Used in XComponentUnitTest application for example, to display test progress to the user. </sd:comment> <text/> </attribute> </optional> </element>
Title
<element name="Title"> <sd:comment> XComponent Title. A reasonably descriptive string for what the XComponent does. </sd:comment> <text/> </element>
UnitTests
<element name="UnitTests"> <sd:comment> Unit Tests. Used to exercise the XComponent and ensure it is doing what it is supposed to do. The XComponentUnitTester application can be used to execute the tests. </sd:comment> <zeroOrMore> <ref name="Test"/> </zeroOrMore> </element>
Version
<element name="Version"> <sd:comment> XComponent version information. </sd:comment> <text/> </element>
XComponent
<element name="XComponent"> <sd:comment> XComponent RelaxNG Schema. Part of the XPipe system http://xpipe.sourceforge.net. The RelaxNG Schema itself can be found at http://xpipe.sourceforge.net/XComponent.rng. It makes use of some common RelaxNG patterns housed in http://xpipe.sourceforge.net/Common.rng. </sd:comment> <ref name="Version"/> <ref name="Title"/> <ref name="Keywords"/> <ref name="AuthorInfo"/> <ref name="Doc"/> <ref name="Parameters"/> <ref name="UnitTests"/> <ref name="Pre"/> <ref name="Code"/> <ref name="Post"/> <ref name="Resources"/> </element>

Attribute Models

Code[CLASSPATH]
<attribute name="CLASSPATH"> <sd:comment> Additions to the CLASSPATH made by the XPipe executive prior to executing the XComponent. </sd:comment> </attribute>
Code[Encoding]
<attribute name="Encoding"> <sd:comment> Code encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute>
Code[ExtractFilename]
<attribute name="ExtractFilename"> <sd:comment> Filename to extract the Code element into. Used with Encodinging=BASE64 and Type = JavaClass </sd:comment> </attribute>
Code[Type]
<attribute name="Type"> <sd:comment> Code Type. JavaClass indicated Java .class file (base64 encoded). "Exec" signifies that Code element contains a command suitable for command line execution to invoke the component. </sd:comment> <choice> <value>JavaClass</value> <value>Jython</value> <value>XSLT</value> <value>Exec</value> </choice> </attribute>
Input[Encoding]
<attribute name="Encoding"> <sd:comment> Encoding - default is "PLAIN" </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute>
Input[Href]
<attribute name="Href"> <sd:comment> Refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute>
Output[Encoding]
<attribute name="Encoding"> <sd:comment> Code encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute>
Output[Href]
<attribute name="Href"> <sd:comment> Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute>
Post[CLASSPATH]
<attribute name="CLASSPATH"> <sd:comment> Additions to the CLASSPATH made by the XPipe executive prior to executing the code. </sd:comment> </attribute>
Post[Encoding]
<attribute name="Encoding"> <sd:comment> Code encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute>
Post[ExtractFilename]
<attribute name="ExtractFilename"> <sd:comment> Filename to extract the Pre element into. Used primarily with Encodinging=BASE64 and Type = JavaClass </sd:comment> </attribute>
Post[Href]
<attribute name="Href"> <sd:comment> Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute>
Post[Type]
<attribute name="Type"> <sd:comment> Post condition type. </sd:comment> <choice> <value>JavaClass</value> <value>Jython</value> <value>DTD</value> <value>RNG</value> <value>XSD</value> </choice> </attribute>
Pre[CLASSPATH]
<attribute name="CLASSPATH"> <sd:comment> Additions to the CLASSPATH made by the XPipe executive prior to executing the XComponent. </sd:comment> </attribute>
Pre[Encoding]
<attribute name="Encoding"> <sd:comment> Pre condition Encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute>
Pre[ExtractFilename]
<attribute name="ExtractFilename"> <sd:comment> Filename to extract the Pre element into. Used primarily with Encodinging=BASE64 and Type = JavaClass </sd:comment> </attribute>
Pre[Href]
<attribute name="Href"> <sd:comment> Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute>
Pre[Type]
<attribute name="Type"> <sd:comment> Pre condition type. </sd:comment> <choice> <value>JavaClass</value> <value>Jython</value> <value>XSD</value> <value>RNG</value> <value>DTD</value> </choice> </attribute>
Resource[Encoding]
<attribute name="Encoding"> <sd:comment> Encoding - default is "PLAIN" </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute>
Resource[ExtractFilename]
<attribute name="ExtractFilename"> <sd:comment> Filename to extract the Resource into. If not supplied, resource not extracted when XComponent installed. </sd:comment> </attribute>
Resource[Id]
<attribute name="Id"> <sd:comment> Resource identifier - must be unique in the XComponent. </sd:comment> </attribute>
Test[Name]
<attribute name="Name"> <sd:comment> An optional Name for the Test. Used in XComponentUnitTest application for example, to display test progress to the user. </sd:comment> <text/> </attribute>

Full Schema

<grammar xmlns:sd="http://xpipe.sourceforge.net/ns/SchemaDocumentation/1.0" xmlns="http://relaxng.org/ns/structure/1.0"> <sd:version>$Id: XComponent.rng,v 1.1.1.1 2002/01/07 10:32:17 derekh Exp $</sd:version> <start> <element name="XComponent"> <sd:comment> XComponent RelaxNG Schema. Part of the XPipe system http://xpipe.sourceforge.net. The RelaxNG Schema itself can be found at http://xpipe.sourceforge.net/XComponent.rng. It makes use of some common RelaxNG patterns housed in http://xpipe.sourceforge.net/Common.rng. </sd:comment> <ref name="Version"/> <ref name="Title"/> <ref name="Keywords"/> <ref name="AuthorInfo"/> <ref name="Doc"/> <ref name="Parameters"/> <ref name="UnitTests"/> <ref name="Pre"/> <ref name="Code"/> <ref name="Post"/> <ref name="Resources"/> </element> </start> <include href="Common.rng"/> <define name="Version"> <element name="Version"> <sd:comment> XComponent version information. </sd:comment> <text/> </element> </define> <define name="Title"> <element name="Title"> <sd:comment> XComponent Title. A reasonably descriptive string for what the XComponent does. </sd:comment> <text/> </element> </define> <define name="Keywords"> <element name="Keywords"> <sd:comment> Keywords are used for cataloging and retrieval of XComponents. A controlled vocabular is under consideration. </sd:comment> <zeroOrMore> <ref name="Keyword"/> </zeroOrMore> </element> </define> <define name="Keyword"> <element name="Keyword"> <sd:comment> A keyword. </sd:comment> <text/> </element> </define> <define name="AuthorInfo"> <element name="AuthorInfo"> <sd:comment> Author Information. Must be well formed. Basic XHTML recommended. </sd:comment> <ref name="ANY"/> </element> </define> <define name="Doc"> <element name="Doc"> <sd:comment> Documentation for the XComponent. Must be well formed. XHTML recommended. </sd:comment> <ref name="ANY"/> </element> </define> <define name="Parameters"> <element name="Parameters"> <sd:comment> An XComponent can take command line parameters. The parameters have names which are used for documentation purposes only. Only the values will be passed into the executing XComponent by the XPipe executive. Parameters are passed into the XComponent in the order specified in the XComponent. </sd:comment> <zeroOrMore> <ref name="Parameter"/> </zeroOrMore> </element> </define> <define name="Parameter"> <element name="Parameter"> <sd:comment> A named parameter. In an XPipe the named parameters can have values associated with them. At execution time, the parameter values are made available to the executing XComponent on its command line. </sd:comment> <attribute name="Name"> <text/> </attribute> <text/> </element> </define> <define name="UnitTests"> <element name="UnitTests"> <sd:comment> Unit Tests. Used to exercise the XComponent and ensure it is doing what it is supposed to do. The XComponentUnitTester application can be used to execute the tests. </sd:comment> <zeroOrMore> <ref name="Test"/> </zeroOrMore> </element> </define> <define name="Test"> <element name="Test"> <sd:comment> A unit test. Used to exercise the XComponent and ensure it is doing what it is supposed to do. The XComponentUnitTester application can be used to execute the test. </sd:comment> <ref name="Parameters"/> <ref name="Pre"/> <ref name="Input"/> <ref name="Output"/> <ref name="Post"/> <optional> <attribute name="Name"> <sd:comment> An optional Name for the Test. Used in XComponentUnitTest application for example, to display test progress to the user. </sd:comment> <text/> </attribute> </optional> </element> </define> <define name="Pre"> <element name="Pre"> <optional> <attribute name="Href"> <sd:comment> Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute> </optional> <optional> <attribute name="Type"> <sd:comment> Pre condition type. </sd:comment> <choice> <value>JavaClass</value> <value>Jython</value> <value>XSD</value> <value>RNG</value> <value>DTD</value> </choice> </attribute> </optional> <optional> <attribute name="Encoding"> <sd:comment> Pre condition Encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <optional> <attribute name="ExtractFilename"> <sd:comment> Filename to extract the Pre element into. Used primarily with Encodinging=BASE64 and Type = JavaClass </sd:comment> </attribute> </optional> <optional> <attribute name="CLASSPATH"> <sd:comment> Additions to the CLASSPATH made by the XPipe executive prior to executing the XComponent. </sd:comment> </attribute> </optional> <text/> </element> </define> <define name="Code"> <element name="Code"> <attribute name="Type"> <sd:comment> Code Type. JavaClass indicated Java .class file (base64 encoded). "Exec" signifies that Code element contains a command suitable for command line execution to invoke the component. </sd:comment> <choice> <value>JavaClass</value> <value>Jython</value> <value>XSLT</value> <value>Exec</value> </choice> </attribute> <optional> <attribute name="Encoding"> <sd:comment> Code encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <optional> <attribute name="ExtractFilename"> <sd:comment> Filename to extract the Code element into. Used with Encodinging=BASE64 and Type = JavaClass </sd:comment> </attribute> </optional> <optional> <attribute name="CLASSPATH"> <sd:comment> Additions to the CLASSPATH made by the XPipe executive prior to executing the XComponent. </sd:comment> </attribute> </optional> <text/> </element> </define> <define name="Post"> <element name="Post"> <optional> <attribute name="Href"> <sd:comment> Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute> </optional> <optional> <attribute name="Type"> <sd:comment> Post condition type. </sd:comment> <choice> <value>JavaClass</value> <value>Jython</value> <value>DTD</value> <value>RNG</value> <value>XSD</value> </choice> </attribute> </optional> <optional> <attribute name="Encoding"> <sd:comment> Code encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <optional> <attribute name="ExtractFilename"> <sd:comment> Filename to extract the Pre element into. Used primarily with Encodinging=BASE64 and Type = JavaClass </sd:comment> </attribute> </optional> <optional> <attribute name="CLASSPATH"> <sd:comment> Additions to the CLASSPATH made by the XPipe executive prior to executing the code. </sd:comment> </attribute> </optional> <text/> </element> </define> <define name="Input"> <element name="Input"> <sd:comment> Typically an XML instance. Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> <optional> <attribute name="Href"> <sd:comment> Refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute> </optional> <optional> <attribute name="Encoding"> <sd:comment> Encoding - default is "PLAIN" </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <text/> </element> </define> <define name="Output"> <element name="Output"> <optional> <attribute name="Href"> <sd:comment> Href attribute can be used to refer to an external URI or, if prefixed with a "#" a named resource from the Resources section of the XComponent. </sd:comment> </attribute> </optional> <optional> <attribute name="Encoding"> <sd:comment> Code encoding (PLAIN or BASE64). </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <text/> </element> </define> <define name="Resources"> <element name="Resources"> <sd:comment> Resources are "files" used by this XComponent. They can be input/output files for unit tests, schemas etc. </sd:comment> <zeroOrMore> <ref name="Resource"/> </zeroOrMore> </element> </define> <define name="Resource"> <element name="Resource"> <attribute name="Id"> <sd:comment> Resource identifier - must be unique in the XComponent. </sd:comment> </attribute> <optional> <attribute name="Encoding"> <sd:comment> Encoding - default is "PLAIN" </sd:comment> <choice> <value>PLAIN</value> <value>BASE64</value> </choice> </attribute> </optional> <optional> <attribute name="ExtractFilename"> <sd:comment> Filename to extract the Resource into. If not supplied, resource not extracted when XComponent installed. </sd:comment> </attribute> </optional> <text/> </element> </define> </grammar>