This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

How do I link a CSS with an XML document or can I change font and other attributes in a XSL?

I’m struggling to get my XML working if I want to attribute it to a CSS. Can you link a CSS to an XML, if so, where should you put the link.
OR can I change attributes in the XSL which I also have linked to it but at the moment it only has my table layout.
I don’t know if this makes sense!! Please help!

No related posts.

3 Comments

  1. dhvrm

    You use XSLT to convert your XML document to HTML, then you use CSS to control the layout in the resulting HTML document.

  2. Jake Cigar

    they go hand in hand! xsl to re-write the xml into valid xhtml/html. and then css to do the pretty work of formatting.

    A recipe I wrote in xml uses xsl with an external stylesheet and internal

  3. Node1499

    In the XSL, you can attach, import or put inline your CSS just like you would any other html page.
    You do not format your XML. Make your life even easier, and use an XSLT page.