xsl-list
[Top] [All Lists]

RE: [xsl] Nicer way to change context-node than xsl:for-each ?

2009-12-04 09:51:00
Usually xsl:for-each is used to process a serie of nodes, not 
only to change the context. I know I should do an 
apply-templates and the corresponding template-match, but 
that would mean rewrite the entire xsl so I can't do it (for now).

This solution is ok, but if something like "xsl:with" or "xsl:context"
exists, I'd be glad to know.

No, xsl:for-each is the way to do it. It reads oddly, but it's hard to
justify adding an additional instruction with a different name whose
semantics would be much the same.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--