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

Re: Calling xsl stylesheet from a css stylesheet file

Subject: Re: Calling xsl stylesheet from a css stylesheet file
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Thu, 1 Dec 2005 10:04:39 -0600
stylesheet.css
On 12/1/05, mus47@xxxxxxxx <mus47@xxxxxxxx> wrote:
> Hi,
> I am tryin to call an xsl file from a css file using:
> @import "mystyle.xsl";
> but it didn't work. Is there any way to do that.
> Thanks.

How do you picture this working?  Would the xslt stylesheet be
imported, process whatever html page is calling the css sytlesheet,
then the css stylesheet would apply it?

I think you are confused with some basic principles of how css and
xslt are applied.  CSS typically just gives formatting instructions to
a browser or processor of how a document is to appear.  XSL works by
transforming the document into another.  I have seen those comparing
CSS to XSL by talking about both XSLT and XSL-FO.  The XSL process is
to convert XML into an inbetween format called XSL-FO via an XSLT
stylesheet.  There is then a processor which can take the visual
formatting described in XSL-FO (which shares it's origin with CSS) and
use it to render the document or convert it into another format
(typically a binary one or a complex one like pdf).  Most browsers
will do a transformation on an XML document via a processing
instruction, and apply a CSS stylesheet via a linking mechanism.



Jon Gorman

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.