Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - for-each problem >Thread Next - Re: for-each problem Re: for-each problemTo: NULL Date: 10/1/2005 8:34:00 PM juergen wrote: > <xsl:variable name="PosNrs"> > <xsl:copy-of select="/root//posNr"/> > </xsl:variable> > > then: > > <xsl:for-each select="$PosNrs"> > ... > </xsl:for-each> > > But i get an error. why? Because the variable contains a result tree fragment as you used copy-of (<http://www.w3.org/TR/xslt#copy-of>). I think you simply want <xsl:variable name="PosNrs" select="/root//posNr" /> that way the variable contains a node set of <posNr> elements. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
