xsl-list
[Top] [All Lists]

Re: monotonous nbsp coding

2002-11-13 16:11:34
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(_at_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>