|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: addParameter method and MSXML
>My brain's getting mildew, would you have a moment to look at
>below code and see if anything wrong jumps out at you? I seem to
>get confused with the part where I create the XSL processor and feed it..
Yeah there are several problems with the code you posted, I've shown the
one's I've seen below.
<cfobject type="com"
action="create"
class="MSXML2.XSLTemplate"
name="XSLTinput">
Shouldnt that be XSLTemplate?
<cfset XSLTemplate.stylesheet = "XSLinput">
This should fail because as just mentioned XSLTemplate doesnt exist, the
above should be changed to XSLTinput, or the MSXML2.XSLTemplate creation
changed to XSLTemplate. Also does ColdFusion need the " " round variables?
That to me (From a VB/ASP perspective as assign stylesheet with the string
value "XSLinput").
<cfobject type="com"
action="create"
class="MSXML2.DOMDocument"
name="XMLinput">
You may want to change that MSXML2.DOMDocument to a free threaded one, MSXML
doesnt like mixing and matching threading models.
<cfset XSLProcessor = XSLTemplate.createProcessor>
As said before this will fail because XSLTemplate doesnt exist.
<cfset result = XSLProcessor.transformNode("XSLinput")>
That should be XSLProcessor.transform
Hope this helps
Jen
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








