[thelist] SSI if/include/css

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Tue Jan 23 12:12:31 CST 2001


Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------

Jeana

I do printable formats with XSSI & stylesheets (I swap a few other
bits out too), testing for the querystring of ?printable.

Here's how:
<!--#if expr="$QUERY_STRING = 'printable'" -->

   <link rel="stylesheet" href="/resources/print.css" />
   </head>
   <body>
      <table border="0" width="90%" class="cookie">
        <tr class="cookie" >
            <td>
                 You are here: <a href="/" class="crumb">easyweb.co.uk</a>

<!--#else -->
<!--#include virtual="/resources/top2.fhtml" -->
<!--#endif -->

(I actually use an include for the printable bits, but wanted to expand it to
make it clear).

So actually, it's setting the stylesheet from an SSI variable, not the other
way round. Remember that the includes are parsed and included long before
it gets to anything which might understand the stylesheet.

Cheers
Martin




Please respond to thelist at lists.evolt.org
To:   thelist at lists.evolt.org
cc:


Subject:  [thelist] SSI if/include/css




I'm wanting to load certain fragment files based on the stylesheet that is
loaded... I know you can set variables, and then <!--#if expr="(insert
variable here)=">  blah blah blah and on and on..

but the Variables seem limited to date, time, browser, screen res, and a
few others...   Is it possible for me to set a variable name to the style
sheet that's loaded?  I have no idea if i'm making sense? or if there
might be a better way to go about it.



--------------------- End of message text --------------------

The principal place of business of PricewaterhouseCoopers and its associate
partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
partners' names are available for inspection. All partners in the associate
partnerships are authorised to conduct business as agents of, and all
contracts for services to clients are with, PricewaterhouseCoopers. The UK
firm of PricewaterhouseCoopers is authorised by the Institute of Chartered
Accountants in England and Wales to carry on investment business.
PricewaterhouseCoopers is a member of the world-wide
PricewaterhouseCoopers organisation.
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.  Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited.   If you received this in error, please
contact the sender and delete the material from any computer.






More information about the thelist mailing list