Subject: RE: [xsl] more on Using apply-templates instead of for-each? From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 15 Apr 2003 21:03:22 +0100 |
> For-each does operate on each node in a node-set, but they are operated > on separately, as if they were single, unrelated nodes. With for-each, > for example, you can only get a position() of 1 on any one iteration, Not at all. see the example in the spec that uses position() in a for-each to not put a comma after the last item in a list. for-each is just the same as an apply-templates that uses a private mode and a single template that matches all nodes. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] more on Using apply-templ, Passin, Tom | Thread | Re: [xsl] more on Using apply-templ, Wendell Piez |
RE: [xsl] template match for subele, Wendell Piez | Date | Re: [xsl] more on Using apply-templ, Wendell Piez |
Month |