Click to See Complete Forum and Search --> : Where's my XML gone?


konfjuusd
01-15-2008, 08:11 AM
Hello.
I'm very new to this XML thing. So far i've spent two nights reading up on it only to find myself more confused than ever. Im also a noob in the art of javascripting, DTD's namespaces… … …

What I'd like to do is create a web site that consists of XML and get transformed to XHTML with the help by XSLT and to keep the XML data in its original structure in the web browser of the visitor. This so I can use DOM and XSLT when page is downloaded to manipulate things without any interaction with the server. I suppose I were naive to belive such a thing would be easy to do set up.

My problem is that when I try to generate a site from an XML file with the XSLT the XML disappears. Or the XML, and only the XML, is visible when vieving the source. However, when having a look at the DOM tree with the help of DOM inspector there is a nice XHTML file instead. But not a trace of my XML file there no.

So what can I do to get to include the XML tree in the generated page? Please help me out and I'll be forever grateful.

Thanks
/Konfjuusd

konfjuusd
01-17-2008, 07:34 PM
Nevermind this.

I've tried to set it up using inline XSLT, put an XML file in an IFRAME and access it from the main document. No success. Tried to hide the XML file using a HTML4.0 tran doc type. Accessible using DOM but with the XSLT. So I'll ditch the XSLT solution and go for a more traditional one using javascript only. Still belives the combination of client side XSLT and DOM transformations and dynamicalization(!) would be the sh*t for my application. Well well… Should have known my limitations. :)