ai*@datawright.co.uk (Imran) wrote:
What I/my friend actually require is the ability to include hyperlinks
(<a href...>) within an external stylesheet. For example, I want to
be able to declare an image in a stylesheet and set it as a hyperlink,
without the need for using <a href...> within the HTML source. Is
this possible? Thanks.
Unfortunately, no. The situation is very political.
The best you will get is using:
<a id="oz" href="oz.xml"> </a>
#oz {
background-image: dorothy.jpg;
width: ;
height: ;}
But you are wishing for:
<anyElementType id="oz"/>
#oz {
background-image: dorothy.jpg;
linkto: oz.xml;
width: ;
height: ;}
Aren't you?
The W3C realize that if linking is controlled by CSS (which it should
be, since almost all other aspects of implementation are), XML will
become useful in mainstream websites and they will lose control of
defining markup "standards". That is, the scope of W3C's mandate will
be reduced to CSS and *only* CSS. The "pointy brackets for everything"
crowd put a fair amount of effort into arguing against the
implementation of "CLINK", while pushing their XLINK enigma.
They also disliked CSS when it started and said it would be only one
of a number of stylesheet languages. Ask a question about XSL here,
and see how much interest there is in trying to write stylesheets with
pointy brackets.
--
Karl Smith.