In my stylesheet I try to set the default value for an input parameter to a string beginning with the dot character. And always receive an error code 0x8004005 - Expected toden 'eof' found 'NAME'. For example:
<xsl:param name="p1" select=".exe"/>
However it doesn't matter what follows the dot. Always same error. How do I form this string to include the first dot?
You need to specify the "default value" as a string literal .
Simply change:
<xsl:param name="p1" select=".exe"/>
to:
<xsl:param name="p1" select="'.exe'"/>
In the former case the value of the select
attribute is evaluated as an XPath expression -- not as a string.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.