XSL style sheet, including CSS

Post Reply
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

XSL style sheet, including CSS

Post by jgdoke »

We have a company wide style sheet we use. I do not with to duplicate it in the XSL. What is the syntax to include it?? this is how we do it with html.


<link type="text/css" rel="stylesheet" media="screen" href="http://our.server.com/lib/css/rastyles_screen.css">
<link type="text/css" rel="stylesheet" media="print" href="http://our.server.com/lib/css/rastyles_print.css">

The print one just kills the <div>'s for left menu. No need for that one as most do not print the search results..

Thanks
John
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

XSL style sheet, including CSS

Post by jason112 »

You include CSS in XSL exactly the same as with normal HTML. <link> elements that occur in the XSL are treated just like all other HTML elements like <body>, <p>, etc: outputted directly.

Is this not the behavior you're seeing?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

XSL style sheet, including CSS

Post by John »

For the XSL you do need to close the tag, either with </link> or <link ... />
John Turnbull
Thunderstone Software
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

XSL style sheet, including CSS

Post by jgdoke »

Today it works... last night it did not.
Thanks and sorry..

John
Post Reply