<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 :
TEST 2 : PASS
file-exists-local :
– path = __WP_CONTENT_DIR__/plugins/tenandtwo-xslt-processor/xsl/sample.xml
result :
TEST 3 : PASS
file-exists-local :
– path = __XSLT_PLUGIN_DIR__/xsl/default.xml
result :
TEST 4 : PASS
file-exists-local :
– path = /not-a-file.txt
result :