[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: not matching empty text nodes.

Subject: Re: not matching empty text nodes.
From: Terence <tk.lists@xxxxxxxxxxx>
Date: Tue, 11 Feb 2003 09:17:15 +1100
xsl empty text node
This message is late because it bounced due to me not using the right from address...

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


That is the behaviour I was looking for, however I see your point.


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>


[TK]



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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.