xsl-list
[Top] [All Lists]

RE: RE: Unterminated String Constant Error??

2005-07-25 08:53:34

You almost certainly have something like:

var foo = 'ccc
ddd';

This will cause an unterminated string constant as the single quotes
have to be on the same line.

This occurs when you've got the following in your xslt:

var foo = '<xsl:value-of select="foo"/>';

Used on the following xml:

<foo>ccc
ddd</foo>

To avoid this, use normalize-space where needed eg:

var foo = '<xsl:value-of select="normalize-space(foo)"/>';

cheers
andrew


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--