OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cmis message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (CMIS-393) ATOM.xsd has loosedefinition of entry and feed



    [ http://tools.oasis-open.org/issues/browse/CMIS-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716#action_13716 ] 

Al Brown commented on CMIS-393:
-------------------------------

We can't use sequence due to .NET creating a non-alphabetical atom entry if we want to support clients using the .NET API to POST Atom Entries to CMIS.  As such we can't enforce there must be 1 of atom:id, 1..n of atom:author, etc.

I would rather have a sample XSD that parses all forms of atom rather than one that was maybe correct (atom entries can probably be in any order) but failed to parse atom entries generated by some clients.

> ATOM.xsd has loose definition of entry and feed
> -----------------------------------------------
>
>                 Key: CMIS-393
>                 URL: http://tools.oasis-open.org/issues/browse/CMIS-393
>             Project: OASIS Content Management Interoperability Services (CMIS) TC
>          Issue Type: Bug
>          Components: Schema
>    Affects Versions: Draft 0.62
>            Reporter: David Caruana
>            Priority: Minor
>
> For example, entry type is defined as follows:
> 	<xs:complexType name="entryType">
> 		<xs:sequence>
> 			<xs:choice maxOccurs="unbounded">
> 				<xs:annotation>
> 					<xs:appinfo>
> 						<jaxb:property name="items" />
> 					</xs:appinfo>
> 				</xs:annotation>
> 				<xs:element ref="atom:author" />
> 				<xs:element ref="atom:category" />
> 				<xs:element ref="atom:content" />
> 				<xs:element ref="atom:contributor" />
> 				<xs:element ref="atom:id" />
> 				<xs:element ref="atom:link" />
> 				<xs:element ref="atom:published" />
> 				<xs:element ref="atom:rights" />
> 				<xs:element ref="atom:source" />
> 				<xs:element ref="atom:summary" />
> 				<xs:element ref="atom:title" />
> 				<xs:element ref="atom:updated" />
> 			</xs:choice>
> 			<!-- Normal ATOM extension element -->
> 			<xs:group ref="atom:extensionElement" />
> 		</xs:sequence>
> 		<xs:attributeGroup ref="atom:atomCommonAttributes" />
> 	</xs:complexType>
> This only enforces one of the atom elements within the choice. All other elements are accepted virtue of the <xs:group ref="atom:extensionElement" />.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]