<?xml version="1.0"?>

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0">

  <xsl:param name="properties"/>
  
  <xsl:output method = "text"/>

    <xsl:variable name="propertiesURL"><xsl:value-of select="$properties"/>blat</xsl:variable>

    <xsl:variable name="who">
      <xsl:value-of select="document($properties)/Properties/NameValue[Name='docmode']/Value"/>  
    </xsl:variable>

    <xsl:template match="Document">
      <xsl:apply-templates/><xsl:value-of select="$who"/>
    </xsl:template>

</xsl:stylesheet>
