Marcus Carr | 1 Apr 2008 03:47
Picon

Re: Best Practice for adding a "standard data item" to pre-existing XML vocabularies?

Roger Costello wrote:

> Suppose that a number of different communities have already created
> their own unique XML vocabularies.  To promote cross-community
> interoperability (including mashups) the communities decide to
> standardize "When" information since they all have, in one form or
> another, "When" information.  What is best practice for incorporating
>  a standard information item (e.g. a "When" information item) into a
> diverse set of pre-existing XML vocabularies?

That assumes there is such a thing as a standard information item. Even 
if there seems to be one between two organisations today, there is no 
guarantee that there will be tomorrow. If one side changes and you've 
standardised it, how will you cope with change?

I prefer a model where you document the intersections between documents 
as a set of configuration items, providing somewhere for developers to 
find out how to manage passing data from one structure to another. 
Trying to cram vocabularies together is not scalable - at some point, it 
has to fall apart. Documenting intersections is scalable - if you want 
to add a new vocabulary, you add it, without any change to anything 
except your configuration item. I think that putting the information in 
the hands of the developers is more useful than trying to formalise 
vocabularies for the short term.

Marcus

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
(Continue reading)

wilde825 | 1 Apr 2008 16:33
Picon

[XML Schema] Extending types in imported schema instance

Dear devver,
 
I'm having big difficulties getting my schema to work. I've been reading the w3 works about the XML schema, but can't find the problem I'm doing wrong.
 
My structure is some kind of top down extending structure. I've got my schema that i call from the XML instance, this one imports the other namespaces that should be used.
 
Here are my sources (I'll quote them at the bottom of this message for archiving):
 
Validation:
 
XML Source example:
 
XSD ('wrapper') schema instance:
 
XSD (import) schema instance for ns 'mysql':
 
 
I've been able to create this working structure (in mysql.xsd):
    <xs:complexType name="table">
        <xs:sequence>
            <xs:element ref="field" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attribute name="name" type="xs:string" use="required" />
    </xs:complexType>
[..]
    <xs:complexType name="field">
        <xs:attribute name="name" type="xs:string" use="required" />
        <xs:attribute name="table" type="xs:string" use="optional" />
    </xs:complexType>
[..] 
    <xs:element name="field"             type="field" />
But I'd like to use this (doesn't validate with the xml) (in mysql.xsd):    <xs:complexType name="table">
        <xs:sequence>
            <xs:element name="field" type="mysql:field" minOccurs="0" maxOccurs="unbounded" /> <!-- or type="field" //-->
        </xs:sequence>
        <xs:attribute name="name" type="xs:string" use="required" />
    </xs:complexType>
