<!DOCTYPE xsl:stylesheet [ 
  <!ENTITY xmlmgr "'var://service/xmlmgr-name'"> 
  <!ENTITY ssstat "'var://service/system/status/StylesheetStatusSimpleIndex'"> 
  <!ENTITY sprobe "'webgui:///msdebug-client.xsl'"> 
]>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:dp="http://www.datapower.com/extensions"
  extension-element-prefixes="dp"
>
  <xsl:output omit-xml-declaration="yes" />
    
  <xsl:template match="/">
    <xsl:variable name="t0" select="dp:time-value()"/>

    <xsl:variable name="res" 
      select="boolean(
                dp:variable(&ssstat;)/statistics
                  /StylesheetStatusSimpleIndex[XMLManager=dp:variable(&xmlmgr;)
                                               and contains(URL,&sprobe;)
                                              ]
              )"
    />

    <xsl:variable name="t1" select="dp:time-value()"/>
    <xsl:value-of select="concat($t1 - $t0,'msec ',$res)"/>
  </xsl:template>
  
</xsl:stylesheet>