[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Website text-only questions/problems (encoding, index reference)
On Sun, Sep 28, 2003 at 03:01:51PM +0200, Marc Baaden wrote: > > Hi, > > I have recently started to use website, and am very happy with it. > There are some minor issues for me, trying to create a tabular and > text-only version in one go: > > > 1) How to modify encoding on text-only version ? > > When I generate a textonly version of my website (the tabular one is > fine) via > > SGML_CATALOG_FILES=/etc/sgml/catalog xsltproc --catalogs --nonet \ > --maxdepth 999 --stringparam output-root . mywebsite.xsl autolayout.xml > > I get > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > > at the top of each generated html file. How can I change the UTF-8 encoding > to ISO-8859-1 ? (I have tried modifying mywebsite.xsl, but with no success) > I have tried the following (in vain) > > <xsl:output method="xml" encoding="ISO-8859-1" indent="no"/> > <xsl:output method="text" encoding="ISO-8859-1" indent="no"/> > <xsl:output method="html" encoding="ISO-8859-1" indent="no"/> > > <xsl:param name="encoding" select="'ISO-8859-1'"/> Can you list more details of what is in mywebsite.xsl? The website stylesheets all use xsl:output method="html", so you should not be getting a <?xml version="1.0"?> declaration at all in your HTML files. Are you importing the XHTML stylesheets? > 2) Alternative link toggle between tabular/text-only > > Another thing is that I have added a link from the tabular to the text-only > version via > > <tocentry id="togglemode" href="txtindex.html"> > <title>(text only)</title> > </tocentry> > > That works fine in the sense tabular->text-only. But I'd like to get the > inverse link to tabular on the text-only version. How could one achieve > this ? Eg a "conditional" version of the above that changes to > > <tocentry id="togglemode" href="index.html"> > <title>(tabular)</title> > </tocentry> Unfortunately, tocentry does not have conditional attributes. Your customizations could respond to the id="togglemode" directly. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]