Subversion Repositories bacoAlunos

Rev

Rev 1067 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 rel. 2 sp2 (http://www.altova.com) by Jorge Machado (Escola Superior de tecnologia e Gestao, Portalegre) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.estgp.pt/baco/directory/" targetNamespace="http://www.estgp.pt/baco/directory/" elementFormDefault="qualified" attributeFormDefault="unqualified">
        <xs:element name="directory">
                <xs:annotation>
                        <xs:documentation>This schema is to define information structured directories</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                        <xs:sequence>
                                <xs:element name="groupsDeclaration" type="groupDeclarationT" minOccurs="0"/>
                                <xs:choice maxOccurs="unbounded">
                                        <xs:element name="node" type="nodeT"/>
                                        <xs:element name="leaf" type="leafT"/>
                                </xs:choice>
                                <xs:element name="rights" type="rightsT" minOccurs="0"/>
                        </xs:sequence>
                        <xs:attribute name="id" type="xs:ID" use="required"/>
                        <xs:attribute name="label" use="required"/>
            <xs:attribute name="label_en" use="optional"/>
            <xs:attribute name="label_es" use="optional"/>
                        <xs:attribute name="place" use="required"/>
                        <xs:attribute name="style" use="required"/>
                        <xs:attribute name="layout" use="required"/>
                        <xs:attribute name="layoutRoot" use="required"/>
                        <xs:attribute name="targetRole" use="required"/>
                        <xs:attribute name="menuKey" use="required"/>
                </xs:complexType>
        </xs:element>
        <xs:complexType name="nodeT">
                <xs:annotation>
                        <xs:documentation>A node is a directory internal object, it has a label and an identifier and can have children nodes and/or leafs</xs:documentation>
                </xs:annotation>
                <xs:sequence>
                        <xs:element name="groupsDeclaration" type="groupDeclarationT" minOccurs="0"/>
                        <xs:choice maxOccurs="unbounded">
                                <xs:element name="node" type="nodeT"/>
                                <xs:element name="leaf" type="leafT"/>
                        </xs:choice>
                        <xs:element name="rights" type="rightsT" minOccurs="0"/>
                </xs:sequence>
        <xs:attribute name="label" use="required"/>
                <xs:attribute name="label_en" use="optional"/>
        <xs:attribute name="label_es" use="optional"/>
                <xs:attribute name="group" use="optional">
                        <xs:annotation>
                                <xs:documentation>Grouping purposes in styling</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="showNav" type="xs:boolean" use="optional">
                        <xs:annotation>
                                <xs:documentation>Show link to this node in navigation menus, true by default</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="type" use="optional">
                        <xs:annotation>
                                <xs:documentation>Type of node, by default HTTP link</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                                <xs:restriction base="xs:string">
                                        <xs:enumeration value="ftp"/>
                                        <xs:enumeration value="http"/>
                                </xs:restriction>
                        </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="id" type="xs:ID" use="required"/>
        </xs:complexType>
        <xs:complexType name="leafT">
                <xs:annotation>
                        <xs:documentation>A leaf is an URL for an external or internal WEB site</xs:documentation>
                </xs:annotation>
                <xs:sequence>
                        <xs:choice minOccurs="0" maxOccurs="unbounded">
                                <xs:annotation>
                                        <xs:documentation>A leaf can be a root of some diferent system like FTP server Directory</xs:documentation>
                                </xs:annotation>
                                <xs:element name="node" type="nodeT"/>
                                <xs:element name="leaf" type="leafT"/>
                        </xs:choice>
                        <xs:element name="rights" type="rightsT" minOccurs="0"/>
                </xs:sequence>
                <xs:attribute name="url" type="xs:string" use="required"/>
                <xs:attribute name="id" type="xs:ID" use="required"/>
                <xs:attribute name="label" use="required"/>
        <xs:attribute name="label_en" use="optional"/>
        <xs:attribute name="label_es" use="optional"/>
                <xs:attribute name="xml" type="xs:boolean" use="optional">
                        <xs:annotation>
                                <xs:documentation>False by default</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="layout" type="xs:boolean">
                        <xs:annotation>
                                <xs:documentation>True by default, define if a source is to be included in layout or opened in all window</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="style" type="xs:boolean">
                        <xs:annotation>
                                <xs:documentation>True by default, define if a source is to be styled by the XSLT.
                                When style=false and layout=false external file will be directly writed in TopWindow</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="absolute" type="xs:boolean" use="required">
                        <xs:annotation>
                                <xs:documentation>follow parameter will be evaluated only If this parameter is set to false</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="proxy" type="xs:string" use="optional">
                        <xs:annotation>
                                <xs:documentation>Only consider a proxy if it is here defined</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="group" use="optional">
                        <xs:annotation>
                                <xs:documentation>Grouping purposes in styling</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="remoteExtensionRoot" type="xs:boolean" use="optional"/>
                <!--
                                The next attributes are filled by system BACO when remoteExtensionPoint is reached
                -->
                <xs:attribute name="ftpDirectory" type="xs:boolean"/>
                <xs:attribute name="size" use="optional">
                        <xs:annotation>
                                <xs:documentation>Size of content in Kb</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="mimeType" use="optional">
                        <xs:annotation>
                                <xs:documentation>Mime Type of content in Kb</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="lastModification" use="optional">
                        <xs:annotation>
                                <xs:documentation>Last Modification of content in Kb</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="visualization" use="optional">
                        <xs:annotation>
                                <xs:documentation>Type of node, by default HTTP link</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                                <xs:restriction base="xs:string">
                                        <xs:enumeration value="filesystem"/>
                                        <xs:enumeration value="normal"/>
                                </xs:restriction>
                        </xs:simpleType>
                </xs:attribute>
               
        </xs:complexType>
        <xs:complexType name="groupDeclarationT">
                <xs:sequence>
                        <xs:element name="group" maxOccurs="unbounded"/>
                </xs:sequence>
        </xs:complexType>
        <xs:complexType name="rightsT">
                <xs:annotation>
                        <xs:documentation>Rights define who is authorized to enter in a node</xs:documentation>
                </xs:annotation>
                <xs:sequence>
                        <xs:choice maxOccurs="unbounded">
                                <xs:element name="role" type="rightT1"/>
                                <xs:element name="user" type="rightT1"/>
                        </xs:choice>
                        <xs:element name="internal" type="xs:boolean" minOccurs="0"/>
                </xs:sequence>
        </xs:complexType>
        <xs:complexType name="rightT1" mixed="true">
                <xs:annotation>
                        <xs:documentation>A right T1 can be to permit or restrict</xs:documentation>
                </xs:annotation>
                <xs:attribute name="type" use="required">
                        <xs:simpleType>
                                <xs:restriction base="xs:string">
                                        <xs:enumeration value="permit"/>
                                        <xs:enumeration value="restrict"/>
                                </xs:restriction>
                        </xs:simpleType>
                </xs:attribute>
        </xs:complexType>
</xs:schema>