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: Kay Michael <Michael.Kay@icl.com>
  • To: "'Bruce Snyder'" <bsnyder@pengroup.com>, xml-dev <xml-dev@xml.org>
  • Date: Thu, 22 Jun 2000 18:59:14 +0100

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

Use <xsl:choose> for the conditional processing, and <xsl:when
test="lastname"> to test if the current node has a child element whose name
is "lastname"; or <xsl:when test="//lastname"> to test if there is a
<lastname> element anywhere in the document.

Mike Kay

***************************************************************************
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/
***************************************************************************




 

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

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