Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

XML + XSL embedded into HTML

Not sure if this belongs here. Insert styled xml into html page

10:29 am on Oct 9, 2008 (gmt 0)

New User

5+ Year Member

joined:Oct 9, 2008
votes: 0


im outputting .xml files from my Oracle 10g database and using a xsl stylesheet im turning the raw XML content into something useful.

what i need to do is IMPORT the styled XML data into my current HTML page, but i dont know how to do that.

currently i have the following files.

blog.xml <- contains a link to the xslt stylesheet and RAW XML data
blog.xsl <- contains the statements to extract the tags i want
home.html <- contains a space for this data to be displayed.

so basically its blog.xml+blog.xsl -> home.html

im looking for something simple, the only things i could find were java scripts that did what my blog.xsl stylesheet is doing.

Can someone help? please :)

3:00 pm on Oct 9, 2008 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
votes: 0

Hi anthraxnz, welcome to WebmasterWorld!

this post from last year [webmasterworld.com] gives some good examples of client-side XSLT, applying style and formatting to an XML document, thus creating a human-friendly XML page. Perhaps you should just show the XML file as itself, with an embedded XSLT and associated CSS, rather than try to tuck the XML into an HTML file.

Or you could put all of the above into an <iframe>

are you able to leverage a server-side programming language, such as PHP or C#?