Re: How to tell the browser that <A> is a link. (nested was: Functional notations)

In a fit of wild imagination, I composed:
>>   ACRONYM.W3C { personality: hyperlink;
>>                 href: url(http://www.w3.org/); }
>>
>>   Visit the <ACRONYM CLASS=W3C>W3C</ACRONYM> web
>>   site for all the answers.


And Daniel did answer:
>Right. Does it mean you can define let's say the SPROTCH element in a XML
document
>with no attribute list and say _through CSS 2_ it should act as a hyperlink
?

That's the idea (but I would say CSS3). Although SPROTCH would then be an
element of limited use, to be fair! using

   <!ATTLIST SPROTCH  uri  >

and

   SPROTCH { personality: hyperlink;
             href: attr(uri); }

would be much more useful (pardon the glaring errors in my pseudo XML DTD
thing here, I've only skimmed the XML spec).

>Hmmm. Is it really the purpose of a **Style** Sheet ?

I would say, yes.

Well let's see. Is there any way whatsoever of defining which element is a
link and which attribute defines the URI in XML or even SGML? Is there a way
of saying that <INPUT TYPE=checkbox> is a checkbox?

I am firmly of the opinion that this is very much within the scope of CSS
(3). At least as much within it's scope as counters and generated content
are within CSS2's scope (which I admit there could be some doubt about).

Anyone?
--
Ian Hickson
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12   Info: www.geekcode.com
GIT/M/S d->-- s+: a--->? C++(+++)>$ U>*++++ P L+>+++++ E(+)>+++ W+++ N(+) o?
K? w@ O- !M V- PS+ PE- Y+ PGP>+ t 5+++>++++ X- R+(+++) tv b++(+++) DI++
D++(---)>++++ G>+++ e(*)>+++++ h!()(--) !r y?
------END GEEK CODE BLOCK------

Received on Monday, 20 April 1998 17:33:45 UTC