...now looks like this...
<!-- the new way -->
<resource xsi:type="vs:SkyService" xmlns="..." >
...
That is, you now see both specific type (SkyService) and the base concept it extends (resource) in the same element.
Here's an abridged list of changes made. (A more complete description can be found here.)
- only global types are defined (anonymous types are avoided).
- no global elements are defined; an application that uses VOResource can define its own global element(s) to use as a root element as necessary.
- references to other resources has been simplified
- the logical ID element has been dropped
- the generic Capabilities element has been dropped; specific standard services (e.g. ConeSearch, SimpleImageAccess) define these in their extensions.
About the root element
As mentioned above, VOResource defines no global elements. The proper root element is expected to be defined by the application, as necessary, via its own application schema. For example, a particular application might define the following schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://astroservices.org/ResourceApplication"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10"
xmlns:ra="http://astroservices.org/ResourceApplication"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="0.10">
<xs:annotation>
<xs:documenation> application schema using VOResource </xs:documenation>
</xs:annotation>
<xs:import namespace="http://www.ivoa.net/xml/VOResource/v0.10" />
<xs:element name="ResourceDescription" type="vr:Resource"/>
<xs:element name="Resources">
<xs:complexType>
<xs:sequence>
<xs:element ref="ra:ResourceDescription" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
In this example, two global elements have been defined, either which can be used as a root element. The application would use this simple schema to verify its documents.
Note that in the example instance documents listed above, an application schema is not needed. That's because the root element in each case specifies its type using an xsi:type attribute. According to the XML Schema standard, this is sufficient to verify the document.
It is expected that registry applications will use "resource" as the root element, just like in the examples listed above.
Useful Tools
Conversion Stylesheets
- XSL Stylesheets for converting between v0.9 and v0.10
Background Materials
What's Ahead in Future Versions
- If no fundemental problems are found with this release, it is expected that:
- the next release of VOResource will be v1.0
- each of the extensions will begin to evolve separately.
- VORegistry will likely be updated as the standard Registry Interface is refined.
<--
-->
META FILEATTACHMENT |
attr="" comment="Converts v0.9 VOResource documents to v0.10" date="1097707415" name="VOResource-v0.9-v0.10.xsl" path="VOResource-v0.9-v0.10.xsl" size="56896" user="RayPlante" version="1.2" |
META FILEATTACHMENT |
attr="" comment="Converts v0.10 VOResource documents to v0.9" date="1089836202" name="VOResource-v0.10-v0.9.xsl" path="VOResource-v0.10-v0.9.xsl" size="59716" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="" comment="All schemas and examples in the v0.10 release" date="1099498982" name="VOResource-v0.10.tar.gz" path="VOResource-v0.10.tar.gz" size="20866" user="RayPlante" version="1.2" |
META FILEATTACHMENT |
attr="" comment="All schemas and examples in the v0.10 release" date="1099499076" name="VOResource-v0.10.zip" path="VOResource-v0.10.zip" size="28931" user="RayPlante" version="1.2" |
META FILEATTACHMENT |
attr="" comment="Alll schemas & examples, for local disk access" date="1099499159" name="VOResource-v0.10-local.tar.gz" path="VOResource-v0.10-local.tar.gz" size="20950" user="RayPlante" version="1.2" |
META FILEATTACHMENT |
attr="" comment="All schemas & examples, for local disk access" date="1099499270" name="VOResource-v0.10-local.zip" path="VOResource-v0.10-local.zip" size="29108" user="RayPlante" version="1.2" |
META FILEATTACHMENT |
attr="h" comment="" date="1089951746" name="authority.xml" path="authority.xml" size="1666" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="" date="1089951798" name="collection.xml" path="collection.xml" size="3056" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="" date="1089951870" name="conesearch.xml" path="conesearch.xml" size="3810" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="" date="1089951964" name="organisation.xml" path="organisation.xml" size="1592" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="" date="1089952026" name="registry.xml" path="registry.xml" size="2448" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="" date="1089952189" name="sia.xml" path="sia.xml" size="8248" user="RayPlante" version="1.1" |
META FILEATTACHMENT |
attr="h" comment="" date="1089952320" name="webform.xml" path="webform.xml" size="2518" user="RayPlante" version="1.1" |
|