2008/7/15 Mathieu Malaterre <[EMAIL PROTECTED]>:
> Hello there,
>
> A while back, I was asking how to convert to docbook using
> openoffice, and I was guided (thanks to Dave Pawson) to a solution.
> Today I realized that a slightly different one was applied to OO:
>
> http://lxr.go-oo.org/source/framework/filter/source/docbook/sofftodocbookheadings.xsl
>
> <xsl:template match="text:tab-stop">
> <xsl:call-template name="write-breakable-whitespace">
> <xsl:with-param name="whitespaces" select="8"/>
> </xsl:call-template>
> </xsl:template>
>
> why are tabs replaced with 8 spaces instead of a tab character ?
Especially when this goes against the (weakly defined) spec?
1.6 White-Space Processing and EOL Handling
In conformance with the W3C XML specification [XML1.0], optional
white-space characters that are contained in elements that have
element content (in other words that must contain elements only but
not text) are ignored. This applies to the following white-space and
end-of-line (EOL) [UNICODE] characters:
* HORIZONTAL TABULATION (0x0009)
* LINE FEED (0x000A)
* CARRIAGE RETURN (0x000D)
* SPACE (0x0020)
For any other element, white-spaces are preserved by default. Unless
otherwise stated, there is no special processing for any of the four
white-space characters. For some elements, different white-space
processing may take place, for example the paragraph element.
Sloppy, but "white-spaces are preserved by default." seems clear to me.
tabs should remain tabs when within CDATA.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]