Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using XML+XSLT+CSS 1

Status
Not open for further replies.

JediDan

Programmer
May 15, 2002
128
US
Ok, I know there's several threads here about this, but I can't get it to work:

I have an XML file that references an XSLT stylesheet which turns the results into a sorted table (very simple). This part works fine.

I would like to further tweak the results by adding a reference to a CSS file so the sorted table results could be in a different font, color, etc.

Where do I put the link to the CSS file? In the XML? In the XSL file? I have tried just about everything I can think of, and none of it works.

IE 6.1 gives me errors when I try to put <link> or <style> elements right into the XSL.

Any ideas welcome.
 
Try this in the XSLT
Code:
<html>
<head>
<link .... />
</head>

-pete
 
OK. It's idiot-Thursday for me. I swear that I already tried that 7 times, but NOW... it works.

Thanks, Pete.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top