file-exists-local

<xsl:include href="../plugins/tenandtwo-xslt-processor/xsl/file.xsl" />

<xsl:call-template name="file-exists-local">
    <xsl:with-param name="path" select="$path" />
</xsl:call-template>

TEST 1 : PASS
file-exists-local :
– path = __WP_HOME_DIR__/wp-content/plugins/tenandtwo-xslt-processor/xsl/sample.xml

result :
/srv/plugins.tenandtwo.com/htdocs/wp-content/plugins/tenandtwo-xslt-processor/xsl/sample.xml


TEST 2 : PASS
file-exists-local :
– path = __WP_CONTENT_DIR__/plugins/tenandtwo-xslt-processor/xsl/sample.xml

result :
/srv/plugins.tenandtwo.com/htdocs/wp-content/plugins/tenandtwo-xslt-processor/xsl/sample.xml


TEST 3 : PASS
file-exists-local :
– path = __XSLT_PLUGIN_DIR__/xsl/default.xml

result :
/srv/plugins.tenandtwo.com/htdocs/wp-content/plugins/tenandtwo-xslt-processor/xsl/default.xml


TEST 4 : PASS
file-exists-local :
– path = /not-a-file.txt

result :