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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Transforming XML to HTML browser side

[ Lists Home | Date Index | Thread Index ]
  • To: "Manos Batsis" <m.batsis@bsnet.gr>
  • Subject: RE: [xml-dev] Transforming XML to HTML browser side
  • From: "Francois Liot" <fliot@kyriba.com>
  • Date: Mon, 13 May 2002 15:42:42 +0200
  • Cc: <xml-dev@lists.xml.org>
  • Thread-index: AcH6a1PrNCRRHrODQ5C6v62KPgT74gAChizAAAOkUwA=
  • Thread-topic: [xml-dev] Transforming XML to HTML browser side

Thank you your answer was perfect.

Best regards

-----Original Message-----
From: Manos Batsis [mailto:m.batsis@bsnet.gr]
Sent: lundi 13 mai 2002 14:12
To: Francois Liot
Cc: xml-dev@lists.xml.org
Subject: RE: [xml-dev] Transforming XML to HTML browser side



Last time I checked Mozilla could load and transform an XML doc using
the stylesheet in the xml-stylesheet PI. An equal to the transformNode()
method (to control transformations using script) was also on the way
according to bugzilla but haven't checked since then (that was two
months ago). If anyone knows more...

Also, you won't be able to load a DOM document in Mozilla using progIds;
M$ decided not to use the recommended factory methods. Try [1], it has
some nice examples of cross browser DOM scripting, including loading
documents. 

[1] http://www.oreilly.com/catalog/jscript4/chapter/ch17.html

Hth,

Manos


-----Original Message-----
From: Francois Liot [mailto:fliot@kyriba.com] 
Sent: Monday, May 13, 2002 1:46 PM
To: xml-dev@lists.xml.org
Subject: [xml-dev] 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