Multiple namespaces in mixed RDF and XML docs

> > -----Original Message-----
> > [mailto:www-rdf-interest-request@w3.org] On Behalf Of elacazed

> > Another problem is that if the exemple above is correct for 
> > an RDF parser, I
> > could not find a way to validate this with an XML schema, 
> > unless all the
> > elements are in the rdf: namespace....I'm aware that it's 
> > more an XML Schema
> > related question, but if you know a solution to "mix" 
> > namespaces like this, It
> > would be really great!

> Using <xsd:import /> it is perfectly possible to define an XML document
> that uses multiple namespaces.

Hello,

Thanks for your answer; but this does not work fine in my case (or I don't do it
well)

The file I want to validate looks like this : 
--------------------------------------------------------------------------------
------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<ste:STE
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    xmlns:ste="http://www.foo.com/ste"
    xmlns:stemeta="http://www.foo.com/stemeta" 
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xsi:schemaLocation="http://www.foo.com/ste ste.xsd"
    rdf:ID="ref96.334.130.9A">

    <rdf:RDF> 
    <rdf:Description rdf:about="http://www.foo.com/6.334.130.9A">
    <!-- doc. ID -->
    <stemeta:number>96.334.130.9A</stemeta:number>
    <stemeta:indice>OR</stemeta:indice>
    <stemeta:date>2003-06-01</stemeta:date>
    <stemeta:decPSA>9AA</stemeta:decPSA>
    <stemeta:type>CDC</stemeta:type>
    <stemeta:title>Document title<stemeta:title>
    <stemeta:reference>DocRef</stemeta:reference>
    <!-- author -->
    <stemeta:author rdf:parseType="Resource">
            <stemeta:firstName>Etienne</stemeta:firstName>
        <stemeta:name>Lacazedieu</stemeta:name>
            <stemeta:entity rdf:parseType="Resource">
                <stemeta:code>FOO/B AR</stemeta:code> 
                <stemeta:name>foobar</stemeta:name>
            </stemeta:entity>
    </stemeta:author>
    </rdf:RDF>

   <ste:DATA>
   </ste:DATA
</ste:STE>
--------------------------------------------------------------------------------
------------------
The problem seems is that we would like to have 3 schemas : 

- one to validate the first part of the file (IE, the <rdf:RDF> part) 
- another one to describe the end of the file (the <ste:DATA> part)
- and a third one which imports the first 2 schemas to validate the whole thing.

But I really don't know how to proceed : what must be the target namespaces of
my schemas? Is it the good way to write RDF data?? 

Thanks,

Etienne Lacazedieu

Received on Monday, 8 December 2003 05:10:55 UTC