Click to See Complete Forum and Search --> : Problems with XML + XSL + HTML


acz
01-27-2005, 07:31 AM
Hi,

I have a HTML page and inside of then I need to put a XML content formatted by XSLT.

But I'm getting this error:

XML Parsing Error: xml processing instruction not at start of external
entity

Searching in the internet I discovered that error is caused by HTML before XML tag <?xml ... ?>

Exists a way to do that without need to parse XML by PHP, ASP, etc to transform this context in HTML and then show the page.

I'm sorry of the poor english.

Thanks,
André

Charles
01-27-2005, 07:49 AM
You cannot have an HTML/XML hybrid document. You can, however have an XHTML/XML hybrid document. You'll need to omit the XHTML DTD and transform the entire document - just copy the SHTML part to the output stream.

The other, perhaps better, option is to use two different documents and include the XML with the HTML IFRAME or OBJECT elements.

acz
01-27-2005, 11:10 AM
Thanks Charles

I'll use Iframe solution..