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!

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.