xsl-list
[Top] [All Lists]

Re: text() word lists

2004-02-06 10:14:51

--- Dimitre Novatchev <dnovatchev(_at_)yahoo(_dot_)com> wrote:

Using FXSL and Saxon 7 (This was intended to be essentially an XSLT 1.0
solution, until I realized that there cannot be references to variables
in
xsl:key -- I need to change this a little bit to work in XSLT 1.0)

Yes, the only change needed is to change the xsl:key definition to:

   <xsl:key name="kWordByVal" match="word" 
   use="translate(., 
                  'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 
                  'abcdefghijklmnopqrstuvwxyz'
                 )"/> 


So, this is an XSLT 1.0 solution -- 50 lines of code.


Enjoy,

Dimitre Novatchev
FXSL developer,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>