文件操作 - dellcmapp.xsl
返回文件管理
返回主菜单
删除本文件
文件: /opt/dell/srvadmin/var/lib/openmanage/xslroot/oma/cim/dellcmapp.xsl
编辑文件内容
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:output method="text"/> <xsl:variable name="combinedkeyinput"> <xsl:for-each select="/OMACIM/Keys/Key"> <xsl:value-of select="@value"/> </xsl:for-each> </xsl:variable> <xsl:variable name="lowercombinedkeyinput" select="translate($combinedkeyinput,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/> <xsl:template match="SVMInventory/Device"> <xsl:apply-templates /> </xsl:template> <xsl:template match="Application"> <xsl:choose> <xsl:when test="not(/OMACIM/Keys)"> instance of <xsl:value-of select="/OMACIM/@creation-class-name" /> { componentType = "<xsl:value-of select="@componentType" />"; subComponentID = "<xsl:value-of select="@subComponentID" />"; version = "<xsl:value-of select="@version" />"; name = "<xsl:value-of select="@display" />"; deviceKey="<xsl:value-of select="../@componentID" />:<xsl:value-of select="../@display" />:<xsl:value-of select="../@vendorID" />:<xsl:value-of select="../@deviceID"/>:<xsl:value-of select="../@subDeviceID" />:<xsl:value-of select="../@subVendorID" />:<xsl:value-of select="../@bus"/>:<xsl:value-of select="../@device"/>:<xsl:value-of select="../@function"/>"; }; </xsl:when> <xsl:otherwise> <xsl:variable name="combinedAppTag"><xsl:value-of select="@componentType" /><xsl:value-of select="../@componentID" />:<xsl:value-of select="../@display" />:<xsl:value-of select="../@vendorID" />:<xsl:value-of select="../@deviceID"/>:<xsl:value-of select="../@subDeviceID" />:<xsl:value-of select="../@subVendorID" />:<xsl:value-of select="../@bus"/>:<xsl:value-of select="../@device"/>:<xsl:value-of select="../@function"/><xsl:value-of select="@display" /><xsl:value-of select="@subComponentID" /><xsl:value-of select="@version" /></xsl:variable> <xsl:variable name="lowercombinedAppTag" select="translate($combinedAppTag,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/> <xsl:if test="($lowercombinedAppTag = $lowercombinedkeyinput ) "> instance of <xsl:value-of select="/OMACIM/@creation-class-name" /> { componentType = "<xsl:value-of select="@componentType" />"; subComponentID = "<xsl:value-of select="@subComponentID" />"; version = "<xsl:value-of select="@version" />"; name = "<xsl:value-of select="@display" />"; deviceKey="<xsl:value-of select="../@componentID" />:<xsl:value-of select="../@display" />:<xsl:value-of select="../@vendorID" />:<xsl:value-of select="../@deviceID"/>:<xsl:value-of select="../@subDeviceID" />:<xsl:value-of select="../@subVendorID" />:<xsl:value-of select="../@bus"/>:<xsl:value-of select="../@device"/>:<xsl:value-of select="../@function"/>"; }; </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件