954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

MSXSL gives error message for "for" inside "select"

I have the following segment inside my XSLT transform:

<property name="Value"><xsl:value-of select="for $index in ...


msxsl.exe produces the following error:Code: 0x80004005
Expected token 'EOF' found '$'.

for -->$<--index in ...

Is this a syntax error? The code before the shown segment seems to be fine. What am I doing wrong?

Thanks!

ilyaz
Newbie Poster
13 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

No this isn't a syntax error per say. MSXML only supports XPath/XSLT 1.0.

Doing select="for XXXX in" or select="if then else" is a 2.0 XPath usage. You need a processor that supports 2.0, Saxon for example.

iceandrews
Junior Poster
185 posts since May 2010
Reputation Points: 10
Solved Threads: 30
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You