[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] lookup problem
how do you do a simple lookup? i need the following lookup function available !throughout! my XSLT: Lookup('1') -> 'one' Lookup('2') -> 'two' LOokup('3') -> 'thre' Lookup('4') -> 'four' I tried the folloowing xslt without any luck. ANy help please? <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:key name="MyKey" match="/root/a/b" use="/root/a/c"/> <xsl:template match="/"> <xsl:value-of select="key('MyKey','1')"/><br/> <xsl:value-of select="key('MyKey','2')"/><br/> <xsl:value-of select="key('MyKey','3')"/><br/> <xsl:value-of select="key('MyKey','4')"/><br/> </xsl:template> </xsl:stylesheet>
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|