cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Engelhart <mengelh...@earthtrip.com>
Subject Re: If... then
Date Fri, 08 Sep 2000 21:26:54 GMT
> Hi all!
>
> How can I see if in an XML file a tag exists or not, and do something if 
> exists, and do another thing if it doesn't?
> Thanx
>
in xsl one way is:

<xsl:choose>
	<xsl:when test="do some test here">

	</xsl:when>
	<xsl:when test="do some other test here">
	</xsl:when>
		<!--  etc, etc.-->
	<xsl:otherwise>
		<!-- the default here -->
	</xsl:otherwise>
</xsl:choose>

Mime
View raw message