Complain when a sequence name is not qualified by a schema.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Aug 2010 03:22:10 +0000 (03:22 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Aug 2010 03:22:10 +0000 (03:22 +0000)
M    Open-ILS/src/c-apps/idlval.c

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17180 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/idlval.c

index d786484..38ce79e 100644 (file)
@@ -733,13 +733,18 @@ static int val_fields_attributes( Class* class, const char* id, xmlNodePtr field
                                        xmlGetLineNo( fields ), id );
                                rc = 1;
                        }
-               } else if( !strcmp( attr_name, "sequence" ) ) {
+               } else if( !strcmp( attr_name, "sequence" )) {
                        sequence = xmlGetProp( fields, (xmlChar*) "sequence" );
                        if( '\0' == sequence[0] ) {
                                printf(
                                        "Line %ld: value of sequence attribute is an empty string for class \"%s\"\n",
                                        xmlGetLineNo( fields ), id );
                                rc = 1;
+                       } else if( !strchr( (const char*) sequence, '.' )) {
+                               printf(
+                                       "Line %ld: name of sequence for class \"%s\" is not qualified by schema\n",
+                                       xmlGetLineNo( fields ), id );
+                               rc = 1;
                        }
                } else {
                        printf( "Line %ld: Unexpected fields attribute \"%s\" in class \"%s\"\n",