Re: [xsl] Using scripts with XML

Subject: Re: [xsl] Using scripts with XML
From: Michael Hall <ninti@xxxxxxxxx>
Date: Wed, 13 Nov 2002 16:41:50 +1100
Quoting Chitra Lalita Madhwacharyula <iscp1059@xxxxxxxxxx>:

> 	Hello,
> 
> 	Is it possible to use any scripting language like Javascript or
> ECMAScript directly with XML like they can be used 	with HTML  or is
> XSLT compulsarily needed for using the scripts ?

AFAIK, it is not possible to use JavaScript/ECMAScript inside either XML or XSL 
files. But you could convert XML to HTML with Javascript, using XSL.

XML files can be used without XSL, it depends on what you are doing. XML can be 
used with CSS to render simple pages in a web browser. If you want to actually 
change the XML into, say, HTML, then you will need to use XSL.

XML and XSL can both be written dynamically using a scripting language like 
PHP, Python or Perl.

Mick

> 
> 	Rgds,
> 	Chitra 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


-- 
----------------------------------------------------
MICHAEL HALL                 Web Development Officer
Batchelor Institute of Indigenous Tertiary Education
W: mick.hall@xxxxxxxxx                (08) 8951 8352
H: ninti@xxxxxxxxx                    (08) 8953 1442
----------------------------------------------------

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


Current Thread