Re: to do list.

Steve Cheng <[email protected]> Sat, 17 Jan 2004 14:23:52 -0500
Newsgroups gmane.text.docbook.docbook2x.general
Message-ID <[email protected]>
On January 15, 2004 07:52 am, Dave Pawson wrote:
> >Besides that the solution currently is still not pure XSLT.
> >A perl filter is required afterwards to handle whitespace issues and to
> >beautify the output.
>
> <xsl:strip-space elements="*"/>

Unfortunately that is not enough:        for       example      this    text,
        or when the XML source is indented
        like this.

Even spaces _within_ other text must be collapsed:

"  Ordinarily, TeX collapses multiple whitespace characters (space, tab,
and newline) into a single space.  Info output, on the other hand,
preserves whitespace as you type it, except for changing a newline into
a space; this is why it is important to put two spaces at the end of
sentences in Texinfo documents."

Indeed you can try it yourself, makeinfo will not collapse spaces from its 
input.

> Does the perl do line breaking at 70 chars etc?
>   Is that what you mean by beautify?
> http://www.dpawson.co.uk/xsl/sect2/N7240.html#d1279e244
>   shows an xslt solution

Alright, but this isn't strictly required. makeinfo will do line-wrapping for 
us, actually.  (For Latin-based text, anyway.)

> >But a two-stage XSLT solution would work, and shouldn't be hard to
> >implement,
> >if we relax the beautifying restriction. I think I posted such a solution
> > on this list before.
> Sorry Steve, I hven't been to the archives.

I will be taking a look at docbook2X again.

> >All of them, and certain characters are not allowed in node names.
> >(Being XML people we all see this as being stupid, but there's nothing we
> >can do about it.)
>
> Which brings up xslt 2.0 again? The charmap?
> Or is it something a translate() could do?
Yes, you can use translate() for this one.

-- 
Steve Cheng 
&#x912D;&#x541B;&#x535A;



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn