This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

lookup table



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@arizona.edu} http{guymcarthur.com}      


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]