[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Something similar to managing behavior with a var
Luke,
The easiest way to fix this, if it's possible, is to construct your condition such that it occurs in the 'select' expression that chooses the nodes to process, rather than selecting a larger set and then using an explicit conditional to filter them. That is, instead of: <xsl:for-each select="$nodes"> <xsl:if test="$condition"> ... </xsl:if> ... </xsl:for-each> do <xsl:for-each select="$nodes[$condition]"> ... </xsl:for-each> Then your code relying on position() will work again. Note, this isn't always possible -- your problem may require heavier lifting. Post again with more info (including the logic of the condition) if this doesn't work for you. Cheers, Wendell At 01:57 PM 4/5/2005, you wrote: Hello; ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|