![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - build parameter as string [Thread Next] Re: build parameter as stringTo: NULL Date: 12/3/2006 3:02:00 AM Without sample input XML and output text, it is difficult to figure out what you are trying to do, but it looks like you are just trying to do this: <xsl:for-each select="/root[@Complete='true' and @Supplier=$supplier_param]/mynode"> 'mycode </xsl:for each> dan "Ghena" <lastminutesud@g...> wrote in message news:1161595565.058050.94810@i...... >I need to build a parameter depending on a xsl:param > > <xsl:param name="supplier_param" /> > > <xsl:variable name="test"> > <xsl:choose> > <xsl:when test="$supplier_param"> > Complete='true' and Supplier='<xsl:value-of select="$supplier_param" > />' > </xsl:when> > <xsl:otherwise> > Complete='true' > </xsl:otherwise> > </xsl:choose> > </xsl:variable> > > > <--then i pass the string as a parameter --> > > > <xsl:for-each select="/root[$test]/mynode"> > 'mycode > </xsl:for each> > > but the for-each filter is not applyed. > > I tryed also with: > > <xsl:for-each select="/root[string($test)]/mynode"> > 'mycode > </xsl:for each> > > with the same results. > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
