OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Transforming XML to HTML browser side

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: Transforming XML to HTML browser side
  • From: "Francois Liot" <fliot@kyriba.com>
  • 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.




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS