CSS and XML

  • nlbrt
  • Born
  • Born
  • No Avatar
  • Joined: Apr 13, 2008
  • Posts: 1
  • Status: Offline

Post April 14th, 2008, 2:37 pm

Hi All,

forgive me if this is a silly question, but i'm not too sure how to do this without reading through a whole XML tutorial

I have a site (very small one) that is in html and uses CSS. I need to convert this site to XML (don't ask why). Now, could I just slap the CSS in the XML page as is or would it need to be different?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 14th, 2008, 2:37 pm

  • spork
  • HB
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 5479
  • Loc: Rochester, NY
  • Status: Online

Post April 14th, 2008, 5:01 pm

Do you mean XHTML? That's simply a matter of using the correct DOCTYPE and getting rid of deprecated tags/attributes.
How to Maintain Simple, Static Pages in a CakePHP Application
EEEEEEEEE! It's here!!

Post April 14th, 2008, 9:17 pm

your question in not correct. For converting site to xml you need to output all the contents on xml tags and no html tags. At the time of sending them to browser you can use that xml content to use with css or html tags.
  • Rabid Dog
  • Cheese Monkey
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3188
  • Loc: South Africa
  • Status: Offline

Post April 15th, 2008, 6:11 am

I would recommend using an XSL to display the XML as HTML.
My Software Development Company
Music I have recorded (fixed now :))
Image

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 113 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.