From 80d55131c05cfadb1c6f7d3e38482bb6234147ee Mon Sep 17 00:00:00 2001 From: hhanke Date: Sat, 13 Apr 2002 12:40:13 +0000 Subject: [PATCH] Problem with ISO-8859-2 in fsfe.xsl fixed by splitting it into two files (fsfe.xsl and fsfe.cs.xsl). Makefile now calls fsfe.cs.xsl to build Czech pages using ISO-8859-2 (Central Europe character set). svn path=/trunk/; revision=2026 --- Makefile | 4 ++-- boilerplate.cs.xhtml | 31 ++++++++++++++++++++++++ fsfe.cs.xsl | 57 ++++++++++++++++++++++++++++++++++++++++++++ fsfe.xsl | 1 - 4 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 boilerplate.cs.xhtml create mode 100644 fsfe.cs.xsl diff --git a/Makefile b/Makefile index 1db986ce82..623b512f90 100644 --- a/Makefile +++ b/Makefile @@ -136,7 +136,7 @@ $(ESPAGES): %.es.html: %.es.xhtml fsfe.xsl navigation.es.xsl %.lang $(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.es '$$path='$$path '$$langlinks='"$$langlinks" > $$base.es.html-temp && (cat $$base.es.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/por/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.es.html) ; \ rm -f $$base.es.html-temp -$(CSPAGES): %.cs.html: %.cs.xhtml fsfe.xsl navigation.cs.xsl %.lang +$(CSPAGES): %.cs.html: %.cs.xhtml fsfe.cs.xsl navigation.cs.xsl %.lang @$(ECHO) "Building $@ ..."; \ path=$< ; \ base=`expr $$path : '\(.*\).cs.xhtml'` ; \ @@ -144,7 +144,7 @@ $(CSPAGES): %.cs.html: %.cs.xhtml fsfe.xsl navigation.cs.xsl %.lang dir=`dirname $$path` ; \ root=`dirname $$path | perl -pe 'chop; s:([^/]+):..:g if($$_ ne ".")'` ;\ langlinks="`./tools/translate.sh $$base cs`" ; \ - $(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.cs '$$path='$$path '$$langlinks='"$$langlinks" > $$base.cs.html-temp && (cat $$base.cs.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/od/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.cs.html) ; \ + $(XSLTPROC) fsfe.cs.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.cs '$$path='$$path '$$langlinks='"$$langlinks" > $$base.cs.html-temp && (cat $$base.cs.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/od/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.cs.html) ; \ rm -f $$base.cs.html-temp %lang: diff --git a/boilerplate.cs.xhtml b/boilerplate.cs.xhtml new file mode 100644 index 0000000000..519a0f87cc --- /dev/null +++ b/boilerplate.cs.xhtml @@ -0,0 +1,31 @@ + + + + + FSF Europe - Šablona + + + +
+ + +

Zde text...

+ + + +
+ + Poslední aktualizace: + + $Date$ $Author$ + + + + + diff --git a/fsfe.cs.xsl b/fsfe.cs.xsl new file mode 100644 index 0000000000..880994a048 --- /dev/null +++ b/fsfe.cs.xsl @@ -0,0 +1,57 @@ + + + ]> + + + + + + http://france.fsfeurope.org + http://www.fsfeurope.org + http://www.fsf.org + http://www.gnu.org + nofile.html + nofile.html + [ English ] + + + + + + + + + + + + DO NOT MODIFY THIS DOCUMENT. IT WAS GENERATED BY XSLT PROCESSING + AND YOUR MODIFICATIONS WILL BE LOST. THE SOURCE OF THE DOCUMENT + IS IN THE .xhtml FILE USE make all TO REGENERATE + + + + + + + + + + + + + + + + + + + + + + diff --git a/fsfe.xsl b/fsfe.xsl index 162788ff85..f602cafb1d 100644 --- a/fsfe.xsl +++ b/fsfe.xsl @@ -47,7 +47,6 @@ -