XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
hass chapmanSubject: "unexpected token in attribute value template"
Author: hass chapman
Date: 30 Aug 2005 08:26 AM
We are evaluating the product for use here but have coime across a problem when we try to import an HTML file to xslt. We are using a search results page as both html and xml data (we can get the results in pure xml from the search tool). When we click on the WYSIWYG tab we get the error:
"unexpected token in attribute value template"

Anyone know what this means?

Postnext
Ivan PedruzziSubject: No Topic
Author: Ivan Pedruzzi
Date: 30 Aug 2005 08:39 AM
There is an invalid character inside an AVT instruction {}

Could you post the code fragment where the error is reported?

Ivan Pedruzzi
Stylus Studio Team

Postnext
hass chapmanSubject: No Topic
Author: hass chapman
Date: 30 Aug 2005 08:57 AM
It doesn't say where the error is... we are importing a whole HTML file and have european characters in it - could it be these that are causing the problem?

Postnext
Ivan PedruzziSubject: No Topic
Author: Ivan Pedruzzi
Date: 30 Aug 2005 09:04 AM

Without see the code is hard to guess.

Try to run the XSLT from the Text view clicking the green triangle
it should set the cursor to the error position


Ivan

Postnext
hass chapmanSubject: No Topic
Author: hass chapman
Date: 30 Aug 2005 09:07 AM
Thx for the tip, it jumped to this line:

<input type="checkbox" name="col"
id="1regler" value="1regler"
onclick_='if (this.checked==true){document.forms.seek2[0].checked=false}' />

Postnext
Ivan PedruzziSubject: No Topic
Author: Ivan Pedruzzi
Date: 30 Aug 2005 09:48 AM
The XSLT processor evaluates what is inside {} as XPath expression.

Use the following instead

<xsl:variable name="onclick_" select="'if (this.checked==true) { document.forms.seek2[0].checked=false }'"/>
<input type="checkbox" name="col" id="1regler" value="1regler" onclick__="{$onclick_}"/>


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
hass chapmanSubject: No Topic
Author: hass chapman
Date: 31 Aug 2005 01:15 AM
Ok, thanks alot! This was as I said an import but it is good to know :)

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.