[tdwg-tapir] Schema modification: r526 - trunk/protocol
tdwg-tapir at lists.tdwg.org
tdwg-tapir at lists.tdwg.org
Mon May 15 17:13:59 CEST 2006
Author: markus
Date: 2006-05-15 17:13:58 +0200 (Mon, 15 May 2006)
New Revision: 526
Added:
trunk/protocol/xlink.xsd
Modified:
trunk/protocol/vcard.xsd
Log:
keep valid vcard schema with tapir as there is no official vcard schema existing (only a IETF draft DTD)
Modified: trunk/protocol/vcard.xsd
===================================================================
--- trunk/protocol/vcard.xsd 2006-05-15 15:04:24 UTC (rev 525)
+++ trunk/protocol/vcard.xsd 2006-05-15 15:13:58 UTC (rev 526)
@@ -2,7 +2,7 @@
<schema
targetNamespace="http://www.w3.org/2001/vcard-rdf/3.0#"
xmlns="http://www.w3.org/2001/XMLSchema"
- xmlns:x="http://www.w3.org/XML/1998/namespace"
+ xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#"
elementFormDefault="qualified"
@@ -16,6 +16,9 @@
XML Schema for representing vCards in XML
+ Modified version based on http://dli.grainger.uiuc.edu/publications/metadatacasestudy/dc_schemas/vcard.xsd
+ The xml namespace is prefixed xml which seems to be reuired for the standard xml namespace. Otherwise the schema wouldnt validate
+
This schema is based on the Representing vCard Objects in RDF/XML at the W3C http://www.w3.org/TR/vcard-rdf
</documentation>
@@ -28,7 +31,8 @@
</annotation>
- <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
+ <import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
<import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
<element name="VCARD">
@@ -36,7 +40,7 @@
<sequence>
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
@@ -84,7 +88,7 @@
</list>
</simpleType>
</attribute>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</extension>
</simpleContent>
</complexType>
@@ -108,7 +112,7 @@
</simpleType>
</attribute>
<attribute name="OTHERTYPE" type="string"/>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</extension>
</simpleContent>
</complexType>
@@ -142,7 +146,7 @@
</list>
</simpleType>
</attribute>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
@@ -152,7 +156,7 @@
<element name="Orgname" minOccurs="0" maxOccurs="unbounded" type="vCard:simpleElement"/>
<element name="Orgunit" minOccurs="0" maxOccurs="unbounded" type="vCard:simpleElement"/>
</sequence>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
@@ -165,7 +169,7 @@
<element name="Prefix" minOccurs="0" maxOccurs="unbounded" type="vCard:simpleElement"/>
<element name="Suffix" minOccurs="0" maxOccurs="unbounded" type="vCard:simpleElement"/>
</sequence>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
@@ -193,7 +197,7 @@
</list>
</simpleType>
</attribute>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</restriction>
</complexContent>
</complexType>
@@ -214,7 +218,7 @@
</list>
</simpleType>
</attribute>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</extension>
</simpleContent>
</complexType>
@@ -225,7 +229,7 @@
<simpleContent>
<extension base="string">
<attribute name="TYPE" type="string"/>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</extension>
</simpleContent>
</complexType>
@@ -244,7 +248,7 @@
<sequence>
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
@@ -253,7 +257,7 @@
<sequence>
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
@@ -266,7 +270,7 @@
<complexType name="simpleElement">
<simpleContent>
<extension base="string">
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
</extension>
</simpleContent>
</complexType>
@@ -287,7 +291,7 @@
</simpleType>
</attribute>
<attribute name="TYPE" type="string"/>
- <attribute ref="x:lang" use="optional"/>
+ <attribute ref="xml:lang" use="optional"/>
<attributeGroup ref="xlink:simpleLink"/>
</extension>
</simpleContent>
Added: trunk/protocol/xlink.xsd
===================================================================
--- trunk/protocol/xlink.xsd 2006-05-15 15:04:24 UTC (rev 525)
+++ trunk/protocol/xlink.xsd 2006-05-15 15:13:58 UTC (rev 526)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema targetNamespace="http://www.w3.org/1999/xlink"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ elementFormDefault="qualified"
+ attributeFormDefault="qualified">
+
+ <annotation>
+ <documentation xml:lang="en">
+ XLink XML Schema
+
+ The source of this XSD is the METS: Metadata Encoding and Transmission Standard
+ project at the Library of Congress
+ http://www.loc.gov/standards/mets/xlink.xsd
+ </documentation>
+
+ <appinfo xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <dc:title>XLink XML Schema</dc:title>
+ <dc:creator>METS: Metadata Encoding and Transmission Standard</dc:creator>
+ <dc:source>http://www.loc.gov/standards/mets/xlink.xsd</dc:source>
+ <dc:relation>http://www.loc.gov/standards/mets/</dc:relation>
+ </appinfo>
+ </annotation>
+
+ <!-- global attributes -->
+ <attribute name="href" type="anyURI"/>
+ <attribute name="role" type="string"/>
+ <attribute name="arcrole" type="string"/>
+ <attribute name="title" type="string" />
+ <attribute name="show">
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="new" />
+ <enumeration value="replace" />
+ <enumeration value="embed" />
+ <enumeration value="other" />
+ <enumeration value="none" />
+ </restriction>
+ </simpleType>
+ </attribute>
+ <attribute name="actuate">
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="onLoad" />
+ <enumeration value="onRequest" />
+ <enumeration value="other" />
+ <enumeration value="none" />
+ </restriction>
+ </simpleType>
+ </attribute>
+ <attribute name="label" type="string" />
+ <attribute name="from" type="string" />
+ <attribute name="to" type="string" />
+
+ <attributeGroup name="simpleLink">
+ <attribute name="type" type="string" fixed="simple" form="qualified" />
+ <attribute ref="xlink:href" use="optional" />
+ <attribute ref="xlink:role" use="optional" />
+ <attribute ref="xlink:arcrole" use="optional" />
+ <attribute ref="xlink:title" use="optional" />
+ <attribute ref="xlink:show" use="optional" />
+ <attribute ref="xlink:actuate" use="optional" />
+ </attributeGroup>
+
+ <attributeGroup name="extendedLink">
+ <attribute name="type" type="string" fixed="extended" form="qualified" />
+ <attribute ref="xlink:role" use="optional" />
+ <attribute ref="xlink:title" use="optional" />
+ </attributeGroup>
+
+ <attributeGroup name="locatorLink">
+ <attribute name="type" type="string" fixed="locator" form="qualified" />
+ <attribute ref="xlink:href" use="required" />
+ <attribute ref="xlink:role" use="optional" />
+ <attribute ref="xlink:title" use="optional" />
+ <attribute ref="xlink:label" use="optional" />
+ </attributeGroup>
+
+ <attributeGroup name="arcLink">
+ <attribute name="type" type="string" fixed="arc" form="qualified" />
+ <attribute ref="xlink:arcrole" use="optional" />
+ <attribute ref="xlink:title" use="optional" />
+ <attribute ref="xlink:show" use="optional" />
+ <attribute ref="xlink:actuate" use="optional" />
+ <attribute ref="xlink:from" use="optional" />
+ <attribute ref="xlink:to" use="optional" />
+ </attributeGroup>
+
+ <attributeGroup name="resourceLink">
+ <attribute name="type" type="string" fixed="resource" form="qualified" />
+ <attribute ref="xlink:role" use="optional" />
+ <attribute ref="xlink:title" use="optional" />
+ <attribute ref="xlink:label" use="optional" />
+ </attributeGroup>
+
+ <attributeGroup name="titleLink">
+ <attribute name="type" type="string" fixed="title" form="qualified" />
+ </attributeGroup>
+
+ <attributeGroup name="emptyLink">
+ <attribute name="type" type="string" fixed="none" form="qualified" />
+ </attributeGroup>
+
+</schema>
\ No newline at end of file
More information about the tdwg-tag
mailing list