Did anyone have a problem with importing xlink.xsd?  We have tried to run a
schema (mets.xsd) which imports xlink.xsd. When we ran SourceGenerator
on mets.xsd, we got the message "Warning: Do not forget to generate source
code for the following imported schema: xlink.xsd". We then tried to run
SrouceGenerator on xlink.xsd, but no source code is generated nor are any
errors.  The mets.xsd includes the following lines:

 <xsd:element name="FLocat" minOccurs="0">
 <xsd:annotation>
  <xsd:documentation>FLocat: File Location. The FLocat element provides a
pointer to the location of a content file. It uses the XLink syntax to
provide linking information indicating the actual location of the content
file, along with a few additional attributes specifying additional linking
information. The full attribute set for the FLocat element is as follows:
1. ID (an XML ID); 2. LOCTYPE: the type of locator contained in the FLocat
element; and 3. OTHERLOCTYPE: a string to indicate an alternative LOCTYPE
if the LOCTYPE attribute itself has a value of "OTHER"; 4. xlink:href: see
XLink standard (http://www.w3.org/TR/xlink) 5. xlink:role: "" 6.
xlink:arcrole: "" 7. xlink:title: "" 8. xlink:show: "" 9. xlink:actuate: ""
NOTE: FLocat is an empty element. The location of the resource pointed to
MUST be stored in the xlink:href element.</xsd:documentation>
  </xsd:annotation>
 <xsd:complexType>
  <xsd:attribute name="ID" type="xsd:ID" use="optional" />
  <xsd:attributeGroup ref="LOCATION" />
  <xsd:attributeGroup ref="xlink:simpleLink" />
  </xsd:complexType>
  </xsd:element>


We tried to marshal an input mets.xml and then unmarshal it, the input line

<METS:FLocat LOCTYPE="URL" xlink:href
="http://depot102.rlg.org/repos002/02/0410/02DCLC0008.08/402.jpg"/>

becomes

<FLocat LOCTYPE="URL" type="simple" href
="http://depot102.rlg.org/repos002/02/0410/02DCLC0008.08/399.jpg"/>

which is incorrect.

Any suggestion and help is highly appreciated.


Mike.

 The following is the xlink.xsd:

<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.w3.org/TR/xlink"; xmlns
="http://www.w3.org/2001/XMLSchema"; xmlns:xlink
="http://www.w3.org/TR/xlink"; elementFormDefault="qualified">
  <!--  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>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to