[xsl] lookup table

Subject: [xsl] lookup table
From: Guy McArthur <guym@xxxxxxxxxxxxxxx>
Date: Thu, 18 Jul 2002 11:24:43 -0700 (MST)

Can I have a static lookup table *inside* my xsl stylesheet?

Something like

<xsl:stylesheet>

 <definitions>
  <term name="GMT">Greenwich Mean Time</term>
  <term name="MST">Mountain Standard Time</term>
 </definitions>

 <xsl:template>
  <xsl:value-of select="document()//definitions[@name='GMT']"/>
 </xsl:template>

Or does that have to be in a seperate xml document?

--
Guy McArthur * email{guym@xxxxxxxxxxx} http{guymcarthur.com}      


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


Current Thread