metatools/sysdeftools/joinsysdef.pl
changeset 658 cab9da9b71bb
parent 657 5720fe8b820c
child 660 66ff3e731c60
--- a/metatools/sysdeftools/joinsysdef.pl	Thu Sep 16 17:45:27 2010 +0100
+++ b/metatools/sysdeftools/joinsysdef.pl	Mon Sep 20 10:55:43 2010 +0100
@@ -290,6 +290,10 @@
 				$node->setAttribute($atr,$link);
 				}
 			}
+		if(scalar @{$node->getChildNodes()} && $maxschema=~/^3\.0/)
+			{
+			die "Error: Fatal syntax error in $file. Unit elements must be empty in schema $maxschema.\n";
+			}
 		}
 	elsif($tag eq 'meta')
 		{