# HG changeset patch # User Bob Rosenberg # Date 1271698186 -3600 # Node ID 8309dda9523447fabba03885b5f51a5d2a2f8575 # Parent c004c9299c6f324954d64c0d83629cdb1d651f2b Fixed namespace problem when joining non-SF namespace files. Merge can now process fragement sysdefs of the same rank. diff -r c004c9299c6f -r 8309dda95234 sysdeftools/joinsysdef-module.xsl --- a/sysdeftools/joinsysdef-module.xsl Thu Apr 15 16:45:13 2010 +0100 +++ b/sysdeftools/joinsysdef-module.xsl Mon Apr 19 18:29:46 2010 +0100 @@ -385,7 +385,7 @@ - + diff -r c004c9299c6f -r 8309dda95234 sysdeftools/joinsysdef.pl --- a/sysdeftools/joinsysdef.pl Thu Apr 15 16:45:13 2010 +0100 +++ b/sysdeftools/joinsysdef.pl Mon Apr 19 18:29:46 2010 +0100 @@ -271,19 +271,15 @@ } # if we're here we can just embed the file # no processing logic is done! It's just embedded blindly - my $metadoc = $parser->parsefile ($file); - my $item =&firstElement($metadoc->getDocumentElement); + my $metadoc = $parser->parsefile ($link); + my $item = $metadoc->getDocumentElement; if(!$item) { print STDERR "Warning: Could not process metadata file: $link\n"; next; # do not alter children } $node->removeAttribute('href'); - foreach my $child (@{$item->getChildNodes}) - { - &blindCopyInto($node,$child); - next; - } + &blindCopyInto($node,$item); } if($node->getAttribute('rel') eq 'link-mapping') {# need to process this now @@ -745,4 +741,5 @@ else {die "cannot process $_";} } close CPP; + $? && die "Call to cpp produced an error"; } diff -r c004c9299c6f -r 8309dda95234 sysdeftools/mergesysdef-module.xsl --- a/sysdeftools/mergesysdef-module.xsl Thu Apr 15 16:45:13 2010 +0100 +++ b/sysdeftools/mergesysdef-module.xsl Mon Apr 19 18:29:46 2010 +0100 @@ -18,9 +18,9 @@ ERROR: Syntax not supported - + @@ -130,8 +130,8 @@ ERROR: Syntax not supported - - ERROR: Can only merge stand-alone system models + + ERROR: Can only merge system models of the same rank @@ -226,7 +226,7 @@ - + @@ -316,6 +316,43 @@ + + + + + + + + + + + + * + + + + + + + + + +<----> + + ="" + + + + rel="Generic" + type="auto" + > + + + + + @@ -325,6 +362,7 @@ + @@ -388,7 +426,10 @@ - + + + + diff -r c004c9299c6f -r 8309dda95234 sysdeftools/mergesysdef.xsl --- a/sysdeftools/mergesysdef.xsl Thu Apr 15 16:45:13 2010 +0100 +++ b/sysdeftools/mergesysdef.xsl Mon Apr 19 18:29:46 2010 +0100 @@ -22,10 +22,16 @@ - + Syntax not supported - + + Can only merge fragments of the same rank + + + Upstream @@ -36,11 +42,14 @@ - + Downstream + + Can only merge fragments of the same rank +