Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by bpa ( 13 years ago )
<?xml version="1.0" encoding="utf-8"?>

<xsl stylesheet versi
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:template match="/">
  <html>
   <body>
    <h2>FIM Pending Deletes</h2>
    <table border="1">
     <tr bgcolor="#9acd32">
      <th>ID</th>
     </tr>
     <xsl for-each select="directory-entries/delta[@operati>
      <tr>
       <td>
        <xsl:value-of select="@dn"/>
       </td>
      </tr>
     </xsl:for-each>
    </table>

    <br />

    <h2>FIM Pending Provision</h2>
    <table border="1">
     <tr bgcolor="#9acd32">
      <th>ID</th>
      <th>Object Type</th>
      <th>Action</th>
      <th>Attribute</th>
      <th>Initial Value</th>
      <th>End Value</th>
     </tr>

     <xsl for-each select="directory-entries/delta[@operati>
      <xsl:variable name="ident" select="@dn" />
      <xsl:variable name="objectType" select="primary-objectclass" />
      <xsl:for-each select="attr">
       <tr>
        <td>
         <xsl:value-of select="$ident"/>
        </td>
        <td>
         <xsl:value-of select="$objectType"/>
        </td>
        <td>
         add
        </td>
        <td>
         <xsl:value-of select="@name"/>
        </td>
        <td>
         null
        </td>
        <td>
         <xsl:for-each select="value">
          <xsl:value-of select="current()"/>
          <br />
         </xsl:for-each>
        </td>
        
       </tr>
      </xsl:for-each>

     </xsl:for-each>

    </table>
    <br />
    <h2>FIM Pending Exports</h2>
    <table border="1">
     <tr bgcolor="#9acd32">
      <th>ID</th>
      <th>Action</th>
      <th>Attribute</th>
      <th>Initial Value</th>
      <th>End Value</th>
     </tr>

     <xsl for-each select="directory-entries/delta[@operati>
      <xsl:variable name="ident" select="@dn" />
      <xsl:for-each select="attr">
       <tr>
        <td>
         <xsl:value-of select="$ident"/>
        </td>
        <td>
         <xsl:value-of select="@operation"/>
        </td>
        <td>
         <xsl:value-of select="@name"/>
        </td>
        <xsl if test="@operati>
         <td>
          null
         </td>
         <td>
         <xsl:for-each select="value">
          <xsl:value-of select="current()"/>
          <br />
         </xsl:for-each>
         </td>
        </xsl:if>
        <xsl if test="@operati>
         <td>
          <xsl for-each select="value[@operati>
           <xsl:value-of select="current()"/>
           <br />
          </xsl:for-each>
         </td>
         <td>
          <xsl for-each select="value[@operati>
           <xsl:value-of select="current()"/>
           <br />
          </xsl:for-each>
         </td>
        </xsl:if>

       </tr>
      </xsl:for-each>

     </xsl:for-each>

    </table>
   </body>
  </html>
 </xsl:template>


</xsl:stylesheet>

 

Revise this Paste

Your Name: Code Language: