[Home] [By Thread] [By Date] [Recent Entries]
Hello,
you can use a recursive template, an extension function tokenize (has MSXML such a function?) or the FXSL of Dimitre. The recursive template: <xsl:template match="valueList">
<xsl:call-template name="tokenize">
<xsl:with-param name="string" select="."/>
<xsl:with-param name="delimiter" select=" "/>
</xsl:call-template>
</xsl:template><xsl:template name="tokenize"> <xsl:param name="string"/> <xsl:param name="delimiter"/> <xsl:choose> <xsl:when test="contains($string, $delimiter)"> <option> <xsl:value-of select="substring-before($string, $delimiter)"/> </option> <xsl:call-template name="tokenize"> <xsl:with-param name="string" select="substring-after($string, $delimiter)"/> <xsl:with-param name="delimiter" select=" "/> </xsl:call-template> </xsl:when> <xsl:otherwise> <option> <xsl:value-of select="$string"/> </option> </xsl:otherwise> </xsl:choose> </xsl:template> Regards, Joerg Rajput, Ashish S schrieb: I'm a newbie to XSL, so kindly excuse my lack of experience. I'm using the MSXML4 parser. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



