Microsoft.Windows.TimedScript.PerformancePageSet (UIPageSet)

Element properties:

Type DefinitionMicrosoft.Windows.TimedScript.PerformanceProvider

Source Code:

<UIPageSet ID="Microsoft.Windows.TimedScript.PerformancePageSet" TypeDefinitionID="Microsoft.Windows.TimedScript.PerformanceProvider">
<UIPageReferences>
<UIPageReference ID="Microsoft.Windows.TimedScript.PerformancePageSet.Reference1" PageID="System!System.SimpleSchedulerPage">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="SimpleReccuringSchedule">
<xsl:element name="Interval">
<xsl:value-of select="IntervalSeconds"/>
</xsl:element>
<xsl:if test="boolean(string-length(SyncTime))">
<xsl:copy-of select="SyncTime"/>
</xsl:if>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference1.Title"/>
<TabName ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference1.TabName"/>
</UIPageReference>
<UIPageReference ID="Microsoft.Windows.TimedScript.PerformancePageSet.Reference2" PageID="Microsoft.Windows.ScriptPage">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="/ScriptName"/>
<xsl:copy-of select="/Arguments"/>
<xsl:copy-of select="/ScriptBody"/>
<xsl:copy-of select="/TimeoutSeconds"/>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference2.Title"/>
<TabName ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference2.TabName"/>
</UIPageReference>
<UIPageReference ID="Microsoft.Windows.TimedScript.PerformancePageSet.Reference3" PageID="Microsoft.Windows.PerformanceMapperPage">
<InputParameters/>
<InputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="/ObjectName"/>
<xsl:copy-of select="/CounterName"/>
<xsl:copy-of select="/InstanceName"/>
<xsl:copy-of select="/Value"/>
</xsl:template>
</xsl:stylesheet>
</InputTransform>
<Title ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference3.Title"/>
<TabName ID="Microsoft.Windows.ScriptBasedPerformancePageSet.Reference3.TabName"/>
</UIPageReference>
</UIPageReferences>
<OutputTransform>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:element name="IntervalSeconds">
<xsl:variable name="RawInterval" select="/SimpleReccuringSchedule/Interval"/>
<xsl:variable name="Units" select="/SimpleReccuringSchedule/Interval/@Unit"/>
<xsl:choose>
<xsl:when test="not(boolean($Units)) or $Units='Seconds'">
<xsl:value-of select="$RawInterval"/>
</xsl:when>
<xsl:when test="$Units='Minutes'">
<xsl:value-of select="$RawInterval*60"/>
</xsl:when>
<xsl:when test="$Units='Hours'">
<xsl:value-of select="$RawInterval*3600"/>
</xsl:when>
<xsl:when test="$Units='Days'">
<xsl:value-of select="$RawInterval*86400"/>
</xsl:when>
</xsl:choose>
</xsl:element>
<xsl:element name="SyncTime">
<xsl:value-of select="/SimpleReccuringSchedule/SyncTime"/>
</xsl:element>
<xsl:element name="ScriptName">
<xsl:value-of select="/ScriptName[1]"/>
</xsl:element>
<xsl:element name="Arguments">
<xsl:value-of select="/Arguments[1]"/>
</xsl:element>
<xsl:element name="ScriptBody">
<xsl:value-of select="/ScriptBody[1]"/>
</xsl:element>
<xsl:element name="TimeoutSeconds">
<xsl:value-of select="/TimeoutSeconds[1]"/>
</xsl:element>
<xsl:copy-of select="/ObjectName"/>
<xsl:copy-of select="/CounterName"/>
<xsl:copy-of select="/InstanceName"/>
<xsl:copy-of select="/Value"/>
</xsl:template>
</xsl:stylesheet>
</OutputTransform>
</UIPageSet>