Forum Stats

  • 3,839,314 Users
  • 2,262,480 Discussions
  • 7,900,930 Comments

Discussions

Extra illegal tokens: 'AND',

Hi,

I'm getting

extra illegal tokens: 'AND',  'string-length', '(', 'INVOICES', 'INVOICE', ....]]>

when I try to do the following:

<xsl:when  test="substring(INVOICES/INVOICE/M1,1,4 &lt; 1945 AND string-length(INVOICES/INVOICE/B1 < 2 ">

I can run it with either the substring part or the string-length part but not combined with AND.

I want to do something if M1 is lower than 1945 and the B1 has fewer letters than 2.

Please help out!

Thanks!