Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Please Help! css and xsl

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 4/25/2009 9:39:00 AM
<jtmspam@g...> wrote in message 
news:49f252b7$0$31167$882e0bbb@n......
> How do I use css and xsl? In this code: I am using item.css:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>      xmlns:xs="http://www.w3.org/2001/XMLSchema"
>      exclude-result-prefixes="xs"
>      version="2.0">
>
> John

You seem to be somewhat confused about the interaction between XML, XSLT and 
CSS.
CSS can be used directly with XML but the more normal procedure is to 
transform the XML with XSLT to (X)HTML.
This HTML then uses CSS as part of its styling mechanism. For example you 
might create a div element with a class attribute of "important" you would 
also have a CSS selector defined:
.important
{
  color: #dd0000;
  font-size: 18pt;
}
Your XSLT would also make sure that a link to the relevant CSS file was 
included in the HTML.

If this is not what you need please post a full description of your problem, 
so far we've had half-a-dozen posts none of which give much information on 
your objectives or where you're struggling.

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name 



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