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 | |
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')
-rwxr-xr-x | perl-install/share/po/help_xml2pm.pl | 3 | ||||
-rw-r--r-- | perl-install/share/po/id.xsl | 5 |
2 files changed, 7 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; diff --git a/perl-install/share/po/id.xsl b/perl-install/share/po/id.xsl new file mode 100644 index 000000000..4897a204f --- /dev/null +++ b/perl-install/share/po/id.xsl @@ -0,0 +1,5 @@ +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:template match="/"> + <xsl:copy-of select="."/> +</xsl:template> +</xsl:stylesheet> |