# HG changeset patch # User Bob Rosenberg # Date 1271698580 -3600 # Node ID ba562c1e2717ed2d25849ff3c86c9cdc9ecfa2d7 # Parent 8309dda9523447fabba03885b5f51a5d2a2f8575 Using a dictionary no longer looks in meta sections. New argument -ignore-meta to ignore specific meta types. New xslt-param pkgAuxWidth to leave extra space on the right of packages. Fix for spanned layer height bug. Fix for namespace bug when joining. Support for drawing multiple sysdef fragments of the same rank. diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/core/draw-model.xsl --- a/sysmodelgen/core/draw-model.xsl Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/core/draw-model.xsl Mon Apr 19 18:36:20 2010 +0100 @@ -33,6 +33,7 @@ + @@ -334,7 +335,7 @@ - + @@ -945,12 +946,12 @@ - + - + - + diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/core/filtersysdef-module.xsl --- a/sysmodelgen/core/filtersysdef-module.xsl Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/core/filtersysdef-module.xsl Mon Apr 19 18:36:20 2010 +0100 @@ -8,7 +8,9 @@ - + + + @@ -21,7 +23,7 @@ - + @@ -65,6 +67,19 @@ ignore + + + + + ignore + + + + + ignore + diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/core/joinsysdef-module.xsl --- a/sysmodelgen/core/joinsysdef-module.xsl Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/core/joinsysdef-module.xsl Mon Apr 19 18:36:20 2010 +0100 @@ -49,7 +49,7 @@ Cannot set "", already set - + @@ -319,7 +319,6 @@ - @@ -440,7 +439,7 @@ - + @@ -451,10 +450,12 @@ + - + + diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/core/mergesysdef-module.xsl --- a/sysmodelgen/core/mergesysdef-module.xsl Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/core/mergesysdef-module.xsl Mon Apr 19 18:36:20 2010 +0100 @@ -1,14 +1,26 @@ + - http://www.symbian.org/system-definition - Syntax not supported + ERROR: Syntax not supported - - Can only merge stand-alone system models - + @@ -74,7 +86,7 @@ - "" for + Warning: need definition for namespace "" for @@ -92,7 +104,7 @@ - Cannot create namespace prefix for downstream default namespace + ERROR: Cannot create namespace prefix for downstream default namespace in @@ -116,10 +128,10 @@ - Syntax not supported + ERROR: Syntax not supported - - Can only merge stand-alone system models + + ERROR: Can only merge system models of the same rank diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/core/mergesysdef.xsl --- a/sysmodelgen/core/mergesysdef.xsl Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/core/mergesysdef.xsl Mon Apr 19 18:36:20 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 + diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/extra/makeabbrev.xsl --- a/sysmodelgen/extra/makeabbrev.xsl Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/extra/makeabbrev.xsl Mon Apr 19 18:36:20 2010 +0100 @@ -14,6 +14,8 @@ + + @@ -104,7 +106,7 @@ - + diff -r 8309dda95234 -r ba562c1e2717 sysmodelgen/src/SysModelGen.pm --- a/sysmodelgen/src/SysModelGen.pm Mon Apr 19 18:29:46 2010 +0100 +++ b/sysmodelgen/src/SysModelGen.pm Mon Apr 19 18:36:20 2010 +0100 @@ -147,7 +147,9 @@ 'iHide' => { 'type' => 'attr[=val]', 'ordered' => 1,'param' => "hide-attr=s", 'class' =>'Model Control', 'desc' => 'A mechanism of filtering which allows filtering based on component attribute values. If a value is set for that attribute, the component will not be shown on the model. Use in conjunction with -show-attr for fine contol of what is shown. "class" and "filter" attribtues are handled specially -- see the documentation for details'}, 'iIgnore' => { 'type' => 'item', 'multi' => 1, 'param' => "ignore=s", 'xpath' => '/model/ignore', - 'class' =>'Model Control', 'desc' => 'A model entity to not draw, in the form "[item-type]:[item-name]". Any number of these can be used. Defaults to "layer:Tools and Utils and SDKENG" ,"layer:MISC", "block:Techview"'}, + 'class' =>'Model Control', 'desc' => 'The ID of a model entity to not draw. Any number of these can be used'}, + 'iIgnoreMeta' => { 'type' => 'item', 'multi' => 1, 'param' => "ignore-meta=s", 'xpath' => '/model/ignore', + 'class' =>'Model Control', 'desc' => 'The "rel" meta value to ignore. Takes the form of [relvalue] or [relvalue]:[type]. Any number of these can be used'}, 'iNavCtrl' =>{'param' => "navctrl=s" , 'type'=>'boolean' , 'xpath' => '/model/layout/@navctrl', 'class' =>'Model Control', 'desc' => 'If set, a navigation control widget will appear in the upper left corner of the model. The control might not work on some SVG viewers.'}, @@ -188,7 +190,7 @@ 'iXsltParam' =>{ 'multi' => 2, 'param' => "xslt-param=s", 'class' =>'Build Control', 'desc' => 'Advanced: Parameters to feed directly to the XSLT transforms'}, 'iLegendNote' =>{ 'multi' => 1, 'param' => "note=s", 'xpath' => '/model/layout/legend/note', - 'class' => 'Labels', 'desc' => 'Free text to appear inside the legend box, on the rightmost side. If multiple ones are provided, they will appear as separate boxes from left to right. Newlines and other special characters can be entity-encoded (e.g. )'} + 'class' => 'Labels', 'desc' => 'Free text to appear inside the legend box, on the rightmost side. If multiple ones are provided, they will appear as separate boxes from left to right. Newlines and other special characters can be entity-encoded (e.g. ). When using entities in an INI file, you *must* quote the value, otherwise the # will be treated as a comment delimiter.',} ); $self->{iArgs} = \%Args; @@ -668,7 +670,7 @@ } elsif(!$cur->{'multi'}){ $info{$match}.="\t\n"; } - } elsif($param eq 'iIgnore' or $param eq 'iLinkExpr' or $param eq 'iSysDefFile') { + } elsif($param eq 'iIgnore' or $param eq 'iIgnoreMeta' or $param eq 'iLinkExpr' or $param eq 'iSysDefFile') { print XSLT "\n";