Re: Substitutions for site/path in SRC,HREF

I think you can use CURIEs (W3C spec) for something like this (to 
shorten URIs with a common prefix). Also, XML Base (another W3C spec) 
would cover yet another number of use cases. And for the remaining use 
cases, I think maybe the better solution would be to look at how the 
directory structure and file locations are set up instead of adding 
stuff to HTML, because it’s likely an indicator that something’s wrong 
with that.

So I’m not really very enthusiastic about this.


~Grauw

Dmitry Turin schreef:
> Values of several attributes SRC and HREF can have identical part
> (for example, name of site, or path to directory),
> but it's impossible to specify value of this part in css-file (and in STYLE-element)
> as because SRC and HREF are not properies,
> as because css-file (and STYLE-element) can define only _whole_ value
> instead of part of value.
>
> I offer to enter _substitutions_ like the following
> ($site$, $path$, $location$, $site_and_path$ are substitutions).
> Because SRC and HREF are attributes,
> i suggest to use not css-file or STYLE-element, but to use sbs-file or SBS-element
>
> <html>
>   <head>
>   </head>
>   <sbs>
>     site:          site.net;
>     path:          folder1/folder2;
>     location:      dirA/dirB/dirC/dirD/dirE;
>     site_and_path: site.com/dir1/dir2/dir3;
>   </sbs>
>   <body>
>     <link href="$site$/$path$/filename.txt">
>     <img  src= "/$location$/filename.jpg">
>     <a    href="$site_and_path$/filename.htm">
>   </body>
> </html>
>
> <html>
>   <head>
>     <link src=./filename.txt type="text/sbs" rel="substitution">
>   </head>
>   <body>
>     <link href="$site$/$path$/filename.txt">
>     <img  src= "/$location$/filename.jpg">
>     <a    href="$site_and_path$/filename.htm">
>   </body>
> </html>
>
>
> Dmitry Turin
> http://html6.by.ru
> http://sql4.by.ru
> http://computer2.by.ru
>
>
>   


-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.

Received on Thursday, 31 May 2007 08:24:42 UTC