[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: CSS and XSLT, again

Subject: RE: CSS and XSLT, again
From: Shimon Pozin <spozin@xxxxxxxxxxxxx>
Date: Mon, 5 Feb 2001 15:39:42 -0500
linking css to xslt
Yes, Michael, this is what I do (I actually load CSS file and include
its text in between <style>), but I thought this way is awkward. I thought
there is a way to "import" style into xsl file like "include" for asp
pages (if we are talking about IIS)

Thanks for the idea anyway,

Shimon

> -----Original Message-----
> From: Michael Beddow [mailto:mbnospam@xxxxxxxxxxx]
> Sent: Monday, February 05, 2001 3:29 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  CSS and XSLT, again
> 
> 
> 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
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.