This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
XSL/Transform vs WD-xsl
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] XSL/Transform vs WD-xsl
- From: Karlo <pcaspian at iafrica dot com>
- Date: Mon, 03 Sep 2001 09:43:47 +0100
- References: <000601c13126$f2be2370$a301a8c0@3d38kw1n0b1udc><5.0.2.1.0.20010830100538.00abdaa0@pe-pop01.iafrica.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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