W3C home > Mailing lists > Public > www-style@w3.org > November 2005

Re: Why Binding Scripting in Style Layer Conflates Semantics

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Thu, 24 Nov 2005 09:17:49 -0800
Message-ID: <006001c5f11b$018324b0$3201a8c0@Terra>
To: <shelby@coolpage.com>, <www-style@w3.org>


----- Original Message ----- 
From: "Shelby Moore" <shelby@coolpage.com>
> 
> Andrew Fedoniouk wrote:
>> I didn't find anything there about "graceful fallback" .
> [snip]
>> To be able to do any fallback UA must be told about class and base class
>> of the <mapselect>.
> 
> I gave the answer already in my previous post:
> 
> <select
>  xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
>  xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
>  x:Class="MyNamespace.MapSelect">
> </select>
> 
> Above you have <select> that has been subclassed into
> x:Class="MyNamespace.MapSelect".
> 
> The code is implemented in .Net (C# example) as:
> 
> namespace MyNamespace
> {
>  class MapSelect : select
>  {...}
> }
> 
> I am not sure if .Net has classes for (x)HTML tags yet, but this above is
> for architectural point.
> 

As I understand you proposal is to put 
element class information into element attributes. 
Sounds good, but immidiately causing the next question:

Let's say we have following:

<select
    xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
    xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
    x:Class="MyNamespace.MapSelect">
</select>

>From practical implementation point of view having defined
 x:Class="MyNamespace.MapSelect" is not enough as this
does not tell me what is the superclass of MyNamespace.MapSelect.

So practically we need here:
<select
    x:Class="MyNamespace.MapSelect"
    x:SuperClass="MyNamespace.Select"
    x:SuperSuperClass="MyNamespace.Widget"  >
</select>

<p
    x:Class="MyNamespace.FancyParagraph"
    x:SuperClass="MyNamespace.Paragraph"
    x:SuperSuperClass="MyNamespace.TextBlock"  >
</p>

This is not practical at least. In real life 
scenario such inheritance information will be
placed in some document describing
inheritance graph of the system of classes.

Thus we are getting external class graph sheet.

And at this point my question is:

Why it is better in principle than style sheets
describing representational (and probably behavioral)
styles?

Thanks,

Andrew Fedoniouk.
http://terrainformatica.com
Received on Thursday, 24 November 2005 17:18:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT