home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F31640_testAlltrue.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-20  |  723 b   |  25 lines

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  2.   <xsl:import href="allTrue.xsl"/>
  3.   
  4.   <xsl:output omit-xml-declaration="yes"/>
  5.  
  6.   <!-- This transformation must be applied to:
  7.         boolNodes.xml 
  8.      -->
  9.   
  10.   <xsl:template match="/">
  11.     <xsl:variable name="allTrue">
  12.         <xsl:call-template name="allTrue">
  13.           <xsl:with-param name="pList" select="/*/*"/>
  14.         </xsl:call-template>
  15.     </xsl:variable>
  16.     
  17.     <xsl:if test="not(string($allTrue))">
  18.       <xsl:text>Not </xsl:text>
  19.     </xsl:if>
  20.     <xsl:value-of select="'all nodes contents are true in:'"/>
  21.     <xsl:text> </xsl:text>
  22.     <xsl:copy-of select="/*/*"/>
  23.   </xsl:template>
  24. </xsl:stylesheet>
  25.