jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Norris <jnor...@pattern73.com>
Subject CND Definition Question:
Date Sat, 06 Feb 2010 05:20:41 GMT
What is wrong with the following CND definition?  I am trying to
enforce that a node of type Foo contains a node of type Bar.


<nt  = 'http://www.jcp.org/jcr/nt/1.0'>
<mix = 'http://www.jcp.org/jcr/mix/1.0'>
<ns = 'uri:ns/v1'>

[ns:Bar] > nt:base
  - ns:attr1 (string)
  - ns:attr2 (string)

[ns:Foo] > nt:base
  + ns:bar (ns:Bar)


When I try this, I get the following error:

org.apache.jackrabbit.commons.cnd.ParseException: Unkown property type
'ns:Bar' specified.

(on the last line of the definition).  I'm using jackrabbit 2.0.0 and
importing definitions with

Thanks for your help.

View raw message