Page 1 of 3

Unable to create property group

PostPosted:Mon Jul 05, 2010 10:51 am
by randomagenda
HI All,

I have been trying to create a property group which will allow me to select a 'document type' from drop down list I.E. Invoice, Proposal, FAQ, Quote etc

Anyway every time I try and upload the XML file I get the error message 'Missing = in namespace decl. (CustomNodes.cnd, line 1)'

What does this mean or rather what am I doing wrong? I have tried looking for a solution but can't find any information anywhere... I've tried changing the code but can't see what the problem is!

Can someone point me in the right direction please

Here is the code I'm using:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 1.0//EN"
                                 "http://www.openkm.com/dtd/property-groups-1.0.dtd">
<property-groups>
  <property-group label="Document" name="okg:document">
    <Select label="Doctype" name="okp:document.doctype" type="multiple">
	<option label="Invoice" value="okp:document.doctype.invoice"/>
	<option label="FAQ" value="okp:document.doctype.faq"/>
</select>
  </property-group>
</property-groups>
Code: Select all
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>
 
[okg:document] mixin
- okp:document.doctype (string) = '' multiple autocreated
- okp:document.doctype.invoice (string) = '' autocreated
- okp:document.doctype.faq (string) = '' autocreated

Any help would be greatly appreciated

Re: Unable to create property group

PostPosted:Mon Jul 05, 2010 5:22 pm
by blindrood
change cnd file to
Code: Select all
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>

[okg:document] mixin
- okp:document.doctype (string) = '' multiple autocreated
You should describe in cnd file only names of fields
options inside doctype are defined in xml

try to study examples provided with OpenKM 4.1

Re: Unable to create property group

PostPosted:Mon Jul 05, 2010 6:29 pm
by randomagenda
Thanks for your input, However this has made no difference to the error message... 'Missing = in namespace decl. (CustomNodes.cnd, line 1)'

My feeling is there is something referenced wrong in one of these, which is causing an error in CustomNodes.cnd file

Tried re-installing and still get the same error, anyone have any other ideas?

I can't seem to find much info about creating property groups, Can anyone point me towards some help guides other than what's in the documentation?

Re: Unable to create property group

PostPosted:Mon Jul 05, 2010 9:15 pm
by jllort
Do you have internet connection in this server ?

You can delete this two entries from .cnd you don't need ( are values )
Code: Select all
- okp:document.doctype.invoice (string) = '' autocreated
- okp:document.doctype.faq (string) = '' autocreated

Re: Unable to create property group

PostPosted:Mon Jul 05, 2010 9:53 pm
by randomagenda
Yes there is an internet connection on the server. I've removed the two un-needed lines but I still get the error.

Re: Unable to create property group

PostPosted:Tue Jul 06, 2010 8:30 am
by blindrood
try to compare with mine

Re: Unable to create property group

PostPosted:Tue Jul 06, 2010 4:41 pm
by jllort
Which OpenKM version do you have installed ?

You can resolve it url http://www.openkm.com/dtd/property-groups-1.0.dtd from the server

Re: Unable to create property group

PostPosted:Wed Jul 07, 2010 3:20 pm
by randomagenda
OK hi all,

I have setup a new virtual machine and have installed OpenKM

Using this PropertyGroup.cnd file I have tried to add the new property group into the system;
Code: Select all
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>

[okg:document] mixin

- okp:document.doctype (string) = '' multiple autocreated
Now I get this error message:
Missing '[' delimiter for beginning of node type name (CustomNodes.cnd, line 1)


What am I doing wrong, can anyone make any sense of this.... I've been trying to add a simple property group into the system for over a week now and I;m still having trouble, and have gotten no further. I am currently using version 4.1 it is installed on a Windows XP Virtual machine running on VMWare.

Blindrood - Ihave used your files and tried to add them into my system and on adding the .xml file I get the following error (Missing '[' delimiter for beginning of node type name (CustomNodes.cnd, line 1))

Re: Unable to create property group

PostPosted:Wed Jul 07, 2010 7:29 pm
by pavila
Can you attach your PropertyGroups.cnd and PropertyGroups.xml files? Also, how do you register the property groups?

Re: Unable to create property group

PostPosted:Mon Jul 12, 2010 11:52 am
by randomagenda
Hi,

I have attached the files used to add the property group into the system.

When adding property groups I am navigating to the administration section of OpenKM then going to the 'Property groups section' then under 'Register property group' I am inserting the path of the files into the 'Property Group definition path' field, starting first with the .cnd file, and then the xml file. Is this correct?
(660 Bytes) Downloaded 313 times

Re: Unable to create property group

PostPosted:Mon Jul 12, 2010 2:41 pm
by jllort
You've missed the tag </select> at ends

Re: Unable to create property group

PostPosted:Mon Jul 12, 2010 3:26 pm
by randomagenda
Hi sorry must have deleted it by mistake, this is not the problem.

I have just put the missing </select>tag in and still have the same issue... please see updated zip file below
(543 Bytes) Downloaded 349 times

Same error code:
Missing = in namespace decl. (CustomNodes.cnd, line 1)

Re: Unable to create property group

PostPosted:Fri Jul 16, 2010 1:12 pm
by randomagenda
Still having trouble inserting the property groups correctly;

Just wanted to know if there was any limitations on using windows to run the system rather than linux and are there any know issues with VMware or virtual machines?

Also are there any modifications needed to get the options tag to work for property groups?

Oh and one more, when inserting the property groups should the files be placed in a specific place?

Re: Unable to create property group

PostPosted:Fri Jul 16, 2010 3:55 pm
by jllort
Until today I can not testing. It's a stupid proble write first <select all lowercase not <Select as you've written

Seems our internal code is case sensitive in this case.

Re: Unable to create property group

PostPosted:Sat Jul 17, 2010 3:21 pm
by missg
Hi,
I have a problem to register new property group. I got this error:
The following nodetype change contains non-trivial changes.Up until now only trivial changes are supported. (see javadoc for org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff): org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff[ nodeTypeName={http://www.openkm.org/group/1.0}perijinan, mixinFlagDiff=NONE, supertypesDiff=NONE, propertyDifferences=[ org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... an.comment, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... n.language, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... escription, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... .deskripsi, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... badanusaha, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... n.nomorrak, type=TRIVIAL, operation=ADDED] ], childNodeDifferences=[ ] ]

and I attached my cnd and xml files. I am not familiar with jackrabbit, so please anybody help. Thank you.