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