This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Testing for an element NOT present



> I want to perform a certain translation only if <element2> is NOT a part of 
> the data. For example, I would then spit out a message saying "Element 2 
> details are currently not available".

<xsl:if test="not(element2)">
  <xsl:message>Element 2 details are currently not available</xsl:message>
</xsl:if>

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]