# HG changeset patch # User Bob Rosenberg # Date 1287393832 -3600 # Node ID 7afa5fba0903df5765d73bcd7984dc49bb8e6f63 # Parent 3f65fd25dfd4fabfef228c1bc3443166aa6d6004# Parent cab9da9b71bb6ef07ee8ecf91722a9227436abfb Merge diff -r 3f65fd25dfd4 -r 7afa5fba0903 metatools/sysdeftools/joinsysdef.pl --- a/metatools/sysdeftools/joinsysdef.pl Mon Oct 18 16:16:46 2010 +0800 +++ b/metatools/sysdeftools/joinsysdef.pl Mon Oct 18 10:23:52 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') { @@ -488,7 +492,7 @@ { # translate the ID to use the root doc's namespaces my $node = shift; - foreach my $id ('id','before') + foreach my $id ('id','before','replace') { &fixID($node,$id); } diff -r 3f65fd25dfd4 -r 7afa5fba0903 metatools/sysdeftools/lib/mergesysdef-module.xsl --- a/metatools/sysdeftools/lib/mergesysdef-module.xsl Mon Oct 18 16:16:46 2010 +0800 +++ b/metatools/sysdeftools/lib/mergesysdef-module.xsl Mon Oct 18 10:23:52 2010 +0100 @@ -213,7 +213,6 @@ - @@ -273,67 +272,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + @@ -374,6 +322,22 @@ + + + + + + + + + + + + + + + + @@ -386,9 +350,9 @@ Note: "" in "" - overridden in downstream sysdef - replaced by "" in "" - + overridden in downstream sysdef + replaced by "" in "" + @@ -400,29 +364,37 @@ + + + + + + - + - + + - + - + - - - - - - - - + + + + + + + + + @@ -432,7 +404,6 @@ - diff -r 3f65fd25dfd4 -r 7afa5fba0903 metatools/sysdeftools/lib/test-model.xsl --- a/metatools/sysdeftools/lib/test-model.xsl Mon Oct 18 16:16:46 2010 +0800 +++ b/metatools/sysdeftools/lib/test-model.xsl Mon Oct 18 10:23:52 2010 +0100 @@ -20,6 +20,7 @@ + http://www.symbian.org/system-definition @@ -198,9 +199,13 @@ + + + Illegal value ="" + - Illegal value ="" + Non-standard value ="" @@ -330,6 +335,17 @@ + + + + + + + + + + + /