- From: Elliott Sprehn <esprehn@gmail.com>
- Date: Fri, 18 May 2007 12:30:24 -0400
- To: Dão Gottwald <dao@design-noir.de>
- Cc: Dmitry Turin <html60@narod.ru>, public-html@w3.org
- Message-Id: <BD6CED14-5914-486B-8CDA-FB50A95D676D@gmail.com>
I don't think discussing new features for CSS is within the scope of this group though. - Elliott On May 18, 2007, at 9:30 AM, Dão Gottwald wrote: > > Dmitry, you tend to invent whole new sub- and super-languages in > your proposals. Please try to stick with the markup language and > DOM patterns as we know them today. > > I do think it should be possible to define and reuse variables / > within/ style sheets, e.g. for repeating colors, file paths etc.. > Your example, on the other hand, shows what can be substituted on > the server side. > > --Dao > > Dmitry Turin schrieb: >> 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 > >
Received on Friday, 18 May 2007 16:30:34 UTC