Re: ALIAS tag?

One big difference of using the element Juan
rather than <DIV class="Juan"> is that the latter is 
backward compatible with all browsers and the first 
with almost none (of the existing ones).

XML was not invented to save typing. It was invented 
to convey information that can not be conveyed by HTML.

If a document conveys text in a human language, HTML
(with or without additional sylesheets) can do fine,
at least for the example below.

Regards,
Nir Dagan.

> 
> Hi all,
> 
> I have been thinking that many of the new tags we could add to the HTML4
> DTD can be managed by using class and/or rel attributes which most tags
> now support.
> 
> I think it would be nice an ALIAS tag which would allow us to simplify
> writing and which UA's would expand on the fly when display the documents.
> 
> One of its many implementations could be
> 
> <alias name="Juan" content="div class='juan'">
> 
> The use on the document would be:
> 
> <html><head>
> <title>Theater play...</title>
> <alias name="Juan" content="div class='Juan'" lang="es">
> <alias name="Pedro" content="div class='Pedro'" lang="es">
> 
> <style type="text/css">
>         body { background: white; }
> 	Juan { font-style: italic; color: green; }
>         Pedro { font-style: normal; color: blue; }
>         ...
> </style>
> 
> <body lang="en">
> 
> <h1>Act 1</h1>
> 
> <Juan>Hey, <span lang="es">Pedro</span>, how you doing?</Juan>
> 
> <Pedro>Doing fine, thanks. What about you, <span
> lang="es">Juan</span>?</Pedro>
> 
> ...
> </body>
> </html>
> 
> 
> Obviously all </Alias-name> would be equivalent to </div>
> 
> This method could provide powerful structural markup to HTML documents
> without the need of modifying the DTD, also allowing full use of Style
> Sheets instead of hardwired style markup. 
> 
> 
> Well, just my thoughts,
> David@
> 
> --
> <sig><who>David Su&aacute;rez de Lis
> <url>mailto:akira@fantasia.usc.es
> <where>University of Santiago de Compostela, SPAIN, EU
> </sig>
> 
> 

Received on Friday, 24 April 1998 09:18:52 UTC