sysmodelgen/src/SysModelGen.pm
branchHighFidelityModel
changeset 276 d9662ec4599f
parent 165 ba562c1e2717
child 432 0f44a943faf9
equal deleted inserted replaced
265:a2b996399a2f 276:d9662ec4599f
   715 	}
   715 	}
   716 	print XSLT "</template>\n",
   716 	print XSLT "</template>\n",
   717 		"<template name=\"filter\">\n";
   717 		"<template name=\"filter\">\n";
   718 	foreach my $ig (@{$self->{'iIgnore'}}) {
   718 	foreach my $ig (@{$self->{'iIgnore'}}) {
   719 		print XSLT "\t<ignore xmlns='' ";
   719 		print XSLT "\t<ignore xmlns='' ";
   720 		if($ig=~/^(.*):(.*)$/) {print XSLT "type='$1' name='$2'/>\n"}
   720 		if($ig=~/^(layer|package|block|logicalset|logicalsubset|subblock|collection|module|component):(.*)$/) {print XSLT "type='$1' name='$2'/>\n"}
       
   721 		elsif($ig=~/:.*\//) {print XSLT "namespace='$ig'/>\n"} # assume it's a namespace if it has a colon and a slash
   721 		else {print XSLT "ref='$ig'/>\n"}
   722 		else {print XSLT "ref='$ig'/>\n"}
   722 	}
   723 	}
   723 	foreach my $ig (@{$self->{'iIgnoreMeta'}}) {
   724 	foreach my $ig (@{$self->{'iIgnoreMeta'}}) {
   724 		print XSLT "\t<ignore xmlns='' ";
   725 		print XSLT "\t<ignore xmlns='' ";
   725 		if($ig=~/^(.*):(.*)$/) {print XSLT "meta-type='$2' meta='$1'/>\n"}
   726 		if($ig=~/^(.*):(.*)$/) {print XSLT "meta-type='$2' meta='$1'/>\n"}