You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Allen <ho...@dial.pipex.com> on 2001/04/12 10:40:40 UTC

Calling Stylesheet using Parameter

I apologize if this question is covered elsewhere but I cannot get it to
work. The faq example appears to be incomplete.
I am trying to open a stylesheet by passing a parameter as follows:

<A HREF="http://.../page.xml?stylesheet=http://.../style.xsl">
and then using xsp as follows in the file page.xml:

<?xml version="1.0" encoding="UTF-8"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
xmlns:request="http://www.apache.org/1999/XSP/Request">
	<xsp:pi target="xml-stylesheet">
  href="<xsp:expr>request.getQueryString("stylesheet")</xsp:expr>"
  type="text/xsl" media="explorer"</xsp:pi>
....
</xsp:page>
I have tried many variations on this theme without success. Can anyone
help with syntax that works?
David Allen

-- 
International Press Telecommunications Council
Working to improve the efficiency of News exchange.
Visit our Web Site at  http://www.iptc.org

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>