[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Transforming XML to HTML browser side

  • To: "Manos Batsis" <m.batsis@b...>
  • Subject: RE: Transforming XML to HTML browser side
  • From: "Francois Liot" <fliot@k...>
  • Date: Mon, 13 May 2002 15:42:42 +0200
  • Cc: <xml-dev@l...>
  • Thread-index: AcH6a1PrNCRRHrODQ5C6v62KPgT74gAChizAAAOkUwA=
  • Thread-topic: Transforming XML to HTML browser side

transforming xml to html
Thank you your answer was perfect.

Best regards

-----Original Message-----
From: Manos Batsis [mailto:m.batsis@b...]
Sent: lundi 13 mai 2002 14:12
To: Francois Liot
Cc: xml-dev@l...
Subject: RE:  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@k...] 
Sent: Monday, May 13, 2002 1:46 PM
To: xml-dev@l...
Subject:  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.

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.