James
That seems to work !!! the data has been written to the text file
Is it possible after the XML file has been converted to the text file
that a message would be displayed on screen to inform the user of
progress with a link to the text file created ?
At present it is just a blank screen, can this be achieved ?
--------------
<cffile action="upload"
filefield="UploadFile"
destination="#GetTempDirectory()#"
nameconflict="overwrite">
<cffile action="read"
file="#GetTempDirectory()##cffile.serverfile#"
variable="myxml">
<CFSET mystylesheet = ExpandPath("newparse.xsl")>
<!--- Read XSLT file into string variable called MyXsltCode--->
<CFFILE action="READ" file="#mystylesheet#" VARIABLE="MyXSLTCode">
<!--- Perform the XSLT --->
<CFSET TransformedXmlCode = XmlTransform(myxml, MyXSLTCode)>
<cffile action="WRITE" output="#TransformedXmlCode#"
file="\testpages\sample.txt">
-------------------------------------------
-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 February 2005 10:07
To: CF-Talk
Subject: RE: Strange XSLT errors with XMLTransform ?
Perhaps write the content of TransformedXmlCode to a file to examine it
and see what the error may be.
-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED]
Sent: Friday, 11 February 2005 5:52
To: CF-Talk
Subject: RE: Strange XSLT errors with XMLTransform ?
Just tried adding
<?xml version="1.0" encoding="UTF-8" ?>
To the top of the style sheet but still same error ?
Stylesheet
<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:apd="http://www.govtalk.gov.uk/people/AddressAndPersonalDetails">
<xsl:template match="/">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194216
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54