You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ja...@init.se on 2001/01/13 15:13:13 UTC

question

Hi All!


How do you dynamically create an xml-stylesheet - processing instruction 
using XSP.

I�ve tried the approach :

<xsp:page>
<xsp:logic>
  <xsp:pi target="xml-stylesheet">
    href="<xsp:expr>request.getParameter("param")</xsp:expr>"
    type="text/xsl"
  </xsp:pi>
</xsp:logic>

<rootofxmldoc>
...
</rootofxmldoc>
</xsp:page>

which yields an error involving document.createProcessingInstruction().
I figured that maybe the compiled producer is trying to make this call
on class level instead of within a method.
Is that correct and in that case how do you avoid it, or have i forgotten to 
escape the quotes or someting else?

Thanks In Advance

*/jakob