[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how check if the node exit and display content of
thanks a lot for this good help, it works! with best greating henry --- JBryant@xxxxxxxxx wrote: > If you need to something only when the Duration > element is present: > > <xsl:template match=" Group"> > <xsl:if test="Duration"> > <!-- Do something --> > </xsl:if> > </xsl:template> > > If you need to do something when the Duration > element is present and > something else when it is not: > > <xsl:template match=" Group"> > <xsl:choose> > <xsl:when test="Duration"> > <!-- Do something --> > </xsl:when> > <xsl:otherwise> > <!-- Do something else --> > </xsl:otherwise> > </xsl:choose> > </xsl:template> > > If that doesn't work, post small (but complete > enough to show the problem) > XML and XSL files, so we can see more detail. > Remember to paste the XML > and XSL into the body of your message, since the > list (thankfully) doesn't > take attachments. > > Jay Bryant > Bryant Communication Services > (presently consulting at Synergistic Solution > Technologies) > > > > > > henry human <henry_human@xxxxxxxx> > 03/17/2005 04:52 PM > Please respond to > xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > To > xsl-list@xxxxxxxxxxxxxxxxxxxxxx > cc > > Subject > how check if the node exit and display content > of it > > > > > > > > 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! > > > thanks > henry > > > > > > > > > > > ___________________________________________________________ > > Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher > kostenlos - Hier > anmelden: http://mail.yahoo.de > > ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|