cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Smith <M.Sm...@secureinteractive.com>
Subject RE: Invoking differennt Stylesheets fro the same XML document
Date Mon, 27 Nov 2000 07:50:07 GMT
Instead of hardcoding an <?xml-stylesheet?> attribute at the top of the
page, you can use the following XSP tag to write one at runtime:
 
<xsp:pi target="xml-stylesheet">
  href="<xsp:expr>xsl</xsp:expr>"
  type="text/xsl"
</xsp:pi>
 
In this example, "xsl" is a Java variable which has been calculated earlier
in the document, and just contains a url (eg: "mystylesheet.xsl").  This tag
can go anywhere inside your root element.



-----Original Message-----
From: Radha Vijayaraghavan [mailto:radha_vijayaraghavan@yahoo.com]
Sent: Monday, 27 November 2000 4:46 PM
To: cocoon-users@xml.apache.org
Subject: Invoking differennt Stylesheets fro the same XML document

Hi all
Could you please tell me how to invoke different
stylesheets for the same XML document, the user is
provided with a set of links all of which lead to
different parts of the same document. How is it
possible to call different stylesheets on going to
different links. All the stylesheets are for the same
document.
Thanks a lot
Girija

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message