[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [cmis] Namespace proposal and complex properties with lists
Florent Guillaume wrote: > On 20 Apr 2009, at 23:18, Julian Reschke wrote: >> Hm, >> this puts property structure into the identifier. Is this really a >> good idea? >> As CMIS doesn't have residual properties, would that mean that all of >> these properties would need to be defined on the document type? > > As I mentioned, this is just syntactic extension so that parsers don't > have to be rewritten *if* we later go that route, in extensions or CMIS 2. > > As I said: >> This sidesteps the problem of having these properties actually >> available in object types, so this proposal is purely syntactic and >> for future extensibility, but I think that it makes sense. Sorry, missed that. > I agree that ideally it may be better to have the (currently) fictional: > > <properties name="acme:book"> > <propertyString name="acme:title"> > <value>Brave New World II</value> > </propertyString> > <propertyList name="acme:releases"> > <properties> > <propertyDateTime name="acme:date"> > <value>2008-04-01T00:00:00.000+02:00</value> > </propertyDateTime> > <propertyString name="acme:format"> > <value>Hardcover</value> > </propertyString> > </properties> > <properties> > <propertyDateTime name="acme:date"> > <value>2009-04-15T00:00:00.000+02:00</value> > </propertyDateTime> > <propertyString name="acme:format"> > <value>Mass Market Paperback</value> > </propertyString> > </properties> > </propertyList> > </properties> How about: <properties name="acme:book"> <title>Brave New World II</title> <releases> <date>2008-04-01T00:00:00.000+02:00</date> <format>hardcover</format> </releases> <releases> <date>2009-04-15T00:00:00.000+02:00</date> <format>Mass Market Paperback</format> </releases> </properties> That would just use the CMIS XML property type. > ... BR, Julian -- <green/>bytes GmbH, Hafenweg 16, D-48155 Münster, Germany Amtsgericht Münster: HRB5782
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]