Re: [XSLT2] OB06 xsl:analyze-string

> Fascinating idea. It would certainly be very powerful. We'll look at it;
> we might decide it's one feature too many, however.
>
>
>> Moreover, I believe this model reflects the template model of 
>> XSLT for text processing: xsl:analyze-string is a container 
>> like xsl:stylesheet, xsl:matching-substring is the 
>> counterpart for xsl:template.

Basing the model for regexp matching on that of template matching
was the basic idea of an early post of mine to this list (or rather, its
predecessor) before the drafts had any usable regexp support at all.

http://lists.w3.org/Archives/Public/xsl-editors/2002JanMar/0083.html

Actually once the current draft mechanism was introduced, although it
seemed to be simpler I could do most of my use cases just as well, 
although sometimes explictly requiring more passes, rather than try to
make the regexp matching fully generate the document tree I was after,
just use it to do a more lightweight lexical analysis to get a sequence
(or tree) of nodes, then go back and process those nodes with the full
power of xslt templates and node matching.

David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Monday, 2 February 2004 09:09:28 UTC