xml vRA LeaseAboutToExpire.xslt日期

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml vRA LeaseAboutToExpire.xslt日期相关的知识,希望对你有一定的参考价值。

<!-- This bit goes after <xsl:template match="/"> -->

<xsl:variable name="dd">
	<xsl:value-of select="substring(//VirtualMachineEx/Expires, 9,2)" />
</xsl:variable>

<xsl:variable name="mm">
	<xsl:value-of select="substring(//VirtualMachineEx/Expires, 6,2)" />
</xsl:variable>
	
<xsl:variable name="yyyy">
	<xsl:value-of select="substring(//VirtualMachineEx/Expires, 1,4)" />
</xsl:variable>

<xsl:variable name="time">
	<xsl:value-of select="substring(//VirtualMachineEx/Expires, 12,5)" />
</xsl:variable>

<!-- 
As I was only interested in changing notification for single machine 
deployments at this time I put the following after <xsl:otherwise>
-->

The lease for Virtual Machine <xsl:value-of select="//VirtualMachineEx/Name"/> will expire on 
		
<xsl:value-of select="$dd" />/<xsl:value-of select="$mm" />/<xsl:value-of select="$yyyy" />
		
at <xsl:value-of select="$time" />.

<!-- 
You will get the following output:
The lease for Virtual Machine VM-01 will expire on 09/12/2014 at 12:00
-->

以上是关于xml vRA LeaseAboutToExpire.xslt日期的主要内容,如果未能解决你的问题,请参考以下文章

Windows Azure Pack与VMware VRA 对比安装VRA IaaS服务器

markdown VRA配置

vRA分布式架构6.2.3升级至6.2.5趟坑篇

powershell 使用本地用户创建vRA租户并添加目录

powershell 将vRA蓝图导出为PowervRA的内容包

vRA7 Business error “Untrusted certificate chain”