XSLT版本1中是否有URL编码功能?我在javascript中需要类似于encodeURIComponent函数的东西吗?
因为我正在使用.NET平台,因为XSLT应用于Sharepoint页面,因此这是不可能的.有没有办法对此购买进行编码,在下面的XML片段中调用javascript encode函数:
<xsl:template name="BuildLink">
<xsl:param name="PrimarySubject" />
<xsl:text>?PrimarySubject=</xsl:text>
<xsl:value-of select="$PrimarySubject" />
</xsl:template>
Run Code Online (Sandbox Code Playgroud)
谢谢,