|
Subject: Re: [xsl] not matching empty text nodes. From: Terence <tk.lists@xxxxxxxxxxx> Date: Tue, 11 Feb 2003 09:17:15 +1100 |
On Sun, 09 Feb 2003 09:38:46 +0100, "Joerg Heinicke" <joerg.heinicke@xxxxxx> said:
Maybe it already matches your needs, but I think it's better to use
xsl:template match="photo/*[normalize-space()]"
To make it more obvious to anyone else developing this template, I ended up with this.
<xsl:apply-templates select="/album/photos/photo/*[count(descendant::node())=0]" />
<xsl:template match="photo/*[normalize-space(text())!='']">
<tr valign="top">
<td class="label" align="right"><xsl:value-of select="name()"/>:</td>
<td class="{name()}"><xsl:value-of select="." /></td>
</tr>
</xsl:template>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] not matching empty text n, Joerg Heinicke | Thread | Re: [xsl] not matching empty text n, Joerg Heinicke |
| RE: [xsl] create new xml with xsl, Wendell Piez | Date | Re: [xsl] runaway template applicat, Terence |
| Month |