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

Re: javascript access to XML DOM in IE5+

Subject: Re: javascript access to XML DOM in IE5+
From: "Agnes Kielen" <a.kielen@xxxxxxx>
Date: Mon, 22 Apr 2002 18:36:14 +0200
javascript xml dom
Hi,
In IE6 it is possible to see the transformation-result. I do something like
this;
- write a html file
- write a function which loads the xml and xsl, creates the dom and does the
transformation
- call this function from the body tag

somehting like this:
<htm>
<head>
<script type=text/javascript>
function intialize(){
        do everything you need here
}
</script>
</head>
<body onLoad="initialize()">
</body>
</html>

Done in this way the source/view option shows the serialized output-file. I
hope this helps you.
Agnes


----- Original Message -----
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, April 22, 2002 4:29 PM
Subject: Re:  javascript access to XML DOM in IE5+


> [Steve Rosenberry]
>
> >
> > (with apologies for the length and to those who monitor both the XML and
> > XSLT list...)
> >
> > If I give my IE5 browser the URL of an XML file, IE is kind enough to
> > load it, discover the XSLT PI inside, and display the resulting
> > user-interface that I want.  No problems so far, but now I would like to
> > trigger client-side javascript XML DOM edit functions from buttons
> > placed on said form (e.g. insert, modify, or remove elements) and
> > hopefully have the new XML DOM tree re-displayed.
> >
> > The general consensus on comp.lang.javascript (see [1] for all the gory
> > details) was that the original XML DOM tree has been flushed in the
> > above scenario, and I was left with three choices if I actually wanted
> > to manipulate the XML after displaying it:
>
> Yes, IE is said to serialize the transformation to a complete html
document,
> then display that document.  That html document is what your javascript
> would be working with.  On the other hand, if you do a Source/View, you
will
> see the original xml.  I don't know if this has been saved or whether IE
> reloads the source to show it, but it suggests that there might be a way
to
> get at it.  I don't know how, though.
>
> Tom P
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.