Skip to main content
1-Visitor
June 26, 2013
Question

PE says "composer 'XSL' not installed on PE server

  • June 26, 2013
  • 5 replies
  • 1343 views
When I submit the job non interactively. If I choose File > Publish > Using
XSL it works fine.

The compose::compose_for_type() works if peservices=off.

What am I forgetting?

Here's the actual code:
# $myparams["stylesheet"]="C:/custom/doctypes/mytype/createlinkbase.xsl";
$myparams["stylesheet"]="E:/Program Files/PTC/Arbortext
PE/custom/doctypes/mytype/createlinkbase.xsl";
$myparams["outputFile"]= "C:/linkbases/linkbase.xml";;
type = "XSL";
interactive = 0;linkbase_success = compose::compose_for_type(current_doc(),
$type, $interactive, $myparams)

The commented stylesheet line works when peservices=off. The uncommented
stylesheet line fails when peservices=on. The error:

ERROR Error: composer 'XSL' not installed on PE server

--
Paul Nagai

    5 replies

    18-Opal
    June 26, 2013
    Hi Paul--

    Set type to "xsl" instead of "XSL" and see if that makes a difference. Maybe PE is being moody because it thinks you're shouting at it. 🙂

    --Clay
    naglists1-VisitorAuthor
    1-Visitor
    June 26, 2013
    I tried that. PE returned a syntax error.


    naglists1-VisitorAuthor
    1-Visitor
    June 26, 2013
    If I run it peservices=off, I can use "XSL" or "xsl". If I use a "bad"
    stylesheet, it errors (this is peservices=off) and mentions the path to the
    XSL.ccf in Editor's ..composer folder. PE has that file and folder too
    albeit in a slightly different path.


    18-Opal
    June 26, 2013
    Maybe try calling compose::compose_using_xsl(doc, params) instead of compose::compose_for_type()?
    naglists1-VisitorAuthor
    1-Visitor
    June 26, 2013
    That's what I'm talking about ...

    Thanks, Clay.