That's actually reasonable. Remember, redirect is not part of the XSLT language; it's an extension. Therefore, XSLT's rules regarding when xsl:attribute is and isn't legal don't recognize redirect as a special case. Since an extension element *MIGHT* cause output to be written to the main document, xsl:attribute is not legal after a redirection. The simplest fix is to restructure your template into two for-each loops. Output all the attributes first, then go through the same set of nodes to do the redirect:write operations. ______________________________________ Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. "The world changed profoundly and unpredictably the day Tim Berners Lee got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
