Absolutely, my custom CND file has a dozen or so definitions in it. From the snippet you posted, I'd say you just need to adjust your syntax. If I understand your file correctly, you are trying to define a custom Library node that will have one child node of type ex:config.
Try [ex:library] > nt:base + config = ex:config a m p Hope this helps! -Brian On 11/1/07, loproman <[EMAIL PROTECTED]> wrote: > > > Thanks! That fixed me up as well. I was making the assumption it would > know > the default namespaces. However, now I'm having another issue... Can you > define more than one node type, and reference it in the same file? My > simple > example is still failing (but now on the last line at config): > > <nt = 'http://www.jcp.org/jcr/nt/1.0'> > <ex = 'http://example.net/ex/0.1'> > > [ex:config]>nt:folder > > [ex:library]>nt:base > +'config' (ex:config) a m p > > > > > Brian Thompson-5 wrote: > > > > On 11/1/07, Fabián Mandelbaum <[EMAIL PROTECTED]> wrote: > >> > >> I'm trying to extend the nt:file node type to add more properties to > it, > >> and am getting similar errors. > >> > >> mynsFile.cnd has, so far: > >> > >> <myns='http://www.myns/1.0'> > >> [myns:file] > nt:file > >> > >> <snip> > >> > >> Do I have to specify the 'inlcuded' nt namespace for nt:file? Where? > >> > >> > > > > Yes; put the nt namespace declaration at the top of the file (see my > > example > > cnd file below). > > > > ========================== > > > > /* orig.namespaces */ > > <mix = 'http://www.jcp.org/jcr/mix/1.0'> > > <nt = 'http://www.jcp.org/jcr/nt/1.0'> > > > > /* My namespaces */ > > <exm = 'http://www.example.com/jcr-ns/exm'> > > > > [exm:folder] > nt:folder, mix:referenceable > > orderable > > - exm:active (boolean) = 'true' mandatory autocreated > > > > > > -- > View this message in context: > http://www.nabble.com/CND-Reader-Error-tf4729712.html#a13537710 > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > >
