CSS and XML

  • nlbrt
  • Born
  • Born
  • No Avatar
  • Joined: 13 Apr 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
  • Rotaredom
  • Silver Member
  • User avatar
  • Joined: 22 Sep 2003
  • Posts: 5289
  • Loc: Rochester, NY
  • Status: Offline

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.

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.
Thanks & Regards
Satya Prakash Karan
Web Tech
  • Rabid Dog
  • Cheese Monkey
  • Web Master
  • User avatar
  • Joined: 21 May 2004
  • Posts: 3090
  • Loc: South Africa
  • Status: Offline

Post April 15th, 2008, 6:11 am

I would recommend using an XSL to display the XML as HTML.

Post Information

  • Total Posts in this topic: 4 posts
  • Moderator: Moderator Team
  • 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.