[..]
    <xs:complexType name="field">
        <xs:attribute name="name" type="xs:string" use="required" />
        <xs:attribute name="table" type="xs:string" use="optional" />
    </xs:complexType>This is probably the only way out, if I'm trying to extend using the same tagname (but stronger validation because of parent element). This doesnt work (in mysql.xsd):    <xs:complexType name="cond">
        <xs:sequence>
            <xs:element name="field" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:complexContent>
                        <xs:extension base="field">
                            <xs:attribute name="operator" type="xs:string" use="required" />
                        </xs:extension>
                    </xs:complexContent>
                </xs:complexType>        
            </xs:element>
        </xs:sequence>
    </xs:complexType>I don't understand what I'm doing wrong, because all google code snippets + w3 works does say this should be right. I've been shuffling around with targetnamespace and so on, but it didn't work outThis error i get very much:Warning: DOMDocument::schemaValidate() [function.DOMDocument-schemaValidate]: Validation failed: no DTD found !Element '{http://sove.nl/ns/system/mysql/}field': This element is not expected. Expected is ( field ). in /var/www/client/sove.nl/httpdocs/xmysql_mysql.php on line 34So it's expecting an element with a blank namespace, but it's defined inside the MYSQL namespace (but is ignored)How can I get my extension to work? Please help, been trying for days now. Big thanks, Robert de Wilde Here are my full source codes (better don't quote them i guess): XMYSQL_MYSQL.PHP<?php $library = new SchemaDOMDocument("1.0");
 $library->validateOnParse = true;
 
 $library->load('xmysql_mysql.xml');
 $library->validateXMLSchemas();
 
 class SchemaDOMDocument extends DOMDocument
 {
     public function validateXMLSchemas()
     {
         $schemaLocation = $this->documentElement->getAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation');
 
         if (! $schemaLocation) {
             throw new DOMException('No schemas found');
         }
 
         /* the schemaLocation contains pairs of values separated by spaces the first value in each pair
            is the name space to be validated. The second is a URI defining the location of the schema
           
            validate each namespace using the provided URI
          */
 
          $pairs = preg_split('/\s+/', $schemaLocation);
          $pairCount = count($pairs);
         
          if ($pairCount <= 1) {
              throw new DOMException('Invalid schema location value.');
          }
 
          $valid = true;
          for($x = 1; $x < $pairCount; $x+=2) {
              $valid = $this->schemaValidate($pairs[$x]) && $valid;
          }
         
          if(! $valid) {
              throw new DOMException('XML Schema Validation Failure');
          }
 
          return true;
     }
 }  ?>
XMYSQL_MYSQL.XML:<?xml version="1.0" encoding="utf-8"?><stream xmlns="http://sove.nl/ns/core/"
    xmlns:mysql="http://sove.nl/ns/system/mysql/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://sove.nl/ns/core/ http://sove.nl/ns/core.xsd">
    
    
 <mysql:set>  
  <mysql:query type="select">
   <mysql:table name="objects">
    <mysql:field name="objectid" />
    <mysql:field name="objectname" />
    <mysql:field name="objectgroup" />
   </mysql:table>
   <mysql:table name="settings">
    <mysql:field name="settingtimezone" />
   </mysql:table>
   <mysql:join>
    <mysql:table name="extended">
     <mysql:field name="extendedobjectid" />
     <mysql:field name="extendedinfo" />
    </mysql:table>
    <mysql:cond>
     <mysql:field name="extendedobjectid" table="extended" />
    </mysql:cond>
   </mysql:join>
   <mysql:cond>
    <mysql:field name="objectid" table="objects" />
   </mysql:cond>
   <mysql:order type="desc">
    <mysql:field name="objectid" table="objects" />
   </mysql:order>
   <mysql:group>
    <mysql:field name="objectid" table="objects" />
   </mysql:group>
  </mysql:query>
 </mysql:set>
  
  
</stream> CORE.XSD<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns="http://sove.nl/ns/core/" xmlns:mysql="http://sove.nl/ns/system/mysql/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sove.nl/ns/core/">
 
 <!-- ## SYSTEM ## //-->
 <xs:import namespace="http://sove.nl/ns/system/mysql/" schemaLocation="http://sove.nl/ns/system/mysql.xsd"/>
 
 <!-- ## TYPES ## //-->
 <!--<xs:import namespace="http://sove.nl/ns/types/boek/" schemaLocation="http://sove.nl/ns/types/boek.xsd"/>//-->
 
 <xs:complexType name="stream">
  <xs:sequence>
   <xs:element ref="mysql:set"/>
  </xs:sequence>
 </xs:complexType>
 
 <xs:element name="stream" type="stream" />
</xs:schema> MYSQL.XSD<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns="http://sove.nl/ns/system/mysql/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sove.nl/ns/system/mysql/">
  <xs:complexType name="set">
  <xs:sequence>
   <xs:element ref="query"/>
  </xs:sequence>     
 </xs:complexType> <xs:complexType name="query">
  <xs:sequence>
   <xs:element ref="table"   minOccurs="1" maxOccurs="unbounded" />
   <xs:element ref="query"   minOccurs="0" maxOccurs="unbounded" />
   <xs:element ref="join"    minOccurs="0" maxOccurs="unbounded" />
   <xs:element ref="cond"    minOccurs="0" maxOccurs="unbounded" />
   <xs:element ref="order"   minOccurs="0" maxOccurs="1" />
   <xs:element ref="group"   minOccurs="0" maxOccurs="1" />
  </xs:sequence>
  <xs:attribute name="type" type="xs:string" />
 </xs:complexType>
 
 <xs:complexType name="table">
  <xs:sequence>
   <xs:element ref="field" minOccurs="0" maxOccurs="unbounded" />
  </xs:sequence>
  <xs:attribute name="name" type="xs:string" use="required" />
 </xs:complexType>
 
 <xs:complexType name="field">
  <xs:attribute name="name" type="xs:string" use="required" />
  <xs:attribute name="table" type="xs:string" use="optional" />
 </xs:complexType> <xs:complexType name="join">
  <xs:sequence>
   <xs:element ref="table" minOccurs="1" />
   <xs:element ref="join" minOccurs="0" maxOccurs="unbounded" />
   <xs:element ref="cond" minOccurs="1" />
  </xs:sequence>
 </xs:complexType> <xs:complexType name="cond">
  <xs:sequence>
   <xs:element name="field" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
     <xs:complexContent>
      <xs:extension base="field">
       <xs:attribute name="operator" type="xs:string" use="required" />
      </xs:extension>
     </xs:complexContent>
    </xs:complexType>  
   </xs:element>
  </xs:sequence>
 </xs:complexType> <xs:complexType name="order">
  <xs:sequence>
   <xs:element ref="field" minOccurs="0" maxOccurs="unbounded" />
   <xs:element ref="table" minOccurs="0" maxOccurs="unbounded" />
  </xs:sequence>
  <xs:attribute name="type" type="xs:string" />
 </xs:complexType> <xs:complexType name="group">
  <xs:sequence>
   <xs:element ref="field" minOccurs="0" maxOccurs="unbounded" />
   <xs:element ref="table" minOccurs="0" maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:element name="set"     type="set" />
 <xs:element name="query"    type="query" />
 <xs:element name="table"   type="table" />
 <xs:element name="field"    type="field" />
 <xs:element name="join"    type="join" />
 <xs:element name="cond"    type="cond" />
 <xs:element name="order"    type="order" />
 <xs:element name="group"    type="group" />
 
</xs:schema>Robert de Wilde wilde825 <at> planet.nl
Kumar Velineni, Integra | 1 Apr 2008 17:08

Compare Heirarchy of 2 XML Files

Dear Friend,

 

            I am having two XML files. I would like to compare the hierarchy of elements & its attributes and throws the difference in a error file. I don’t want to compare the content. Heirarchy of elements in both the XML files should match.

 

Here is an example:

 

File 1:

<?xml version=”1.0”?>

<html>

<body>

<fm>

<p>This is a simple Para</p>

<list>

<li>This is a simple Para</li>

</list>

</fm>

</body>

</html>

 

File 2:

<?xml version=”1.0”?>

<html>

<body>

<fm lang=”es”>

<p>This is a <strong>simple</strong> Para</p>

<p>This is a simple Para</p>

</fm>

</body>

</html>

 

Difference between the 2 files are:

  1. Strong tag with <p>

  2. <list> has been coded as <p>

  3. lang attribute added in <fm>

 

 

Regards,

Kumar V.

James Fuller | 1 Apr 2008 18:18
Picon
Gravatar

Re: Compare Heirarchy of 2 XML Files

some

On Tue, Apr 1, 2008 at 5:08 PM, Kumar Velineni, Integra
<kumar.velineni <at> integra-india.com> wrote:
>
>
>
>
> Dear Friend,
>
>
>
>             I am having two XML files. I would like to compare the hierarchy
> of elements & its attributes and throws the difference in a error file. I
> don't want to compare the content. Heirarchy of elements in both the XML
> files should match.
>
>
>
> Here is an example:
>
>
>
> File 1:
>
> <?xml version="1.0"?>
>
> <html>
>
> <body>
>
> <fm>
>
> <p>This is a simple Para</p>
>
> <list>
>
> <li>This is a simple Para</li>
>
> </list>
>
> </fm>
>
> </body>
>
> </html>
>
>
>
> File 2:
>
> <?xml version="1.0"?>
>
> <html>
>
> <body>
>
> <fm lang="es">
>
> <p>This is a <strong>simple</strong> Para</p>
>
> <p>This is a simple Para</p>
>
> </fm>
>
> </body>
>
> </html>
>
>
>
> Difference between the 2 files are:
>
> Strong tag with <p>
> <list> has been coded as <p>
> lang attribute added in <fm>
>

you could probably start with the various XML diff tools

http://www.google.com/search?q=xml%20diff

before 'rolling your own' ... but if u must roll your own try following this

http://en.wikipedia.org/wiki/Levenshtein_distance

hth, Jim Fuller

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Ken North | 2 Apr 2008 09:26
Picon
Favicon

Tim Berners-Lee and distinguished faculty to present at LinkedData Planet (June 17-18, New York City)

The concept of linked data is gaining mindshare with developers, users and the
more than 200 software companies developing semantic tools. A community
including architects, developers and web builders is advancing the evolution of
the World Wide Web from linked documents to a web of linked data. We believe
LinkedData Planet is a conference that will be of great interest to that
community of architects, developers, venture capitalists and technical managers.

Sir Tim Berners-Lee, Director of the W3C, will deliver a keynote and a
distinguished faculty will deliver a content-rich technical program at in New
York City (June 17-18). Besides the keynote, there will be a Linked Data
Workshop and a Power Panel. Registration is open at:
http://www.linkeddataplanet.com

KEYNOTES
- "Web of Data" by Sir Tim Berners-Lee (Director, World Wide Web Consortium)
- "Creating, Deploying, and Exploiting Linked Data"  by Kingsley Idehen
(President and CEO, OpenLink Software Inc.)
- "The Semantic Web as a Blue Ocean Opportunity"  by Ian Davis (Chief Technology
Officer and Director, Talis Group)
- "Scalable Semantics User's Guide" by Atanas Kiryakov, Head, OntoText Lab
(Sirma Group)

JUNE 17 SESSIONS

"How to efficiently publish and locate linked data: Semantic Web Sitemaps and
Sindice API"
Dr. Giovanni Tummarello (Research Scientist, DERI Galway)

"Starting with SPARQL: making RDF shine "
Dr. Andy Seaborne (Research Scientist, Hewlett-Packard Research Laboratories)

"Best Practice in Semantic Systems Development "
Dr. Rachel Yager (Director, Machintas, Inc.)

"Linked Data: The Real Web 2.0"
Uche Ogbuji (Partner, Zepheira)

"Building a Practical Semantic Framework: The role of taxonomies and controlled
vocabularies in data integration"
Seth Earley  (Founder, Earley & Associates)

"Linked Data Workshop"
Moderator: Bob DuCharme , Solutions Architect and Author / Conference Chair,
Innodata Isogen
Instructors: Dr. Melliyal Annamalai (Principal Product Manager, Oracle), Michael
Bergman (CEO, Zitgist LLC), Uche Ogbuji (Partner, Zepheira), Nikita Ogievetsky
(Vice President, Morgan Stanley), Walter Perry (Managing Director, Fiduciary
Automation), Dr. Andy Seaborne (Research Scientist, Hewlett-Packard Research
Laboratories)

"TripBlox : Shared Travel Information, Microformats, Ideas and Intent"
Taylor Cowan (Emerging Solutions Principal, Sabre Holdings), Jay Fichialos
(Director of Ideation and Experience, Travel Studios)

"The Fellowship of the Web: The Two Towers"
Dr. James A. Hendler (Tetherless World Senior Constellation Professor,
Rensselaer Polytechnic Institute)

"Enabling Semantic Applications Through Calais"
Barak Pridor (CEO, Reuters ClearForest )

JUNE 18 SESSIONS

"DITA, Semantics, Content Management, Dynamic Documents and Linked Data - A
Marriage Made in Heaven?"
Jeffrey Deskins (Principal Consultant, JustSystems), Amber Swope (Principal
Consultant, JustSystems)

"From DBpedia to OntoWiki - Emergent Data and Semantics from Social
Collaboration"
Dr. Sören Auer (Researcher and Author, University of Pennsylvania)

"Using Machine Learning to Discover and Understand Structured and Unstructured
Data "
Dr. William Cohen (Associate Research Professor, Carnegie Mellon University
Machine Learning Department)

"Integrating Relational Data Into the Semantic Web"
Dr. Ashok Malhotra (Standards Architect, Oracle), Jim Melton (Standards Maven,
Oracle)

"Improved Services Through Behavior and Activity Recognition"
Dr. Jans Aasman (CEO, Franz Inc.)

"Applying Semantic Web Technologies to Enterprise Solutions"
Dean Allemang (Chief Scientist, TopQuadrant Inc.), Irene Polikoff (Executive
Partner, TopQuadrant Inc.)

"Leveraging Semantic Technology for Infrastructure Mediation"
Geoff Brown (CEO, m2mi Corporation)

"How to Publish Linked Data on the Web"
Tom Heath (Researcher, Talis Information Ltd)

"The Social Internet, Promise or Plague in Education?"
Rebecca Dias (VP of Software Development, SynapticMash)

"Semantic Technology in the Real World: Challenges and Opportunities"
Moderator: Ken North, President, Ken North Computing LLC
Panel members: Geoff Brown (CEO, m2mi Corporation), Kingsley Idehen (CEO,
OpenLink Software Inc.), Eghosa Omoigui (Director,  Intel Capital),  Robert
Shimp (Vice President, Oracle ), Alex Spinelli (CTO, Reuters News)

LinkedData Planet

When:   June 17-18, 2008
Where:  Roosevelt Hotel
             45th and Madison Avenue
             New York City

======== Ken North ===========
www.KNComputing.com

www.WebServicesSummit.com
www.SQLSummit.com
www.GridSummit.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 2 Apr 2008 11:25
Favicon
Gravatar

RE: Does a XSD schema define the minimum or maximum structure of an XML doc?

> Assume I have an XML doc and the referring XSD schema.
> 
> Can I add now additional elements and additional attributes 
> (for existing
> elements) in the XML doc without getting the XML doc invalid?
> 

Only if the schema allows it, by means of wildcards: xs:any and
xs:anyAttribute. It's up to the schema designer whether to permit such
extensions or not.

Michael Kay
http://www.saxonica.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Gerald Bauer | 3 Apr 2008 08:13
Picon

What's the Open Web? Why does the Open Web Matter? Essay Contest - Win Three Open Web Vancouver 2008 Tickets

Hello,

  On April 14+15 the Open Web Vancouver 2008 (www.openwebvancouver.ca)
conference will showcase open web technologies, communities and
culture, and evangelize the Open Web to developers, designers,
organizers and the community at large.

  What's the Open Web? Good question. Tell us "What's the Open Web and
Why It Matters" and win a free two-day Open Web Vancouver 2008
conference pass.

  How the essay contest works: Write a posting answering the two questions:

    * What's the Open Web?
    * Why does the Open Web matter? Why is the Open Web important?

   That's it. Publish your posting on your site, blog or elsewhere and
than tell us about it to get short-listed for the free two-day Open
Web Vancouver 2008 conferece pass. More contest details  <at> 
http://vanajax.wordpress.com/2008/04/02/openwebcontest

   Not interested in Open Web? As an alternative tell us "What's Web
3.0 / Microformats / the Semantic Web / the Giant Global Graph and why
it all matters".

   Cheers.

PS: For a sample read Brad Neuberg's (Google Gears Team) posting  <at> 
http://codinginparadise.org/weblog/2008/04/whats-open-web-and-why-is-it-important.html
 or follow the Open Web 2008 conference Twitter for the latest updates
 <at>  http://twitter.com/openweb2008

--

-- 
Gerald Bauer - Internet Professional - http://geraldbauer.wordpress.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Ben Stover | 3 Apr 2008 08:32
Picon
Favicon

RE: Does a XSD schema define the minimum or maximum structure of an XML doc?

That would mean:

If the XSD schema designer does NOT insert xs:any or xs:anyAttribute
tags then (=default) additional 

attributes are NOT allowed
elements are NOT allowed

when the XML should be valid?

Is this your statement?

Ben

On Wed, 2 Apr 2008 17:25:24 +0800, Michael Kay wrote:

>> Assume I have an XML doc and the referring XSD schema.
>> 
>> Can I add now additional elements and additional attributes 
>> (for existing
>> elements) in the XML doc without getting the XML doc invalid?
>> 

>Only if the schema allows it, by means of wildcards: xs:any and
>xs:anyAttribute. It's up to the schema designer whether to permit such
>extensions or not.

>Michael Kay
>http://www.saxonica.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Philip Fearon | 3 Apr 2008 10:16

Data Dictionary for XML Schema?

Is there a standards compliant way of 'wrapping' a W3C XML Schema with
a Data Dictionary type view (perhaps using XSLT or XQuery) so that it
can be queried using simpler XPath expressions?

I ask, because back in the days when I did relational database work,
you could find all you needed to know about the Schema using standard
SQL queries against the the Data Dictionary which represented a
virtual view of the Schema as a series of view tables. It seems that
there should be an equivalent for the XML Schema.

Yes, you can probably get everything you need from the collection of
raw XSD files that make up an XML Schema, but this would require
significant knowledge of the W3C Schema structure and some fairly
complex XPath.

Would it be useful if there were a number of standard 'view tables'
(or node trees)  on XML Schemas that could be queried (more reliably
and with simpler XPath) instead of the raw XML itself?

Thanks

Phil Fearon
http://www.sketchpath.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

Michael Kay | 3 Apr 2008 11:28
Favicon
Gravatar

RE: Data Dictionary for XML Schema?

> Is there a standards compliant way of 'wrapping' a W3C XML 
> Schema with a Data Dictionary type view (perhaps using XSLT 
> or XQuery) so that it can be queried using simpler XPath expressions?

There's no standard way. Saxon has a mechanism to export a schema (that is,
a compiled set of schema components) as an XML representation which very
closely resembles the schema component model. This is much easier to query
than the raw XML schema documents. But it's not a standard.

Michael Kay
http://www.saxonica.com/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe <at> lists.xml.org
subscribe: xml-dev-subscribe <at> lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


Gmane