You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Br...@equifax.com on 2000/02/17 09:36:31 UTC

Re: HTML (not XHTML) in a XSLT file and HTML within an XML document


XSLT engines like Xalan should only be able to convert from one well formed xml
document to another. If you want to do arbitrary transformations you need to use
XSL:FO (now just called XSL). Have a look at http://xml.apache.org/fop

cheers,
bld





edasque@silverstream.com (Erik Dasque) on 16/02/2000 16:52:29

Please respond to xalan-dev@xml.apache.org

To:   xalan-dev@xml.apache.org
cc:    (bcc: Bruce Durling/IT/UK/Europe/Equifax)

Subject:  HTML (not XHTML) in a XSLT file and HTML within an XML document



Can you give me an XSLT example to transform an XML document into HTML ?
I have tried this and the editors compain about the XSL file not being a
well-formed XML document (since it contains HTML, not XHTML).

If I just put it there, XALAN cannot find its version attribute (probably
because the style sheet is not well formed anymore). If I use CDDATA, IE5
XSL processor displays it well but if I process it using Xalan, it escapes
my whole HTML code.

Also, how can you have an element text node to be non parsed HTML (which
would cause the XML document to be non valid) ?

Something like
<DOCUMENT>
<HTML_BODY> [*---<HTML>....</HTML> ---*]
</HTML_BODY>
</DOCUMENT>

where the HTMLBODY being included as is (not espaced with &lt;) by XALAN

TIA

Ed.