Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Problem with xml:variable in xsl:for-each [Thread Next] Re: Problem with xml:variable in xsl:for-eachTo: NULL Date: 7/6/2005 8:23:00 AM Hi,
Tempore 10:17:05, die Wednesday 06 July 2005 AD, hinc in foro {comp.text.xml} scripsit Konkee <lukasz.konkolNO_SPAM____@s...>:
> I tried to do something like this:
>
> <xsl:for-each select="TextBox">
>
> <xsl:if test="@dataSource='formUlicaOR'">
>
> <xsl:variable name="formNazwaOR" select="@text"/>
>
> </xsl:if>
>
> </xsl:for-each>
make the 'xsl:variable' element wrap the 'xsl:for-each':
<xsl:variable name="formNazwaOR">
<xsl:for-each select="TextBox">
<xsl:if test="@dataSource='formUlicaOR'">
<xsl:value-of select="@text"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
but I don't really get why the following code won't work:
<xsl:variable name="formNazwaOR" select="TextBox[@dataSource='formUlicaOR']"/>
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Spread the wiki (http://www.wikipedia.org)
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
