[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] monotonous nbsp coding


Subject: Re: [xsl] monotonous nbsp coding
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 13 Nov 2002 18:11:34 -0500

One other thing: if you might ever have any mixed content (i.e. more elements mixed in) in table cells, you would want:

<xsl:template name="fillcell">
  <xsl:apply-templates/>
  <xsl:if test="not(string())">&#160;</xsl:if>
</xsl:template>

<xsl:template match="cell">
  <td>
    <xsl:call-template name="fillcell"/>
  </td>
</xsl:template>

Note the named template now instructs that applying of templates continue....

Cheers,
W

At 05:45 PM 11/13/2002, I wrote:
Both the earlier suggestions are good....



====================================================================== 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 ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread
Keywords
xml