Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML/XSLT using javascript to display in a HTML page

Status
Not open for further replies.

imamember

Programmer
Apr 30, 2004
1
ZA
ok this might be long so here we go, please help if you can...

basically I have an XML document, which uses an XSL document. the XSL doc in turn includes a standard style sheet.

<!DOCTYPE xsl:stylesheet [<!ENTITY stylescss SYSTEM "style3.css">]>

now all this together makes really kule looking document. when i open the xml file on its own.
what I want to do however is make the XML PART of an HTML page. i.e. theoretically insert the XML into a div tag (not sure if possible)

at the moment im using this code...

document.getElementById("divMain").innerHTML = objHTTP.responseText

which technically works EXCEPT the style sheets no longer work. i.e. the XML is there but completely unformatted...

PLEASE HELP!! thanks :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top