Page 1 of 1

XSLT - createTransform()

Posted: Mon May 21, 2012 1:48 pm
by lohbrand
Hello,



we have trouble whit the command createTransform.

In our script we create a xml-structure in a new created document and than we would transform this document into a new one, with the call:



var newDoc = XMLDoc.createTransform(xslDoc);

(the xslDoc comes from disk)



but we will become ever a crash.



Has anybody expirence whit this command?



Thanks

Lohbrandt

XSLT - createTransform()

Posted: Mon May 21, 2012 3:04 pm
by dkelly
I posted an example of XSLT Transform on this forum earlier this year.

XSLT - createTransform()

Posted: Mon May 21, 2012 3:59 pm
by lohbrand
Thanks,

you post a sample without script (?), … what i found was the sample whit the xslt-element in switch. We would use a script command.



Lohbrandt

XSLT - createTransform()

Posted: Wed May 30, 2012 2:03 pm
by lohbrand
Now we have updated to the new Version, it is the same error.

The Scripter say godbye if you enter the command createTransform();





Lohbrandt

XSLT - createTransform()

Posted: Thu May 31, 2012 8:28 am
by rzacherl
Hello Mr Lohbrandt,



it's a known issue of the scripting API and will get fixed in one of the coming Switch update version.

At the moment there's no workaround available besides using a different XSLT processor like e.g. Saxon which can be controlled via a "Execute command" flow element or a custom script element. We have such a Saxon script element available (also an Apache FOP script element which allows XSL-FO).



Regards,



Robert

XSLT - createTransform()

Posted: Wed Jul 04, 2012 2:24 pm
by lohbrand
Can we close, the update fix the problem.