You are here: Re: How to create custom XHTML tag? « HTML « IT news, forums, messages
Re: How to create custom XHTML tag?

Posted by David Dorward on 10/31/44 11:47

janecki@gmail.com wrote:
> I want to create a custom XHTML tag.

You can't. XHTML is a defined set of elements. You can create your own XML
language and (with namespaces) mix it with XHTML, but browser support is
weak, and you won't get any semantics from the extra elements recognised by
user agents.

> 1) I have something like this:
> <table>
> <tr> <td> TITLE </td> </tr>
> <tr> <td> MESSAGE </td></tr>
> </table>

A one by two table? This shouts "Abusing tables for layout". You should
probably read http://allmyfaqs.net/faq.pl?Tableless_layouts

> 2) After creating new tag:
> <window title="TITLE">MESSAGE</window>

Well, you could create your own XML format to store your data in the form
you like, and then use XSLT to transform it into (X)HTML (preferably on the
server).

I've done very little with XSLT, but have started reading
http://www.oreilly.com/catalog/learnxslt/index.html - and it seems decent
enough.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация