1 Reply Latest reply on Aug 28, 2008 10:45 AM by Newsgroup_User

    xmlTransform() and an Unnecessary XML declaration

    Level 7
      Is there a way to stop this code from producing an unnecessary XML
      declaration. When I run the following code it produces an XML
      declaration after the body tag.

      <?xml version="1.0" encoding="UTF-8"?>

      Is there someway to control this, or do I just need to do some string
      parsing after the transformation?

      <cfsavecontent variable="displayXSL">
      <xsl:stylesheet version="1.0"
      xmlns:xsl=" http://www.w3.org/1999/XSL/Transform">

      <xsl:template match="table/thead" />

      <xsl:template match="table/tr">
      <strong><xsl:value-of select="td[1]"/></strong>


      </cfsilent><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      " http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      <html xmlns=" http://www.w3.org/1999/xhtml">
      <meta http-equiv="Content-Type" content="text/html;
      charset=utf-8" />
      <title>XSLT Fun</title>