[thelist] [xsl] Testing for presence of node
Howard Cheng
howcheng at ix.netcom.com
Fri Jun 21 11:49:01 CDT 2002
<xsl:if test="count(subcategory) > 0"> </xsl:if>
> > I have an XML file that contains the following structure:
> >
> > <category>
> > <subcategory>
> > <article>
> > </article>
> > </subcategory>
> > </category>
> >
> > In my XSLT stylesheet, I need to be able to test if the <category>
> > node I'm working with contains a <subcategory> node. What's the best
> > way to test for the presence of this node without actually doing
> > anything with it? I was thinking <xsl:if test="something">.
> >
> > - -joeljkp
::::::::::::::::::::::
Howard Cheng
howcheng at ix.netcom.com
AIM: bennyphoebe
ICQ: 47319315
More information about the thelist
mailing list