Re: [xslt] Tail-call optimization for call-template possible?



Nikolai Weibull schrieb am 26.07.2010 um 16:49 (+0200):

> This really needs a “real” HTML lexer. The reason I’m doing this is to
> be able to mark up the escaped HTML as non-translatable content.  It
> works perfectly, except for the fact that it depends so heavily on
> recursion.  One solution would be to use for-each on each of the
> individual characters of the string (through str:split($text, "")),
> but there’s no way to save the current state information of the lexer
> (that is, are we currently processing an element name, an attribute
> name, …).

XSLT 1.0 plus EXSLT is of limited expressiveness, which is why some
people find convenient to host it in a more powerful general-purpose
language such as Perl.

I haven't quite understood your problem, but chances are Perl allows you
to solve it much more easily than XSLT 1.0.

-- 
Michael Ludwig


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]