Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2006, 03:53 PM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT problem w/ creating JavaScript (FCKeditor)

I need help with my application. Its a web site that recieves a XML from a webservice and build a web page from it, using XSLT.

The problem is that when I try to create a FCKeditor using the generated page from the XML, I get an "unterminated string literal error".

Here is the XSLT :

*** start xsl code ***

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="yes" cdata-section-elements="xsl:comment"/>

*** xsl code continues ***
<script language="JavaScript" type="text/javascript">
<xsl:comment>
var oFCKeditor = new FCKeditor('paginaGenerada');
oFCKeditor.BasePath = /home/FCKeditor/";
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.width = '100%';
oFCKeditor.height = '100%';
oFCKeditor.Create();
function FCKeditor_OnComplete( editorInstance )
{
var html =
'<xsl:value-of select="//code/xhtml" />';
editorInstance.InsertHtml(html,true);
}
</xsl:comment>
</script>

*** xsl code continues ***

The error appears around the "var html =
'<xsl:value-of select="//code/xhtml" />'; " section of the code.

I would appreciate any help or suggestion for posting this problem in a more appropiate forum..

Thanks !!!







Similar Threads
Thread Thread Starter Forum Replies Last Post
creating xslt from dataset in .net sudhir164 .NET Framework 2.0 2 December 4th, 2007 12:16 AM
Creating GUID in Javascript rbd Javascript 8 November 20th, 2007 12:14 PM
Creating XSLT file (C#) maliniarulkumar General .NET 3 April 5th, 2007 10:08 AM
creating a subset of xml schema using XSLT kapar_p XSLT 8 November 21st, 2006 09:46 AM
Problem in passing xslt value to a javascript ! back2grave XSLT 2 June 16th, 2006 03:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.