XSLT - createTransform()

Post Reply
lohbrand
Newbie
Posts: 14
Joined: Thu Feb 02, 2012 8:41 pm

XSLT - createTransform()

Post 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
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

XSLT - createTransform()

Post by dkelly »

I posted an example of XSLT Transform on this forum earlier this year.
lohbrand
Newbie
Posts: 14
Joined: Thu Feb 02, 2012 8:41 pm

XSLT - createTransform()

Post 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
lohbrand
Newbie
Posts: 14
Joined: Thu Feb 02, 2012 8:41 pm

XSLT - createTransform()

Post 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
rzacherl
Member
Posts: 36
Joined: Mon Mar 21, 2011 3:29 pm

XSLT - createTransform()

Post 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
lohbrand
Newbie
Posts: 14
Joined: Thu Feb 02, 2012 8:41 pm

XSLT - createTransform()

Post by lohbrand »

Can we close, the update fix the problem.
Post Reply