How do I link a CSS with an XML document or can I change font and other attributes in a XSL?
Apr.10, 2008 in
CSS
Ali P asked:
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!
Custom Search
April 13th, 2008 at 12:08 am
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.
April 15th, 2008 at 12:17 pm
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 tags!
uses
which uses has the styles! (the external css file is currently empty on that site, I use it for the development site!)_
April 17th, 2008 at 7:06 am
You use XSLT to convert your XML document to HTML, then you use CSS to control the layout in the resulting HTML document.