Hi,
I' m trying to parse and build instances from oai:dc namespaces (schema
attached),
with scomp -out -dl metadata.jar  oai_dc.xsd
but when i save a new instance it output in a  strange manner,  am i
doing something wrong?

xml out:
<?xml version="1.0" encoding="UTF-8"?>
<oai:dc xmlns:oai="http://www.openarchives.org/OAI/2.0/oai_dc/";>
    <ns:contributor
xmlns:ns="http://purl.org/dc/elements/1.1/";>contrib</ns:contributor>
    <ns:identifier
xmlns:ns="http://purl.org/dc/elements/1.1/";>id</ns:identifier>
    <ns:coverage
xmlns:ns="http://purl.org/dc/elements/1.1/";>cover</ns:coverage>
    <ns:language
xmlns:ns="http://purl.org/dc/elements/1.1/";>lang</ns:language>
</oai:dc>

i would expect:

<?xml version="1.0" encoding="UTF-8"?>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/";
    xmlns:dc="http://purl.org/dc/elements/1.1/";>
  <dc:contributor>contrib</dc:title>
  <dc:title xml:lang="fr">title</dc:title>
    .....
</oai_dc:dc>

does anybody have any suggestion how to arrive here?

thanks in advance

bye
<schema targetNamespace="http://www.openarchives.org/OAI/2.0/oai_dc/"; 
        xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"; 
        xmlns:dc="http://purl.org/dc/elements/1.1/"; 
        xmlns="http://www.w3.org/2001/XMLSchema"; 
        elementFormDefault="qualified" attributeFormDefault="unqualified">
        
<annotation>
  <documentation> 
      XML Schema 2002-03-18 by Pete Johnston.
      Adjusted for usage in the OAI-PMH.
      Schema imports the Dublin Core elements from the DCMI schema for 
unqualified Dublin Core.
      2002-12-19 updated to use simpledc20021212.xsd (instead of 
simpledc20020312.xsd)
  </documentation>
</annotation>

<import namespace="http://purl.org/dc/elements/1.1/";
          
schemaLocation="http://dublincore.org/schemas/xmls/simpledc20021212.xsd"/>
        
<element name="dc" type="oai_dc:oai_dcType"/>
<complexType name="oai_dcType">
  <choice minOccurs="0" maxOccurs="unbounded">
    <element ref="dc:title"/> <!--P -->
    <element ref="dc:creator"/> <!-- author per questo P-->
    <element ref="dc:subject"/> <!-- categories X-->
    <element ref="dc:description"/> <!-- P -->
    <element ref="dc:publisher"/> <!-- P -->
    <element ref="dc:contributor"/> <!-- responsabile di aggiungere contributi 
(kd manager?) PM-->
    <element ref="dc:date"/> <!-- P -->
    <element ref="dc:type"/> <!-- P -->
    <element ref="dc:format"/> <!-- P -->
    <element ref="dc:identifier"/> <!-- Url P-->
    <element ref="dc:source"/> <!-- il path del sorgente per quel modulo vari-->
    <element ref="dc:language"/> <!-- G -->
    <element ref="dc:relation"/> <!-- topics X -->
    <element ref="dc:coverage"/> <!-- kd X-->
    <element ref="dc:rights"/> <!-- PM -->
  </choice>
</complexType>

</schema>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to