Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript in XSLT

Status
Not open for further replies.

li70

Technical User
Mar 24, 2007
10
GB
Hi. Everyone
I’m using xslt styllesheet to transform my xml doc. into an html doc. The task includes embedding some JavaScript code for validation purpose, till this point there is no problem everything is going right. Once I tried to get an xhtml doc instead of html, JavaScript problem was raised. In other words, the transformation is performed right apart from JavaScript problem which is, some of JavaScript special characters such as (< , >, &&) were converted into (&lt; , &gt; , ….) which cause some problems with validation task, despite the fact that all JavaScript code is placed between <![CDATA and ]]>. So, any clue to keep whole JavaScript code in its original form?

Your help is much appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top