[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Laurent Bossavit" <morendil@m...>
  • To: "Bruce Snyder" <bsnyder@p...>
  • Date: Wed, 21 Jun 2000 23:29:14 +0200

> I'd like to test the existance of tags in an XML doc when 
> processing it with XSLT. 

Nothing to it...

<xsl:template match="parent">
  <xsl:if test="child">
  Congratulations ! You're a parent.
  </xsl:if>
</xsl:template>

...will match when processing the following

<parent>
  <child/>
<parent>


-[Morendil]-
How come wrong numbers are never busy?


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

  • References:
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member