Re: Re: normalize-scape.mod.xsl

James Devenish <[email protected]> Wed, 2 Jul 2003 21:10:18 +0800
Newsgroups gmane.text.docbook.db2latex.devel
Message-ID <[email protected]>
Hi Vitaly,

New ideas are welcome -- and it would be great for us to improve
language support -- but each idea needs to be assessed for its
practical value.

In message <[email protected]>
on Wed, Jul 02, 2003 at 03:03:49PM +0400, Vitaly Ostanin wrote:
> > I, too, would like to have had this. But DocBook XSL
> > stylesheets, in general, are slow enough already. The problem
> > with using a recursive template is that it can easily increase
> > processing time by a factor of five. 
> 
> You right, modified style is slow, but XSLT is not for speed.

It's not for slownees, either! :)

> > we will still use the long, monolithic "scape"
> > template but it will be generated from a mapping file (not
> > hand-coded).
> 
> I'm not sure, that is the right way.

From what I have seen, it is the most practical way so far.

> > > LaTeX doesn't support unicode characters by their numbers,
> > > so each character need to be translated into valid latex.
> > 
> > I haven't found that to be possible (but I'm not an XSLT
> > expert). 
> 
> It's easily doing with characters mapping, without any
> extensions.

I don't believe you! If you can find someone who has demonstrated that
it is practical (or can explain how it could be done)  that would help
us find a new solution for DB2LaTeX. As far as I can see, you're
suggesting that we use substring(...) to iterate over every character in
text() nodes and then do lookups in a 65000-element mapping document
(most characters will require LaTeX packages to be loaded -- so there is
always a need for a LaTeX-based solution). It simply isn't practical
(time, space, software support) to do that.




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01