cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@init.se
Subject <xsp:pi> question
Date Sat, 13 Jan 2001 14:13:13 GMT
Hi All!


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

Ive 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

Mime
View raw message