[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] How to substitute a string based on number
Subject: RE: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to substitute a strin, Johannes Döbler | Thread | Re: [xsl] Case conversion in XSL?, Tony Graham |
Re: [xsl] How to substitute a strin, Johannes Döbler | Date | RE: [xsl] cdata output and differen, Robert Koberg |
Month |
Keywords