OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: XSL question

[ Lists Home | Date Index | Thread Index ]
  • From: "Laurent Bossavit" <morendil@mmania.com>
  • To: "Bruce Snyder" <bsnyder@pengroup.com>
  • 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@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

  • References:



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS