Subject: RE: [xsl] how check if the node exit and display content of it From: "Aron Bock" <aronbock@xxxxxxxxxxx> Date: Fri, 18 Mar 2005 02:56:50 +0000 |
<xsl:template match="Group"> <xsl:choose> <xsl:when test="child::*"> has children </xsl:when> <xsl:otherwise> no children </xsl:otherwise> </xsl:choose> </xsl:template>
From: henry human <henry_human@xxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] how check if the node exit and display content of it Date: Thu, 17 Mar 2005 23:52:09 +0100 (CET)
i create xml files . the node "Group" could has child: <Group> <undergroups> <Duration>1:9</Duration> <description>Waiting for data</description> </undergroups> </Group> or could be without child: <Group> </Group> How could i check in my xsl file if this node has some child (f.example <Duration> or <description>) after that i will to display the Result(f.example Waiting for data) in browser i tied it with xsl:if test and xsl:variable but could'nt use it correctly!
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how check if the node exi, JBryant | Thread | Re: [xsl] how check if the node exi, henry human |
[xsl] More-than-basic maths, andrew cooke | Date | Re: [xsl] More-than-basic maths, Dimitre Novatchev |
Month |