| 
 
Subject: Re: [xsl] testing child elements for text From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx> Date: Tue, 18 Jun 2002 17:34:39 -0400  | 
I just wrote
"[CROFT, MICHAEL]
>
> What is a way to test if the parent element has any children that actually
> have data?  I will only process the parent if it has children that contain
> data.
>
<xsl:apply-templates
    select='InsClaimsAdverseClaimantContact[*]'/>
You might want to look at Michael Kay's post from a few hours ago (subject:
RE: [xsl] Best practices), too."
This is good if you are looking for child ***elements***.  If you are
looking for child ***text***, this will do it:
<xsl:apply-templates
    select='InsClaimsAdverseClaimantContact[text()]'/>
Cheers,
Tom P
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] testing child elements fo, J.Pietschmann | Thread | RE: [xsl] testing child elements fo, Michael Kay | 
| Re: [xsl] testing child elements fo, J.Pietschmann | Date | RE: [xsl] testing child elements fo, Michael Kay | 
| Month |