Subject: Re: [xsl] Only copy nodes that have text at some point in the tree From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 28 Sep 2001 18:59:36 -0400 |
Doesn't xsl:value-of look for the first text content all the way down the whole branch? If so, you could test like this:
<xsl:variable name='is-there-any-text'> <xsl:value-of select='.'> </xsl:variable>
<xsl:if test='$is-there-any-text !=""'>....</xsl:if>
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Only copy nodes that have, Thomas B. Passin | Thread | RE: [xsl] Only copy nodes that have, Chris Bayes |
Re: [xsl] ancestor question, Wendell Piez | Date | RE: [xsl] Only copy nodes that have, Wendell Piez |
Month |