Subject: RE: [xsl] mixture of XML and HTML in result From: Larry_Mason@xxxxxx Date: Thu, 8 Jan 2004 11:08:38 -0600 |
Close. The key is not so much the encoding on the xsl:ouput but rather to add a meta statement to inform the browser of the encoding. Here is a final xsl that works (for those interested). Thanks to all who replied. Larry <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- change output method to be xml since result is both html and xml --> <xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes"/> <xsl:template match="/"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </HEAD> <BODY> Try to get html and xml output<BR/> <TABLE BORDER="1"> <TR> <TD> <xsl:text> </xsl:text>grandparent<BR/> <xsl:text>  </xsl:text>parent<BR/> <xsl:text>   </xsl:text>child<BR/> </TD> <TD> the xml stuff is here <xml id="data"><data><name/><name/></data> </TD> </TR> </TABLE> </BODY> </HTML> </xsl:template> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] mixture of XML and HTML i, Andrew Welch | Thread | RE: [xsl] mixture of XML and HTML i, Kyle Partridge |
Re: [xsl] copying mixed xml, David Carlisle | Date | RE: [xsl] Obtaining a list of uniqu, Andreas L. Delmelle |
Month |