Subject: Re: [xsl] CSS and XSLT, again From: "Michael Beddow" <mbnospam@xxxxxxxxxxx> Date: Mon, 5 Feb 2001 20:28:37 -0000 |
Monday, February 05, 2001 7:25 PM Shimon Pozin wrote: > I have a problem with linking css file with xsl file during > transformation. I cannot reference the css file since the final > transfored xml to be sent by email and style must be embedded into > transformed html file. [...] > Any ideas on how to accomplish this? Since you can't send a linked css file as well, why don't you just write out the css styles into the head of the html document as you generate it? Here's a shortened example I've just cut from an old sheet of mine: <xsl:template match="document"> <html> <head> <title><xsl:apply-templates select="//front//title/text()"/></title> <!-- css styles --> <style type="text/css"> body { background-color: #FFFFCC; text-align: justify;} p { font-family: "Times New Roman", Times, serif; font-size: 13pt; font-style: normal; padding-left: 24pt; padding-right: 48pt} h2 h3 h4 { padding-right: 48pt;} li { font-family: "Times New Roman", Times, serif; font-size: 12pt;padding-right: 48pt;text-align: left; list-style-image: none; list-style-type: none} </style> <!-- End of css styles --> </head> Whatever else you need goes here <xsl:template/> etc etc Michael ------------------------------------------ Michael Beddow http://www.mbeddow.net/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] CSS and XSLT, again, Shimon Pozin | Thread | RE: [xsl] CSS and XSLT, again, Shimon Pozin |
RE: [xsl] Convert String to (node-s, mxmodi | Date | RE: [xsl] CSS and XSLT, again, Shimon Pozin |
Month |