|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to substitute a string based on number
> 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
|
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
|

Cart








