common.xsd
来自「Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是」· XSD 代码 · 共 288 行
XSD
288 行
<?xml version="1.0"?>
<!--
Copyright 2001-2007 Hippo (www.hippo.nl)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- [JR 03-02-2005] Schema for the description of a document, for use with the XSD2CFORM XSL transformer -->
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:hm="http://www.hippo.nl/XMLMeta/1.0/"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<!-- ======================================================= -->
<!-- root element -->
<xs:element name="document">
<xs:complexType>
<xs:sequence>
<xs:element ref="meta"/>
<xs:element ref="content"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- ======================================================= -->
<xs:element name="image">
<xs:complexType>
<xs:attribute name="src" type="xs:string"/>
<xs:attribute name="alt" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="assets">
<xs:complexType>
<xs:sequence>
<xs:element name="asset" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="src" type="xs:string"/>
<xs:attribute name="alt" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="links">
<xs:complexType>
<xs:sequence>
<xs:element name="link" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="src" type="xs:string"/>
<xs:attribute name="alt" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="textarea">
<xs:restriction base="xs:string">
<xs:maxLength value="65536"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="meta">
<xs:annotation>
<xs:appinfo>
<hm:label>Document informatie</hm:label>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="governmentType"/>
<xs:element ref="creator"/>
<xs:element ref="creationdate"/>
<xs:element ref="title"/>
<xs:element ref="country"/>
<xs:element ref="lastmodified"/>
<xs:element ref="language"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- TYPES -->
<xs:simpleType name="date">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<!-- END TYPES -->
<xs:element name="date" type="date" use="required"/>
<xs:element name="lastmodifieddate" type="date" use="required"/>
<xs:element name="attentiondate" type="date" use="required"/>
<xs:element name="governmentType" type="xs:string" use="required"/> <!-- TODO: replace by overheidstype -->
<xs:element name="overheidstype" type="xs:string" use="required"/>
<xs:element name="description" type="xs:string" use="required"/>
<xs:element name="creator" type="xs:string" use="required"/>
<xs:element name="creationdate" type="date" use="required"/>
<xs:element name="title" type="xs:string" use="required"/>
<xs:element name="country">
<xs:simpleType name="pageTemplate">
<xs:restriction base="xs:string">
<xs:enumeration value="nl">
<xs:label>NL</xs:label>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="lastmodified" type="date" use="required"/>
<xs:element name="language" type="xs:string" use="required">
<xs:simpleType name="language">
<xs:restriction base="xs:string">
<xs:enumeration value="nl">
<xs:label>dut</xs:label>
</xs:enumeration>
<xs:enumeration value="en">
<xs:label>eng</xs:label>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="format" type="xs:string" use="required"/>
<xs:element name="contenttype" type="xs:string" use="required"/><!-- TODO : replace by DC field type -->
<xs:element name="public" type="xs:string" use="required"><!-- TODO : replace by DC field openbaarheid -->
<xs:complexType>
<xs:sequence>
<xs:element name="extranet" type="xs:boolean">
<xs:annotation>
<xs:appinfo>
<hm:label>Extranet</hm:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="intranet" type="xs:boolean">
<xs:annotation>
<xs:appinfo>
<hm:label>Intranet</hm:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="website" type="xs:boolean">
<xs:annotation>
<xs:appinfo>
<hm:label>Website</hm:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="openbaarheid" type="xs:string" use="required"><!-- TODO : replace by DC field openbaarheid -->
<xs:complexType>
<xs:sequence>
<xs:element name="extranet" type="xs:boolean">
<xs:annotation>
<xs:appinfo>
<hm:label>Extranet</hm:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="intranet" type="xs:boolean">
<xs:annotation>
<xs:appinfo>
<hm:label>Intranet</hm:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="website" type="xs:boolean">
<xs:annotation>
<xs:appinfo>
<hm:label>Website</hm:label>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="type" type="xs:string" use="required"/>
<xs:element name="cluster" type="xs:string"><!-- todo: replace by DC field coverage.spatial -->
<xs:annotation>
<xs:appinfo>
<hm:label>Subject Category</hm:label>
<hm:level>15</hm:level>
<hm:include>true</hm:include>
<hm:include-type>tree</hm:include-type>
<hm:include-source>/editing/content/content/schijndel/nl/meta/clusters.xml</hm:include-source>
</xs:appinfo>
</xs:annotation>
<xs:simpleType name="cluster">
<xs:restriction base="xs:string">
<xs:enumeration value="extranet">
<xs:label>extranet</xs:label>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="coverage.spatial" type="xs:string">
<xs:annotation>
<xs:appinfo>
<hm:label>Subject Category</hm:label>
<hm:level>15</hm:level>
<hm:include>true</hm:include>
<hm:include-type>tree</hm:include-type>
<hm:include-source>/editing/content/content/schijndel/nl/meta/clusters.xml</hm:include-source>
</xs:appinfo>
</xs:annotation>
<xs:simpleType name="cluster">
<xs:restriction base="xs:string">
<xs:enumeration value="extranet">
<xs:label>extranet</xs:label>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="meerinfo" type="xs:string">
<xs:annotation>
<xs:appinfo>
<hm:label>Subject Category</hm:label>
<hm:level>15</hm:level>
<hm:include>true</hm:include>
<hm:include-type>tree</hm:include-type>
<hm:include-source>/editing/content/content/schijndel/nl/meta/clusters.xml</hm:include-source>
</xs:appinfo>
</xs:annotation>
<xs:simpleType name="cluster">
<xs:restriction base="xs:string">
<xs:enumeration value="extranet">
<xs:label>extranet</xs:label>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="subject" type="xs:string" use="required">
<xs:annotation>
<xs:appinfo>
<hm:label>Subject Category</hm:label>
<hm:level>15</hm:level>
<hm:include>true</hm:include>
<hm:include-type>tree</hm:include-type>
<hm:include-source>/editing/dialogs/listpicker/general-plugins/tree/list.xml?source=/content/schijndel/nl/meta/themas.xml</hm:include-source>
</xs:appinfo>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string" id="category">
<xs:enumeration value="default">
<xs:annotation>
<xs:appinfo>
<hm:label></hm:label>
</xs:appinfo>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="start_running_time" type="date"/>
<xs:element name="end_running_time" type="date"/>
<!-- override -->
<xs:element name="content" type="xs:string"/>
</xs:schema>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?