Subject: Re: QUESTION: unexpected tokens From: James Clark <jjc@xxxxxxxxxx> Date: Wed, 07 Apr 1999 06:12:16 +0700 |
You need to double the braces in the attribute values (ie replace { by {{ and } by }}). Otherwise the braces will be interpreted as indicating string substitution. > Here's a question about allowed tokens in an XSL stylesheet. > > I use XT to generate HTML pages from an XML source file, but it stops > processing at some point, complaining about an "unexpected token". This is > the fragment that creates the problem: > > <xsl:template match="contents"> > <body onLoad=" document.onmouseout = function e () { > change('origin') }; > document.onmouseover = function e () { > change('origin') }; > document.onmousedown = function e () { > change('inset') }; > document.onmouseup = function e () { > change('origin') }; > window.defaultStatus = ('');"> > </xsl:template> > > The problem occurs on the line starting with "<body onLoad". XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: QUESTION: unexpected tokens, Lars Marius Garshol | Thread | RE: QUESTION: unexpected tokens, Mark Birbeck |
Re: The Cathedral and the Bizarre , Lars Marius Garshol | Date | Re: SUMMARY: XML Validation Issues , Chris Lilley |
Month |