PDA

View Full Version : questions about xml, xhtml, xlst


bodymoves
04-16-2010, 07:09 PM
hello,

here is the deal. i have an xml, xsl (which is linked to the xml), and a html document. i want to include the transformed xml (which should output html) within the html file that i have. is this possible? if so, how do i include an xml file within an html file?

drhowarddrfine
04-16-2010, 08:40 PM
At that point, the browser has already been told the content is html so no, but you could do this with javascript but I couldn't give you the details on how.

MattF
04-17-2010, 05:03 AM
At that point, the browser has already been told the content is html so no, but you could do this with javascript but I couldn't give you the details on how.

Wouldn't serving the page as XHTML/RDFa allow the use of both, (providing the HTML is valid XHTML)?

drhowarddrfine
04-17-2010, 05:21 AM
XSL transforms XML into another form of XML which includes XHTML but if you are serving XHTML (he said HTML) as true application/xml+xhtml, can the XSL app transform that to other XHTML? I'm glad I'm going to bed and can claim to be too tired to think about it.