[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] mixture of XML and HTML in result

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.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  <!-- 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="/">
       <META http-equiv="Content-Type" content="text/html; charset=UTF-8"
        Try to get html and xml output<BR/>
        <TABLE BORDER="1">
              the xml stuff is here
             <xml id="data"><data><name/><name/></data>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread