[Home] [By Thread] [By Date] [Recent Entries]
http://www.w3.org/1999/XSL/Transform http://www.w3.org/TR/WD-xsl Hi, I realise this is not all that much on the list topic, but I need to be using 'TR/WD-xsl' I need a user to connect to an XML file, but I want to obviously display it with XSL. There is no XSLT conversion just '<?xml-stylesheet type = "text/xsl" href="showpools.xsl"?>' in the xml file. Now, I need a general web user to be able to access the xsl file, but he/she wont neccesarily be able to use the "http://www.w3.org/1999/XSL/Transform", so I have to make use of "http://www.w3.org/TR/WD-xsl". I got rid of my 'count()' and 'position()' functions, to solve my original problems. My only problem now lies in the following. I am using Javascript which is embedded in my XSL file with <script language="Javascript"><![CDATA[ //all javascript function myAlert() {
while(i < 3)
{
window.alert("hi");
}} ]]></script> * My problem lies with the while(i < 3){} statement. I think it lies in the "<" sign, same with a ">" and "!" sign. I dont understand why though. If I use"http://www.w3.org/1999/XSL/Transform" all works fine, but when I use "http://www.w3.org/TR/WD-xsl" I get errors with the "<" sign. I thought there wouldnt be a problem as I used "CDATA", but still no luck. * Another point. Would I have the same problem if I converted the XML to HTML by using Javascript. I assume I would as this will be done at the client that wont be using the '1999/XSL/Transform'. Is this a commonly used way of displaying XML info, or is it better to just reference the XSL file ? Thank you Karlo XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



