Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Calling xsl stylesheet from a css stylesheet file

From: Jon Gorman <jonathan.gorman@--------->
To:
Date: 12/1/2005 4:05:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent