LMS

Welcome to the Lobeo Module Server project. Please feel free to submit bugs related to it.
   | Tasklist |   

FS#575 - [Lobby] script item descriptor file

Attached to Project: LMS
Opened by Guillaume (Guillaume) - Friday, 08 March 2013, 10:39 GMT
Last edited by Ferdinand (PaGaisu) - Tuesday, 26 March 2013, 08:57 GMT
Task Type Feature Request
Category
Status Closed
Assigned To Ferdinand (PaGaisu)
Operating System All
Severity Low
Priority Normal
Reported Version alpha6
Due in Version alpha7
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

a descriptor xml file has to be defined to describe a script.
(Only applied for scripts of type: template or exec)

Define the XSD of the descriptor, the descriptor must handle the following datas:

- attributes: a list of attributes (key, value, type)
- import: object to attach to the script
<import>context</import>
<import>application</import>
This task depends upon

Closed by  Ferdinand (PaGaisu)
Tuesday, 26 March 2013, 08:57 GMT
Reason for closing:  Implemented
Comment by Ferdinand (PaGaisu) - Tuesday, 26 March 2013, 08:54 GMT
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="script">
<xs:complexType>
<xs:sequence>
<xs:element ref="description" minOccurs="1" maxOccurs="unbounded"/>
<xs:element ref="include" minOccurs="0" maxOccurs="1"/>
<xs:element ref="parameters" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="description">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="lang" type="xs:string" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="include">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="object"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="object" type="xs:string"/>
<xs:element name="parameters">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="parameter"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="parameter">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="default" type="xs:string"/>
<xs:attribute name="description" type="xs:string" use="required"/>
<xs:attribute name="regexp" type="xs:string"/>
<xs:attribute name="example" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
Comment by Ferdinand (PaGaisu) - Tuesday, 26 March 2013, 08:56 GMT
<script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.lobeo.com/resources http://www.lobeo.com/resources/schema/script.xsd">;
<include>
<object>context</object>
<object>application</object>
</include>

<parameters>
<parameter
description="The port of the SMTP server"
default="465"
example="465"
regexp="\d+">
emailer.smtp.port
</parameter>
</parameters>

</script>

Loading...