home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September / Chip_2004-09_cd1.bin / zkuste / system / download / secanal / MBSASetup-en.msi / Data.Cab / cmdErrors.xsl < prev    next >
Extensible Markup Language  |  2004-01-16  |  738b  |  24 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.         
  4. <xsl:variable name="CR" select="'
  5. '"/>
  6. <xsl:variable name="SP" select="' '"/>
  7. <xsl:template match="/">
  8.     <xsl:for-each select="Errors">
  9.         <xsl:apply-templates/>
  10.     </xsl:for-each>
  11. </xsl:template>
  12.     
  13. <xsl:template match="Error">
  14.      <xsl:choose>
  15.         <xsl:when test="@Machine"><xsl:value-of select="@Domain"/>\<xsl:value-of select="@Machine"/><xsl:value-of select="$SP"/></xsl:when>
  16.      </xsl:choose>
  17.      <xsl:choose>
  18.      <xsl:when test="@IP">(<xsl:value-of select="@IP"/>)<xsl:value-of select="$SP"/></xsl:when>
  19.      </xsl:choose>    
  20.      <xsl:value-of select="."/>
  21.      <xsl:value-of select="$CR"/>
  22. </xsl:template>
  23.     
  24. </xsl:stylesheet>