This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: tag minimisation
- From: "Américo Albuquerque" <aalbuquerque at viseu dot ipiaget dot pt>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 11 Sep 2002 12:35:01 +0100
- Subject: RE: [xsl] tag minimisation
- Reply-to: xsl-list at lists dot mulberrytech dot com
>> <td><xsl:apply-templates select="foo"/></td>
>> <td>bar</td>
>>
>> Becomes, when <foo> is empty/not present:
>>
>> <td/>
>> <td>bar</td>
>>
>> which is then interpreted as:
>>
>> <td>
>> <td>bar</td>
>> </td>
that is not exactly true.
When <foo> is empty/not present the <td/> is the same as <td></td>,
because the next <td>|<tr>|<table> will close it. The problem is when
you have an empty table that will display as <table/> and put all
following content inside that table. The same with <div>,<span>,<P>,
etc.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list