The PREMIS Data Dictionary version 2 will have a lot of incompatible
changes that more dramatic schema changes will be allowed. The editorial
committee members tend to favor:
1. not using mixed content XML, as this may cause complexities in XML
processing, and
2. putting the <xs:any> in a PREMIS containter, e.g., <premis:extension>
So the schema is likely to be:
<xs:complexType>
<xs:sequence>
<premis:eventOutcomeDetail>
<premis:extension minOccurs="0">
Any thoughts on the pros and cons?
Zhiwu Xie
Ray Denenberg, Library of Congress wrote:
> In order to do this, the schema would need to add just a couple tweaks:
>
> This part:
> <xs:complexType>
> <xs:sequence>
> <xs:any namespace="##any" processContents="lax"/>
> Would need to change to:
>
> <xs:complexType mixed="true">
> <xs:sequence>
> <xs:any namespace="##any" processContents="lax" minOccurs="0"/>
>
> I.e. add mixed="true" to the first line and minOccurs="0" to the
> third. The first to allow a string rather than element, the second
> to allow you include zero subelements.
>
> --Ray
>
>
> ----- Original Message -----
> From: "Bill Walker" <[log in to unmask] <mailto:[log in to unmask]>>
> To: <[log in to unmask] <mailto:[log in to unmask]>>
> Sent: Wednesday, January 30, 2008 3:58 PM
> Subject: [PIG] PREMIS Event Problem
>
> I am having a problem with an <eventOutcomeDetail> element in a PREMIS
> event.
>
>
>
> Here is my event:
>
>
>
> <event xmlns="http://www.loc.gov/standards/premis/v1"
>
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>
> xsi:schemaLocation="http://www.loc.gov/standards/premis/v1
> http://www.loc.gov/standards/premis/v1/Event-v1-1.xsd">
>
> <eventIdentifier>
>
>
> <eventIdentifierType>local</eventIdentifierType>
>
>
> <eventIdentifierValue>test</eventIdentifierValue>
>
> </eventIdentifier>
>
> <eventType>File Conversion</eventType>
>
>
> <eventDateTime>2008-01-10T10:25:52-06:00</eventDateTime>
>
> <eventDetail>Converted 6 files from TIFF to JPEG
> Thumbnails</eventDetail>
>
> <eventOutcomeInformation>
>
> <eventOutcome>Success</eventOutcome>
>
> <eventOutcomeDetail>Well-Formed and
> valid</eventOutcomeDetail>
>
> </eventOutcomeInformation>
>
>
> <linkingAgentIdentifier>
>
>
> <linkingAgentIdentifierType>Creator</linkingAgentIdentifierType>
>
> <linkingAgentIdentifierValue>Bill
> Walker</linkingAgentIdentifierValue>
>
> </linkingAgentIdentifier>
>
> </event>
>
>
>
> An example PREMIS event from the Library of Congress has the following:
>
>
>
> <premis:event>
>
> <premis:eventIdentifier>
>
>
> <premis:eventIdentifierType>LocalRepository</premis:eventIdentifierType>
>
>
> <premis:eventIdentifierValue>e001.1</premis:eventIdentifierValue>
>
> </premis:eventIdentifier>
>
> <premis:eventType>validation</premis:eventType>
>
> <premis:eventDateTime>2006-06-06T00:00:00.001</premis:eventDateTime>
>
> <premis:eventDetail>jhove1_1e</premis:eventDetail>
>
> <premis:eventOutcomeInformation>
>
> <premis:eventOutcome>successful</premis:eventOutcome>
>
> <premis:eventOutcomeDetail>Well-formed and
> valid</premis:eventOutcomeDetail>
>
> </premis:eventOutcomeInformation>
>
> <premis:linkingAgentIdentifier>
>
>
> <premis:linkingAgentIdentifierType>AgentID</premis:linkingAgentIdentifie
> rType>
>
>
> <premis:linkingAgentIdentifierValue>na12345</premis:linkingAgentIdentifi
> erValue>
>
> </premis:linkingAgentIdentifier>
>
> <premis:linkingObjectIdentifier>
>
>
> <premis:linkingObjectIdentifierType>hdl</premis:linkingObjectIdentifierT
> ype>
>
> <premis:linkingObjectIdentifierValue>
>
> loc.music/gottlieb.09601
>
> </premis:linkingObjectIdentifierValue>
>
> </premis:linkingObjectIdentifier>
>
> </premis:event>
>
>
>
> The error I get in Oxygen is: Element 'eventOutcomeDetail' cannot have
> character [children], because the type's content type is element-only.
>
> But when I look at the Schema and see what elements are available, there
> are none.
>
>
>
> The relevant part of the schema is this (I think):
>
>
>
> <xs:element name="eventDetail" type="xs:string" minOccurs="0"/>
>
>
> <xs:element name="eventOutcomeInformation" minOccurs="0"
> maxOccurs="unbounded">
>
>
> <xs:complexType>
>
>
> <xs:sequence>
>
>
> <xs:element name="eventOutcome" type="xs:string" minOccurs="0"/>
>
>
> <xs:element name="eventOutcomeDetail" minOccurs="0">
>
>
> <xs:complexType>
>
>
> <xs:sequence>
>
>
> <xs:any namespace="##any" processContents="lax"/>
>
>
> </xs:sequence>
>
>
> </xs:complexType>
>
>
> </xs:element>
>
>
> </xs:sequence>
>
>
> </xs:complexType>
>
>
> </xs:element>
>
>
>
> What does "<xs:any namespace="##any" processContents="lax"/>" mean and
> what can I put inside this field?
>
>
>
> Thanks,
>
>
>
>
>
> =========================================
>
> Bill Walker
>
> Imaging Field Services Officer
>
> Amigos Library Services,
>
> 14400 Midway Road, Dallas, TX 75244-3509
>
> 800-843-8482 x2853
>
> 972-340-2853 (direct)
>
> 972-991-6061 (fax)
>
> www.amigos.org <http://www.amigos.org> Email: [log in to unmask]
> <mailto:[log in to unmask]>
>
> =========================================
>
>
>
|