sysmodelgen/src/SysModelGen.pm
branchHighFidelityModel
changeset 276 d9662ec4599f
parent 165 ba562c1e2717
child 432 0f44a943faf9
--- a/sysmodelgen/src/SysModelGen.pm	Tue Jun 01 16:18:31 2010 +0100
+++ b/sysmodelgen/src/SysModelGen.pm	Wed Jun 02 12:12:18 2010 +0100
@@ -717,7 +717,8 @@
 		"<template name=\"filter\">\n";
 	foreach my $ig (@{$self->{'iIgnore'}}) {
 		print XSLT "\t<ignore xmlns='' ";
-		if($ig=~/^(.*):(.*)$/) {print XSLT "type='$1' name='$2'/>\n"}
+		if($ig=~/^(layer|package|block|logicalset|logicalsubset|subblock|collection|module|component):(.*)$/) {print XSLT "type='$1' name='$2'/>\n"}
+		elsif($ig=~/:.*\//) {print XSLT "namespace='$ig'/>\n"} # assume it's a namespace if it has a colon and a slash
 		else {print XSLT "ref='$ig'/>\n"}
 	}
 	foreach my $ig (@{$self->{'iIgnoreMeta'}}) {