diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-02-17 19:03:52 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-02-17 19:03:52 +0000 |
commit | 2ab6f03279885171b24789dac59ff5ec97319819 (patch) | |
tree | df5f6244cb026ceb87a28f14082b37720d1b0caf /perl-install/share/po/help_xml2pm.pl | |
parent | 90c65f880af471323bbede9ab518f86d79687e1f (diff) | |
download | drakx-2ab6f03279885171b24789dac59ff5ec97319819.tar drakx-2ab6f03279885171b24789dac59ff5ec97319819.tar.gz drakx-2ab6f03279885171b24789dac59ff5ec97319819.tar.bz2 drakx-2ab6f03279885171b24789dac59ff5ec97319819.tar.xz drakx-2ab6f03279885171b24789dac59ff5ec97319819.zip |
use xsltproc as a filter to remove entities
Diffstat (limited to 'perl-install/share/po/help_xml2pm.pl')
-rwxr-xr-x | perl-install/share/po/help_xml2pm.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/share/po/help_xml2pm.pl b/perl-install/share/po/help_xml2pm.pl index 3a4793bff..6ab48a24a 100755 --- a/perl-install/share/po/help_xml2pm.pl +++ b/perl-install/share/po/help_xml2pm.pl @@ -10,7 +10,8 @@ my @langs = grep { /^..$/ && -e "$dir/$_/drakx-help.xml" } all($dir) or die "no my %helps = map { my $lang = $_; my $p = new XML::Parser(Style => 'Tree'); - my $tree = $p->parsefile("$dir/$lang/drakx-help.xml"); + open F, "xsltproc id.xsl $dir/$lang/drakx-help.xml|"; + my $tree = $p->parse(*F); $lang => rewrite2(rewrite1(@$tree), $lang); } @langs; |