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.

<body>
   <?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">
    <div>
        <strong><xsl:value-of select="td[1]"/></strong>
    </div>
    </xsl:template>

</xsl:stylesheet>
</cfsavecontent>

</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";>
    <head>
        <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />
        <title>XSLT Fun</title>
    </head>

    <body>
        <cfoutput>#xmlTransform(skillsXML,displayXSL)#</cfoutput>
    </body>
</html>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311716
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to