Posted by David Dorward on 11/25/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
[Back to original message]
|