> I now believe both CFX_XSLT tag and MM's XmlTranform tag work, it's just that late last night, sort of new to this thing + late night (couldn't think straight), the URL I was using last night was invalid, and I failed to debug to see if the CFHTTP call is successful.
>
> Now,
>
> CF script (url.releaseID value is given by a previous link, which is ok)
> <cfhttp URL=""> >
> <cffile action="" file="C:\intel\wrt\ccbn\xsl\PressReleaseText.xsl" variable="ccbnxsl">
>
> debug:<br>
> <cfoutput>Length of raw data: #Len(cfhttp.FileContent)# <p>
> raw data:<br>
> #cfhttp.FileContent#
> </cfoutput>
> <p>
> xml transformed HTML output below:<br>
> <cfoutput>"#xmltransform(cfhttp.FileContent,ccbnxsl)#"</cfoutput>
Careful here you might want to trim() the file, and I think (depending on your version of MX)
you have to xmltransform(XMLParse(cfhttp.FileContent),ccbnxsl)
> XSL file:
> <!--'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> INCLUDES
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
> <xsl:include href=""> >
> <!--'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> OUTPUT MEHTOD
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
> <xsl:output method="html" omit-xml-declaration="yes" indent="yes" standalone="no"/>
>
> <!--''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> MAIN TEMPLATE
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
> <xsl:template match="/">
> <xsl:call-template name="GeneratePressReleaseText"/> <!--page-level template-->
> </xsl:template>
>
> <!--'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
> <xsl:template name="GeneratePressReleaseText">
> <table width="100%" border="0" cellpadding="3" cellspacing="1">
> <tr class="modBgTblTtl">
> <td valign="top" class="modTblTtl"><xsl:value-of select="/*/NewsReleaseText/Title"/></td>
> </tr>
> <tr class="">
> <td valign="top" width="100%" class="modBodyText"><xsl:value-of select="/*/NewsReleaseText/ReleaseText" disable-output-escaping="yes"/></td>
> </tr>
> </table>
> </xsl:template>
>
> <!--'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
> </xsl:stylesheet>
If this is the full XSL file, then you are correct, the file is broken.
It's not a full XML document.
>
> UA Results:
> IE6 failed to dispaly, Netscape6 display cfhttp call raw data, but xml transformed HTML nothing
>
> I sort of suspect the XSL file is culprit. Further thought? Thanks.
Try this just to see if all is well. I am just writing this so there
might be errors (I have not run it through cf)
<!--- basic xslt --->
<!--- note the <? must be the first thing in the file / variable --->
<cfsavecontent variable="xmlinput"><?xml version="1.0"
encoding="UTF-8"?>
<test>
<message>Eat at joes!</message>
</test>
</cfsavecontent>
<!--- note the <? must be the first thing in the file / variable --->
<cfsavecontent variable="xsltinput"><?xml version="1.0"
encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="UTF-8"/>
<xsl:template match="/">
<h2><xsl:value-of select="/test/message" /></h2>
</xsl:template>
</xsl:stylesheet>
</cfsavecontent>
<cfdump var="#xmlinput#">
<cfdump var="#xsltinput#">
<!--- try both of these --->
<cfdump var="#XmlTransform(XmlParse(xmlinput),xsltinput)#">
<!--- <cfdump var="#XmlTransform(xmlinput,xsltinput)#"> --->
<!--- basic xslt --->
--
Vale,
Rob
Luxuria immodica insaniam creat.
Sanam formam viatae conservate!
http://www.rohanclan.com
http://treebeard.sourceforge.net
http://ashpool.sourceforge.net
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

