|
Subject: Re: [xsl] Turning off 'well-formedness' From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 09 Jan 2002 18:25:59 -0500 |
<xsl:template match="Record">
<xsl:if test="(count(preceding-sibling::Record) mod 3) = 1">
<!-- works on first, fourth, seventh Records, etc. -->
<td>
<xsl:apply-templates/>
<br/>
<xsl:for-each select="following-sibling::Record(position() < 3)">
<!-- picks up the next two Records -->
<xsl:apply-templates/>
<br/>
</xsl:for-each>
</td>
</xsl:if>
</xsl:template>Cheers, Wendell
Folks,
I am trying to create the following marked-up tags using MSXML3 on an IE5.x browser:
<td> data1 <br /> data2 <br /> data3 <br /> </td> <td> data4 <br /> data5 <br /> data6 <br /> </td> ---------------------------------------------------------- my source file looks like:
<Data> <Record>data</Record> <Record>data</Record> <Record>data</Record> <Record>data</Record> <Record>data</Record> <Record>data</Record> </Data> ----------------------------------------------------------
====================================================================== 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] Turning off 'well-formedn, Michael Kay | Thread | [no subject], Smita Chaugule |
| RE: Regular expression functions (W, Steven Noels | Date | [xsl] since I promised not to cross, David Carlisle |
| Month |