Hi Andreas,

On Sun, 02 Oct 2011 09:29:03 +0200
Andreas Hoenen <andr...@hoenen-terstappen.de> wrote:

> Jeff Green <j...@kikisoso.org> wrote:
> 
> > EXAMPLE xsl file:
> > <?xml version='1.0'?>
> >
> > <xsl:stylesheet
> >   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> >   xmlns:fo="http://www.w3.org/1999/XSL/Format";
> >   version="1.0">
> >
> >   <xsl:output encoding="Latin1" />
> > </xsl:stylesheet>
> 
> Hi Jeff,
> 
> what are you trying to accomplish with this stylesheet?  

It needs to be able to handle characters with umlauts and carets
expressed as a character entity references correctly (which it does),
and without the encoding setting it doesn't, i.e.

<title> car&ecirc;t &ouml;laut</title>

Hence I used it. It worked beautifully until the footnote problem.

> It doesn't
> hold any payload commands that adapt dblatex's behaviour according to
> your needs, furthermore the xsl:output command reverts the one from
> /usr/share/xml/docbook/stylesheet/dblatex/xsl/docbook.xsl:
>     <xsl:output method="text" encoding="UTF-8" indent="yes"/>
> and thus results in the errors you reported.
> 
> An example for a simple, however useful user stylesheet would be:

Your stylesheet indeed works in that the characters display properly.
I'll do a thorough test of my docbook documents to make sure all is
well with the new stylesheet change. I'll assume it does and will close
shortly after.

> 
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0"> <xsl:param name="doc.collab.show">0</xsl:param>
>   <xsl:param name="latex.output.revhistory">0</xsl:param>
>   <xsl:param name="doc.toc.show">0</xsl:param>
>   <xsl:param name="doc.lot">0</xsl:param>
> </xsl:stylesheet>
> 
> This could be used for short documents in order to suppress most
> header parts.  Another example can be found in the dblatex user
> manual: file:///usr/share/doc/dblatex/html/manual/ch04s03.html
> 
> In summary two notes:
> - One only collects adaption commands in the user stylesheet,
> everything else is superfluous and possibly will interfere with the
> original stylesheets in a fatal way.  This especially goes for the
> xsl:output command, as you have demonstrated.
> - The user stylesheet is optional.
> 

Do you know offhand what aspects of the stylesheet you provided is
getting the character entity references to display correctly?

thanks much for your help,
-jeff



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to