Forum Moderators: open

Message Too Old, No Replies

Rendering XML with CSS

how to create a html like document with xml and css

         

kunwarbs

7:25 pm on May 25, 2005 (gmt 0)

10+ Year Member



Hi,
i m a newbie to XML.
can anyone pls tell me how do I render a XML document with CSS and NOT using XSL.

Is it possible with XML and css to create a complete html like document containing graphics and links.

Please help

choster

4:09 am on May 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add a processing instruction pointing to the CSS at the top of the XML file, e.g.

<?xml-stylesheet type="text/css" href="mystylesheet.css"?>

Then you can set rules for the XML tags using the same syntax as you would for HTML tags.