I want to seperate some information from datacapture.cfg and presentation templates with <!ENTITY ..>-Definitions in an external DTD. For a datacapture.cfg it looks like this:[html]...[/html]For datacapture.cfg it works fine. It replaces &iwperlCmd; and &branchPath; with the right values.It does not work in a presentation template. I have something like this:[html]...[/html]iwpt_compile says something like this:[html]Could not open presentation template: /Master/WORKAREA/development/Templates/StaticPage/presentation/StaticPage.tpl[/html]...
<iw_perl>my $entity_file = "/default/main/config/WORKAREA/BlaBla/config.dtd";open(IN, "<$entity_file") || die " '$entity_file' ($!)";my %ENTITIES;foreach my $e (<IN>){ next if ($e !~ /ENTITY/); chomp($e); $e =~ s/>//; # remove end of entity tag my @tmp = split(/\s*/, $e); $ENTITY{$tmp[1]} = $tmp[2];}close(IN);</iw_perl>
$ENTITIES{branchPath}
<iw_value name='ENTITIES{branchPath}'/>