Test and fail for badly invalid unit elements when joining
authorBob Rosenberg <bob.rosenberg@nokia.com>
Mon, 20 Sep 2010 10:55:43 +0100
changeset 658 cab9da9b71bb
parent 657 5720fe8b820c
child 659 7afa5fba0903
Test and fail for badly invalid unit elements when joining
metatools/sysdeftools/joinsysdef.pl
--- 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')
 		{