Subject: Re: [xsl] every tenth row change bgcolor From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 09 Jun 2003 12:37:55 -0400 |
Sorry to be picky, but here you mention 'pushing' nodes to a template using <xsl:apply-templates select="foo"/>, I've always regarded that as pulling... is that right? I've always thought the only way you can use 'push' is through a basic <xsl:apply-templates/> where the next node to process is decided by document order, with any select statement (apply-templates or for-each) pulling nodes through (e.g. the nodes to process are decided by the stylesheet).
I may be missing one of the fundamentals here :)
Having ushered for one of Ken's talks where he talks about push vs. pull (Hi Ken! <g>), I think the best way to break it down is push = apply-templates, while pull = value-of. The key being the ORDER of elements in push being decided by the order in the source document, while the order of elements in the pull method being decided by the stylesheet. You're "pulling in" the value, as opposed to letting the XSLT processor "push" the value to you in the order it finds it. The match attribute is just a filter.
Cheers, Wendell
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] every tenth row change bg, Larry Garfield | Thread | Re: [xsl] every tenth row change bg, Larry Garfield |
RE: [xsl] read/write in the same xm, Lars Huttar | Date | [xsl] Decent and reasonably priced , Kaine Varley |
Month |