simpletext.xsd
来自「Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是」· XSD 代码 · 共 189 行
XSD
189 行
<?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">
<xs:include schemaLocation="common.xsd"/>
<!-- ======================================================= -->
<xs:element name="meta">
<xs:annotation>
<xs:appinfo>
<hm:label>Document informatie</hm:label>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<!-- don't show these fields -->
<xs:element ref="overheidstype"/>
<xs:element ref="creator"/>
<xs:element ref="date"/>
<xs:element ref="format"/>
<xs:element ref="type"/>
<xs:element ref="country"/>
<!-- show these fields -->
<xs:element ref="openbaarheid"/>
<xs:element ref="coverage.spatial"/>
<xs:element ref="language"/>
<xs:element name="subject" type="xs:string"/><!-- TODO: replace this with selectionlist -->
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="title" type="xs:string" use="required"/>
<xs:element name="subtitle" type="xs:string"/>
<xs:element name="html">
<xs:complexType>
<xs:sequence>
<xs:element name="body" type="xs:string" use="required">
<xs:annotation>
<xs:appinfo>
<hm:type>htmlarea</hm:type>
<hm:datatype>F</hm:datatype>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="content">
<xs:annotation>
<xs:appinfo>
<hm:label>Body content</hm:label>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="title"/>
<!--xs:element ref="subtitle"/-->
<xs:element ref="description"/>
<xs:element name="bodycontent" type="xs:string">
<xs:annotation>
<xs:appinfo>
<hm:type>htmlarea</hm:type>
<hm:datatype>F</hm:datatype>
<hm:bindingpath>/document/content/bodycontent</hm:bindingpath>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element ref="links"/>
<xs:element ref="assets"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="expiration" type="xs:boolean"/>
<xs:element name="expirationdate" type="date"/>
<xs:element name="publicationdate" type="date"/>
<xs:element name="links" type="xs:string"/>
<xs:element name="file" type="xs:string"/>
<xs:element name="newstype" type="xs:string">
<xs:simpleType name="pageTemplate">
<xs:restriction base="xs:string">
<xs:enumeration value="persbericht">
<xs:label>persbericht</xs:label>
</xs:enumeration>
<xs:enumeration value="bekendmaking">
<xs:label>bekendmaking</xs:label>
</xs:enumeration>
<xs:enumeration value="nieuwsbericht">
<xs:label>nieuwsbericht</xs:label>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!--xs:element name="keywords">
<xs:annotation>
<xs:appinfo>
<hm:label>keywords</hm:label>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="keyword" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element-->
<xs:element name="language">
<xs:simpleType name="pageTemplate">
<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="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:attribute name="id" type="xs:string">
<xs:annotation>
<xs:appinfo>
<hm:label>ID</hm:label>
<hm:type>text</hm:type>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name="href" type="xs:string">
<xs:annotation>
<xs:appinfo>
<hm:label>Location</hm:label>
<hm:type>text</hm:type>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name="section" type="xs:string">
<xs:annotation>
<xs:appinfo>
<hm:label>Magazine/website source</hm:label>
<hm:type>output</hm:type>
<hm:level>0</hm:level>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:element name="introduction" type="xs:string"/>
<xs:element name="text" type="xs:string"/>
</xs:schema>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?