【发布时间】:2013-07-17 21:11:47
【问题描述】:
正在使用带有转义字符的文件名解析 XML。这是服务器上的文件名:
Account-V%29%27%22%3B%3A%3E.layout
当我应用文档功能时,它会自动转换转义字符。
`<xsl:apply-templates select="document('Account-V%29%27%22%3B%3A%3E.layout')/Layout"/>
由于无法在服务器上找到此文件,因此出现错误:
Account-V)'";:>.layout
有没有办法告诉 document() 函数不要转换文件中的转义字符?我尝试将其包装在变量周围,但没有奏效。
【问题讨论】:
标签: file xslt escaping document chars