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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

always XML/XSL -----> HTML

Status
Not open for further replies.

rcodarini

Programmer
Jul 3, 2001
8
IT
Thanks to Liz and D. for their consulting, but I've an other problem, I remeber the situation, I've an XML file that I want to transform into an HTML file with XSL, in the html result file I want to insert a Javascript generated within the tags of the XML, I've this problem:

In the XSL I've inserted this Javascript instructions:

for (i = 0; i < <xsl:value-of select=&quot;nTabs&quot;>; i++)

the problem is with the < character, so if I write:
for (i = 0; i < <xsl:value-of select=&quot;nTabs&quot;>; i++)
XSL give me an error... because the < character identifiers a Tag

if I write
for (i = 0; i & lt; <xsl:value-of select=&quot;nTabs&quot;; i++)
(the space in & lt; is because in the HTML page you view <)
HTML give me an error because JavaScript is interpreted before the visualization....

Thanks
ROb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top