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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

define CSS for xsl file in header

Status
Not open for further replies.

shaygan

Programmer
Feb 19, 2005
12
DE
i generate dynamic xsl in a servlet and
because i wont to write in
each table cell a <p><font size="2" face="Aial">
i will to define something like a
CSS in the header :
psxsl.println("<?xml version='1.0'?> <xsl:stylesheet version=\"1.0\" " +
"xmlns:xsl=\" " <xsl:eek:utput method=\"html\"/>"+
" <xsl:template match=\"/\">" );
psxsl.println("<!-- body{font-family:Arial; font-size:10pt;color:green;}");
psxsl.println("<td> {font-family:Arial; font-size:10pt;color:green;}");
psxsl.println("<hr/> {color:red;}");
psxsl.println("--> </style>");

psxsl.println("</head><body>");





unfortunately has this code no effect!!!!!!
i 'm appreciated, if somebody tell me a correct
way to do that!!
thanks
 

Inline styles take this form:
Code:
<html>
  <head>
    <title></title>
    <style type="text/css">
body {font-family: Arial; font-size: 10pt; color: green;}
td {font-family: Arial; font-size: 10pt; color: green;}
hr {color: red;}
    </style>
  </head>
  <body></body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top