- To: <xml-dev@l...>
- Subject: Transforming XML to HTML browser side
- From: "Francois Liot" <fliot@k...>
- Date: Mon, 13 May 2002 12:45:41 +0200
- Thread-index: AcH6a1PrNCRRHrODQ5C6v62KPgT74g==
- Thread-topic: Transforming XML to HTML browser side
Hello,
With IE it's simple
to use XSLT processing though Javascript (+ MSXML)
The IE method is
:
<script
type="text/javascript"> // Load XML var xml = new
ActiveXObject("Microsoft.XMLDOM") xml.async =
false xml.load("cdcatalog.xml")
// Load the XSL var xsl = new
ActiveXObject("Microsoft.XMLDOM") xsl.async =
false xsl.load("cdcatalog.xsl")
//
Transform document.write(xml.transformNode(xsl)) </script>
It offers a very
flexible way to desing interface with on-the-fly reuse of XML
data....
Does it exist such
method for Netscape/Mozilla (on versions were XSLT processing is not a problem
of course...)
Thanks.
|