OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] docbook-xsl UTF-8

Hash: SHA1

You did indeed make it easy to reproduce what you're seeing...thanks for
that. If I do what you did and open index.html in a Firefox, everything
is fine. What appear as garbage characters from cat are due to cat's
limitations. Try using "cat --show-nonprinting" and the non-breaking
spaces show up as "M- ".

- From cat's man page:

       -v, --show-nonprinting
              use ^ and M- notation, except for LFD and TAB


On 06/15/2011 07:16 AM, Tony Morris wrote:
> Note also that I am not using Apache. Rather, I am translating XML to
> HTML directly using xsltproc.
> I have tried to make it as easy as possible to reproduce for others --
> do you get different results?
> On 15/06/11 21:54, David Cramer wrote:
>> Hi Tony,
>> Those are non-breaking space characters added to prevent the line from
>> breaking between the label and the number. You're probably seeing them
>> in the output due to the way you have apache configured. For details on
>> how to avoid that, see the section titled "Odd characters in HTML
>> output" in Bob's book:
>> http://www.sagehill.net/docbookxsl/SpecialChars.html
>> Btw., the strings those characters appear in come from the xslts (e.g.
>> common/en.xml in the stylesheet distribution). This system is described
>> in Bob's book at:
>> http://www.sagehill.net/docbookxsl/CustomGentext.html
>> Regards,
>> David
>> On 06/15/2011 04:06 AM, Tony Morris wrote:
>>> Hi,
>>> I am trying to convert a trivial XML file to HTML using
>>> docbook-xsl-1.76.1 but I end up with some strange characters (0x0a0a) in
>>> my resulting HTML file. I have also tried with a recent
>>> docbook-xsl-snapshot and had the same result.
>>> I have pasted my entire problem here
>>> http://pastebin.com/AFrhet0D
>>> You can see the undesirable characters in the "Part" and "Chapter" of
>>> the output. I'd appreciate any suggestions to get this working. Cheers.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]