Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Question node array dynamic ???? Question node array dynamic ????To: NULL Date: 5/14/2009 12:03:00 AM Sorry. I can little english.
here xml data
<section title="country" view="1">
<submenu title="Bangkok">
<submenu title="Manila">
<submenu title="Cebu">
</section
xsl data
<xsl:template match="/">
<xsl:apply-templates select="//section" />
</xsl:template>
<xsl:template match="section">
<xsl:variable name="viewnum" select="@view" />
<xsl:value-of select="submenu[$viewnum]/@title" />
</xsl:template>
result
Nothing.
However
submenu[1]/@title -> Bangkok
submenu[2]/@title -> Manila
submenu[3]/@title -> Cebu
but
submenu[$value]/@title -> Nothing
help me!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
