openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 121ab9957fd118007c5fcd8c7f643aa10e1e2abb
parent 9ac2659782a9349be423dd0c915728bcd4e9bdee
Author: dankert <devnull@localhost>
Date:   Sat,  6 Nov 2010 03:37:34 +0100

XSD- und XML-Datei erzeugt (als Beispiel, ohne Benutzung!)

Diffstat:
themes/default/templates/template.xsd | 45+++++++++++++++++++++++++++++++++++++++++++++
themes/default/templates/title/show.tpl.src.xml | 30+++++++++++-------------------
2 files changed, 56 insertions(+), 19 deletions(-)

diff --git a/themes/default/templates/template.xsd b/themes/default/templates/template.xsd @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsd:schema xmlns="http://www.openrat.de" targetNamespace="http://www.openrat.de" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" + attributeFormDefault="unqualified"> + + <!-- TODO --> + <xsd:element name="page" type="pageType" /> + <xsd:complexType name="pageType"> + <xsd:sequence> + <xsd:element name="table" type="tableType" /> + </xsd:sequence> + <xsd:attribute name="class" type="xsd:string" /> + </xsd:complexType> + <xsd:complexType name="tableType"> + <xsd:sequence> + <xsd:element name="row" type="rowType" /> + </xsd:sequence> + <xsd:attribute name="padding" type="xsd:int" /> + <xsd:attribute name="space" type="xsd:int" /> + <xsd:attribute name="width" type="xsd:string" /> + </xsd:complexType> + <xsd:complexType name="rowType"> + <xsd:sequence> + <xsd:element maxOccurs="unbounded" name="cell" type="cellType" /> + </xsd:sequence> + </xsd:complexType> + <xsd:complexType name="cellType"> + <xsd:sequence> + <xsd:element name="image" type="imageType" minOccurs="0" /> + <xsd:element name="text" type="textType" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="class" type="xsd:string" /> + <xsd:attribute name="width" type="xsd:string" /> + </xsd:complexType> + <xsd:complexType name="textType"> + <xsd:attribute name="title" type="xsd:string" /> + <xsd:attribute name="text" type="xsd:string" /> + </xsd:complexType> + <xsd:complexType name="imageType"> + <xsd:attribute name="icon" type="xsd:string" /> + <xsd:attribute name="align" type="xsd:string" /> + </xsd:complexType> + +</xsd:schema>+ \ No newline at end of file diff --git a/themes/default/templates/title/show.tpl.src.xml b/themes/default/templates/title/show.tpl.src.xml @@ -1,24 +1,16 @@ -<page class="title"> +<?xml version="1.0" encoding="ISO-8859-1" ?> +<page class="title" xmlns="http://www.openrat.de" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de ../template.xsd"> + + <!-- TODO --> <table padding="5" space="0" width="100%"> <row> - <cell class="title" width="30%"> - <image icon="database" align="left"/> - <text title="dbid" text="var:dbname"></text> - </cell> - <cell class="title" width="40%" style="text-align:center;"> - <text var="cms_title"/> - </cell> - <cell class="title" width="30%" style="text-align:right;"> - <image icon="user" align="right"/> - <link title="USER_LOGOUT_DESC" url="logout_url" target="_top"> - <text text="USER_LOGOUT"/> - </link> - <text raw=" ("/> - <link title="USER_PROFILE_DESC" url="profile_url" target="cms_main_main"> - <text var="userfullname"/> - <text raw=")"/> - </link> - </cell> + <cell></cell> </row> + + </table> + + </page> \ No newline at end of file