Subject: RE: XML from html out of XSL From: Siegfried Haag <Siegfried.Haag@xxxxxxxxxxxxxx> Date: Mon, 4 Oct 1999 16:14:21 +0100 |
Hi Bill, thank you for the answer but thats not what i mean. The XML-islands are in a HTML-Page. I loaded the XML-File directly from the server (or filesystem) into the IE5 with a reference to a XSL-stylesheet. Therefore there is no name of the MSXML-object which i could give. The object is activated automatically. Or is there a default name ? With the DOM-model of the IE5 i tried without success. With the JavaScript in the resulting html i want to access the whole MSXML-object. Does anybody know the name or isn't there any? Siegfried Haag Software AG -----Original Message----- From: Bill Martschenko [SMTP:billmartschenko@xxxxxxxxx] Sent: Montag, 27. September 1999 05:52 To: xsl-list@xxxxxxxxxxxxxxxx Subject: Re: XML from html out of XSL Use XML islands. Specifically, when you generate HTML with your XSL, generate an XML island <xml id="data">...</xml> that contains a copy of the original XML. Use some programmatic id, such as "data", in the xml island so you can programmatically reference it. I've attached a sample that does this. Notes about the sample. 1) A small table is populated directly from the XSL. 2) A trivial programmatic access to the original xml is in the ondatasetcomplete handler. 3) The data.readystate property does not get set to "complete" in the onload() event handler for the window object or the body. Instead, I use a specific ondatasetcomplete handler for the xml island itself. 4) A second table shows the original XML as a reference table. It uses the xml island as a DSO. This is a second type of programmatic access. Let met know if this is not what you need, Bill >From: Siegfried Haag <Siegfried.Haag@xxxxxxxxxxxxxx> >Date: Fri, 24 Sep 1999 15:31:37 +0100 >Organization: SAG Systemhaus GmbH > >Hi, > >i have a html-page created out of applying xsl on xml-document. > >How can i access the hole xml with javascript in the html? > >--------------- >more exactly: >a.xml with a reference to a style b.xsl >a.xml is startet by the browser IE5 >automatically the b.xsl is loaded after a.xml >and the style b.xsl is applied > >the result is a html-page with javascript in it >and a function in the body: > body onLoad="doit()"; > >in the function i want to access the XML-DOM in the memory >of the browser > >but i have no name of it!? > >when i load the xml by object.load("abc.xml") then i have >it, but thats not the solution > >Anybody who knows a bit more? > >Thank you, > >Siegfried Haag >Software AG __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com << File: Loonies.xml >> << File: Loonies.xsl >> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: A problem with [embedded templa, Hunter, David | Thread | Controlling output element spacing, Stephane St-Denis |
RE: A problem with [embedded templa, Hunter, David | Date | Controlling output element spacing, Stephane St-Denis |
Month |