May XML documents have scripting ?

I know HTML has the SCRIPT tag which will startup the client side scripting engine.

But, as XML documents are for no general purpose, I assume there is no such tag or any other mechanism for client side scripting ? I need to manipulate the DOM...

Also can XML documents be styled with CSS 2.1 ? What technology is used in this case ?

Thanks in advance,
Armen.
[390 byte] By [Amn] at [2007-11-19 1:35:09]
# 1 Re: May XML documents have scripting ?
But, as XML documents are for no general purpose.

I think you meant right, but it would be more correct to say that XML is completly general purpose, it has no specific purpose or semantic.

I assume there is no such tag or any other mechanism for client side scripting ?

Yes, and no, there is no one xml scripting language, XML is not one language, it's just a basic syntax for formatting data. But of course there are many XML based languages that allows for various kinds of scripting, depending on the context.

I need to manipulate the DOM...

That entirely depends what you are trying to do, you mention clientside scripting and HTML, if you are looking to display some data from an XML file in a web browser, the best way to do that usually is to create an XSL file which defines how the XML file should be transformed to HTML. This approach allows you to do client side scripting in javascript or whatever language the client understands, by embedding the code in the XSL file.
khp at 2007-11-10 3:27:59 >
# 2 Re: May XML documents have scripting ?
Thanks, I figured it out. WHat i did is to have a XHTML page being a scripting host with the help of SCRIPT tag, but I generate my own tags from my own namespace with JavaScript which do not interfere with the document.
Amn at 2007-11-10 3:28:56 >