Subject: Re: [xsl] runaway template application From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 10 Feb 2003 18:17:36 -0500 |
As it happens, when I have
<xsl:template match="context[position() mod 3 = 1]" mode="group"> <td> <xsl:apply-templates select="." mode="leaf"/> <xsl:apply-templates select="following-sibling::node()[1]" mode="leaf"/> <xsl:apply-templates select="following-sibling::node()[2]" mode="leaf"/> </td> </xsl:template> ...
However, when I use
<xsl:template match="context[position() mod 3 = 1]" mode="group"> <td> <xsl:apply-templates select="." mode="leaf"/> <xsl:apply-templates select="following-sibling::context[1]" mode="leaf"/> <xsl:apply-templates select="following-sibling::context[2]" mode="leaf"/> </td> </xsl:template>
As suggested by Jeni, I get what I want.
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] runaway template applicat, Terence | Thread | RE: [xsl] runaway template applicat, Michael Kay |
Re: [xsl] runaway template applicat, Terence | Date | RE: RE: [xsl] How to implement an a, Wendell Piez |
Month |