Subject: RE: [xsl] Nicer way to change context-node than xsl:for-each ? From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 4 Dec 2009 14:50:35 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Nicer way to change conte, G. Ken Holman | Thread | Re: [xsl] Nicer way to change conte, Mukul Gandhi |
Re: [xsl] Nicer way to change conte, G. Ken Holman | Date | Re: [xsl] counting nodes before a c, a kusa |
Month |