jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Unable to define node type without child nodes in CND
Date Fri, 10 Nov 2006 16:49:29 GMT
hi david,

On 11/10/06, David Moss <david.moss@infoflow.co.uk> wrote:
> Am I correct in thinking that it's not possible to define a node type that
> only contains properties (i.e. no child nodes) in CND?
>
> I've tried:
>
> <namespace= 'http://www.mynamespace.co.uk/namespace'>
> <nt = 'http://www.jcp.org/jcr/nt/1.0'>
> [namespace:document] > nt:file
>     - namespace:name (string) mandatory
>
> but I get an error 'Missing '[' delimiter for beginning of node type name
> ...' when the parser comes to processing the next node in my list of
> definitions.
>
> however, if I do something like:
>
> <namespace= 'http://www.mynamespace.co.uk/namespace'>
> <nt = 'http://www.jcp.org/jcr/nt/1.0'>
> [namespace:document] > nt:file
>     - namespace:name (string) mandatory
>    + namespace:arbitraryNode (namespace:arbNodeType)
>
> it works.
>
> Have I done something obviously wrong here, or is it actually not possible
> to define a node type with no child nodes?

it definitely should be possible so this might well be a bug in the cnd parser.
please create a jira issue with a small example cnd file that demonstrates
the issue.

thanks
stefan

>
> Thanks in advance
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>

Mime
View raw message