jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Pytelka <Petr.Pyte...@lightcomp.com>
Subject Re: CND and Default Namespace
Date Mon, 29 May 2006 06:09:42 GMT
I've had the same problem. To solve it I had to add default namespace 
declaration at the beginning of CND file.

Example:
/* orig.namespaces */
<mix = 'http://www.jcp.org/jcr/mix/1.0'>
<nt = 'http://www.jcp.org/jcr/nt/1.0'>
.... your declarations ...


Petr Pytelka

David B. Johnson wrote:
> Does the Compact Node Definition work with the default namespace?  For
> example, I can not get the following node type to work properly:
> 
>  
> 
> [eol:BodySegment] > eol:Base, mix:versionable
> 
>   orderable
> 
>   - body (string)
> 
>   - permalink (string)
> 
> - thumbnail (reference)
> 
>  
> 
> Note, properties are not fully qualified names - i.e., they are within
> the default namespace.
> 
>  
> 
> Whereas the following works fine:
> 
>  
> 
> [eol:ContentItem] > eol:base, mix:referenceable, mix:versionable
> 
>   orderable
> 
>   - eol:publishDate (date) mandatory
> 
>   - eol:expireDate (date)
> 
>   - eol:lastModified (date) mandatory
> 
>   - eol:topics (reference) multiple
> 
>     < 'eol:Topic'
> 
>   - eol:keywords (string) multiple
> 
>   - eol:relatedContent (reference) multiple
> 
>     < 'eol:ContentItem'
> 
> - eol:relatedImages (reference) multiple
> 
>  
> 
> Do I need to do something special to get the properties defined within
> the default namespace to work properly?
> 
>  
> 
> -David B. Johnson, Ph.D.
> 
> Manager of Software Engineering
> 
> E! Entertainment
> 
>  
> 
> dbjohnson@eentertainment.com
> 
>  
> 
> 

Mime
View raw message