[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:sort in old MSXML

Subject: RE: xsl:sort in old MSXML
From: "Claudio Russo" <crusso@xxxxxxxxxxxxxxxxx>
Date: Tue, 1 Jul 2003 12:20:44 -0300
msxml javascript xslt
Please correct first paragraph: "...happen, it would run" should say "it wouldn't".

-----Original Message-----
From: Claudio Russo 
Sent: Martes, 01 de Julio de 2003 12:00 p.m.
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  xsl:sort in old MSXML


David,

Thanks for the prompt reply. I still don't get the whole picture.

1) Regarding Javascript: So you say that it runs JavaScript in my machine, maybe cause IE 6.0 installs a "system" (I would says processor or interpreter, isn't it?). If this didn't happen, it would run. So I assume that not all browsers could see my application unless this is flag is on (I mean they have such feature in their machines as well).

2) XSLT: If the application conforms to the "http://www.w3.org/1999/XSL/Transform" it will probably run fine on any browser higher than 5.0. 

3) XML: My XML file resides on different directory of the HTML that has the XSL code, but on the same site, and has no Stylesheet reference on it. The construct is as follows: Run HTML inside a frame, which onLoad calls a javascript function that loads the DOM and calls a Stylesheet against the XML which shows the data inside a DIV field in the HTML (please see "Ranking" under www.geocities.com/tenisspot).

Claudio.

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Martes, 01 de Julio de 2003 11:24 a.m.
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  xsl:sort in old MSXML




  So, as in the code I sent you, when I use: 

  	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   	xmlns:js="javascript:code"
   	xmlns:msxsl="urn:schemas-microsoft-com:xslt"
	xmlns:ms="urn:schemas-microsoft-com:xslt"
	xmlns:fo="http://www.w3.org/1999/XSL/Format"

  1) It means that "xsl" and "fo" stick to the standard (and will run on
     any implementation of IE and Netscape), but "msxsl" and "ms"
     doesn't stick to it. 

Neither IE nor netscape implement XSLT FO.
But your code was generating HTML so you don't need that namespace at
all.

XSLT specifies an extension mechanism, and most systems have extensions.
So it is conformant for MSXML to have the msxsl extension namespace but
obviously it doesn't work anywhere else.
Really you should learn the language first and then start using
extensions later.
If you knew C and didn't know Java you could write all your "java" code
as a simple wrapper that used the JNI to call functions written in C,
but it wouldn't be portable and it wouldn't be "the java way".
What you are doing is exactly the same, rather than trying to write XSLT
you are trying to escape to run functions in other languages.


> 2) What about "js"? Isn't it portable the code?

No its not portable at all. Most XSLT engines do not include a
javascript system (Why should they?). As you are using an XSLT system
built into a browser and that browser also has a javascript system there
is an extension provided to let you call each language from the other,
but that is not usually the case.



> 3) Access to server: My application is in yahoo geocities. Even I
> 3) don't have access to the "server" I can still browse the page with
> 3) the stylesheet. Why do you say I cannot use XSLT? 

You can (you said you have IE6) but you were asking about IE4 and
netscape 4. If you serve XML files that have an <?xml-stylesheet
refering to an XSLT file then people with ancient browsers can not read
your file.


David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.