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
This commit is contained in:
hhanke 2002-04-13 12:40:13 +00:00
parent a6677f3c30
commit 80d55131c0
4 changed files with 90 additions and 3 deletions

View File

@ -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:

31
boilerplate.cs.xhtml Normal file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="iso-8859-2" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="cs">
<head>
<title>FSF Europe - ©ablona</title>
</head>
<body>
<div> <!-- The header will be inserted here -->
<!-- Begin page content -->
<p>Zde text...</p>
<!-- End page content -->
</div> <!-- The footer will be inserted here -->
Poslední aktualizace:
<!-- timestamp start -->
$Date$ $Author$
<!-- timestamp end -->
</body>
</html>
<!--
Local Variables: ***
mode: xml ***
End: ***
-->

57
fsfe.cs.xsl Normal file
View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">
<!ENTITY eur "&#128;">]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"
encoding="ISO-8859-2"
doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/REC-html40/loose.dtd"
indent="yes"
/>
<xsl:param name="fsffrance">http://france.fsfeurope.org</xsl:param>
<xsl:param name="fsfeurope">http://www.fsfeurope.org</xsl:param>
<xsl:param name="fsf">http://www.fsf.org</xsl:param>
<xsl:param name="gnu">http://www.gnu.org</xsl:param>
<xsl:param name="filebase">nofile.html</xsl:param>
<xsl:param name="path">nofile.html</xsl:param>
<xsl:param name="langlinks">[ English ]</xsl:param>
<xsl:template match="/">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/html/body">
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">
<xsl:comment>
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
</xsl:comment>
<xsl:apply-templates select="node()"/>
</body>
</xsl:template>
<xsl:template match="/html/head">
<head>
<link rel="stylesheet" type="text/css" href="{$fsfeurope}/blue.css" />
<xsl:apply-templates select="@*|node()"/>
</head>
</xsl:template>
<xsl:include href="navigation.cs.xsl" />
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -47,7 +47,6 @@
</xsl:template>
<xsl:include href="navigation.de.xsl" />
<xsl:include href="navigation.cs.xsl" />
<xsl:include href="navigation.en.xsl" />
<xsl:include href="navigation.fr.xsl" />
<xsl:include href="navigation.it.xsl" />