Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的样式表中,我尝试将输入参数的默认值设置为以点字符开头的字符串。并且总是收到一个错误代码 0x8004005 - 预期 toden 'eof' found 'NAME'。例如:
<xsl:param name="p1" select=".exe"/>
但是,点后面的内容并不重要。总是同样的错误。如何形成这个字符串以包含第一个点?
您需要将“默认值”指定为字符串文字。
简单地改变:
到:
<xsl:param name="p1" select="'.exe'"/>
在前一种情况下,select属性的值被评估为一个 XPath 表达式——而不是一个字符串。
select