Subject: RE: How to substitute a string based on number
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 29 Oct 2001 13:39:13 -0000
|
> In wrox book an implementation is given but it seems
> to be MS specific. The implementation is
>
>
> <xsl:variable name="monthnames"
> select="msxml:node-set($monthnames.tf)"/>
> ....
> ...
> <xsl:value-of select="$monthnames/*[$month]/@name"/>
>
>
> In this way monthnames variable works as an array.
> Is there such kinda standard way to access the
> variable ... do not mention xslt processor specific
> stuff. Is node-set a standard function?
>
Most processors have an implementation of this: it's become a "de facto
standard extension". The (standard) alternative is to write
<xsl:value-of
select="document('')/xsl:variable[name='monthnames']/*[$month]/@name"/>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: Case conversion in XSL?, (continued)
- Thomas Holz - Mon, 29 Oct 2001 03:53:12 -0500 (EST)
- Mailer Mailer - Mon, 29 Oct 2001 07:47:20 -0500 (EST)
- Goetz Bock - Mon, 29 Oct 2001 08:04:57 -0500 (EST)
- Johannes Döbler - Mon, 29 Oct 2001 08:28:07 -0500 (EST)
- Michael Kay - Mon, 29 Oct 2001 08:42:59 -0500 (EST) <=
- Jeni Tennison - Thu, 18 Oct 2001 06:12:55 -0400 (EDT)
- Michael Kay - Thu, 18 Oct 2001 06:45:52 -0400 (EDT)
- David Carlisle - Thu, 18 Oct 2001 06:46:48 -0400 (EDT)
- cutlass - Thu, 18 Oct 2001 06:57:02 -0400 (EDT)
|
|