我有一个XSL文件,它使用静态网站链接,如下所示:
<xsl:template match="my_match">
<xsl:variable name="variable1">
<xsl:value-of select="sel1/Label = 'Variable1'"/>
</xsl:variable>
<xsl:copy-of select="sites:testPath('http://testsite.com/services/testService/v1.0', $fname, $lname,
$email , $zip, $phone, $comments, $jps, boolean($myvar), string(cust/@custID), string(@paID))"/>
</xsl:template>
Run Code Online (Sandbox Code Playgroud)
我的问题是如何读取xsl文件中的属性文件(键值对).所以在我的属性文件(例如site.properties)中我有一个名为siteie 的键site=testsite.com/services/testService/v1.0
我想使用此站点密钥代替在xsl中指定url值,即http://testsite.com/services/testService/v1.0.这样做的原因是此链接根据各种环境而变化.
这可能吗?如果可能,请提供您的建议或示例代码......如果这是不可能的......有没有解决方法?