New to InfoPath. I'm using the format-date XSLT function in an InfoPath 2010 form. It works fine in InfoPath (2010), but when I go to publish to SharePoint (2010), I get the following error:
The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported function: concat(., " - ", msxsl:format-date(xdDate:Now(), "yy MMM"), " - ",../my:Subject).
The code just uses the current field, the current date, and built-in Subject property data to create a string that will display in a read-only field. Seems pretty simple to me.
I'm pretty sure the code is fine (verified by Infopath and tests fine), so it's either an unsupported function or an undefined namespace prefix. I find it hard to believe format-date is an unsupported function – it works perfect in InfoPath, and the method seems like the most obvious way to format dates within a string.
So this looks like an undefined namespace issue, but I can't see where/how to define. I Googled a bit and learned to rename the XSN to a CAB file, then extracted, but everything looked defined to my amateur eyes. (Note: I did not specifically add any definitions at this step.)
Any tips please?
