List Info

Thread: Expressions in DISelect versus MQ




Expressions in DISelect versus MQ
user name
2006-05-16 15:26:27
Hi,

It seems like the subset defined in  
http://www.w3.org/TR/2005/WD-cselection-2005050
2/#sec-expressions matches  
Media Queries http://www.w3.org/TR/2002/CR-css3-mediaqueries-20020708/
  
pretty closely except for the `di-cssmq-` prefix/namespace.
What would the  
problem with having a (global) attribute that takes a media
query like  
media="" in XHTML 2.0 (it currently only takes a
CSS 2.0 medium I believe).

Cheers,

Anne


-- 
Anne van Kesteren
<http://annevankesteren
.nl/>
<http://www.opera.com/>


Expressions in DISelect versus MQ
user name
2006-05-17 09:37:19
Hi Anne,

"Anne van Kesteren" <annevkopera.com> writes:

> It seems like the subset defined in
> http://www.w3.org/TR/2005/WD-cselection-2005050
2/#sec-expressions
> matches  Media Queries
> http://www.w3.org/TR/2002/CR-css3-mediaqueries-20020708/
  pretty
> closely except for the `di-cssmq-` prefix/namespace.
What would the
> problem with having a (global) attribute that takes a
media query like
> media="" in XHTML 2.0 (it currently only
takes a CSS 2.0 medium I
> believe).

You've almost answered your own question: the media
attribute in
XHTML2.0 _only_ takes a CSS2 media type (aural, braille,
etc.).

That wasn't enough for the people who designed DIAL, and
that's why the expr
attribute from DISelect allows complex XPath epxressions.

Now, if media accepted the same sort of expressions, there
would be a
significant overlap which we'd have to sort out somehow,
but at this time
the functionality offered by DISelect goes far beyond that
of XHTML2's media.

Cheers,

Max.

Expressions in DISelect versus MQ
user name
2006-05-17 10:02:02
* Max Froumentin wrote:
>You've almost answered your own question: the media
attribute in
>XHTML2.0 _only_ takes a CSS2 media type (aural, braille,
etc.).

That sounds contrary to (member-only)

  http://lists.w3.org/Archives/Member/w3c-html-cg/2
004JulSep/0007

Could you elaborate on why you think a hypothetical XHTML
2.0 Recommendation would have such a major design flaw?
-- 
Björn Höhrmann · mailto:bjoernhoehrmann.de · http://bjoern.hoehrmann.de

Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de

68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Expressions in DISelect versus MQ
user name
2006-05-17 10:09:51
Bjoern Hoehrmann <derhoermigmx.net> writes:

> * Max Froumentin wrote:
>>You've almost answered your own question: the media
attribute in
>>XHTML2.0 _only_ takes a CSS2 media type (aural,
braille, etc.).

> That sounds contrary to (member-only)

>   http://lists.w3.org/Archives/Member/w3c-html-cg/2
004JulSep/0007

> Could you elaborate on why you think a hypothetical
XHTML
> 2.0 Recommendation would have such a major design flaw?

I don't think I said there was a flaw anywhere. I'm just
reading the
latest public XHTML2 specification. 

Max.

Expressions in DISelect versus MQ
user name
2006-05-17 12:18:03
On Wed, 17 May 2006 11:37:19 +0200, Max Froumentin
<mfw3.org> wrote:
> You've almost answered your own question: the media
attribute in
> XHTML2.0 _only_ takes a CSS2 media type (aural,
braille, etc.).
>
> That wasn't enough for the people who designed DIAL,
and that's why the  
> expr attribute from DISelect allows complex XPath
epxressions.

Well, instead of inventing new things you could give
comments (or ask) to  
the HTML WG regarding this. In the end I think, if XHTML 2.0
ever ends up  
being implemented, you would like to support media queries
there. Just  
like media queries currently extends HTML4 in some way.

The DI WG could also introduce an attribute similar to
media="" which does  
accept a media query.


-- 
Anne van Kesteren
<http://annevankesteren
.nl/>
<http://www.opera.com/>


Expressions in DISelect versus MQ
user name
2006-05-17 13:18:13
"Anne van Kesteren" <annevkopera.com> writes:

> On Wed, 17 May 2006 11:37:19 +0200, Max Froumentin
<mfw3.org> wrote:
>> You've almost answered your own question: the
media attribute in
>> XHTML2.0 _only_ takes a CSS2 media type (aural,
braille, etc.).
>>
>> That wasn't enough for the people who designed
DIAL, and that's why
>> the expr attribute from DISelect allows complex
XPath epxressions.

> Well, instead of inventing new things you could give
comments (or ask)
> to the HTML WG regarding this. 

Discussions with the HTML WG, date back from 2003. See 
<http://lists.w3.org/Archives/Member/w3c-
html-cg/2003AprJun/0061.html>
for instance, (HCG, member only). 

> In the end I think, if XHTML 2.0 ever ends up being
implemented, you
> would like to support media queries there. Just like
media queries
> currently extends HTML4 in some way.

I agree that this is an important topic, which has already
been the subject of
discussions between the CSS and DI groups (see
<http://lists.w3.org/Archives/Member/w3c-c
ss-wg/2006JanMar/0250.html>).

> The DI WG could also introduce an attribute similar to
media="" which
> does accept a media query.

Yes, or they could just import media in DIAL. I don't how
sel:expr and
media would interact when used together but it may make
sense to allow
both (in different places).

The problem is the simplicity of media queries versus the
power of
XPath, of course.  And also the speed of deployment: at the
moment,
XHTML2 doesn't have the power that device independent
content authors
require. And they want something quickly.

Max.

Expressions in DISelect versus MQ
user name
2006-05-26 18:05:00
On Wed, 17 May 2006 15:18:13 +0200, Max Froumentin
<mfw3.org> wrote:
>>> You've almost answered your own question: the
media attribute in
>>> XHTML2.0 _only_ takes a CSS2 media type (aural,
braille, etc.).
>>>
>>> That wasn't enough for the people who designed
DIAL, and that's why
>>> the expr attribute from DISelect allows complex
XPath epxressions.
>>
>> Well, instead of inventing new things you could
give comments (or ask)
>> to the HTML WG regarding this.
>
> Discussions with the HTML WG, date back from 2003. See
> <http://lists.w3.org/Archives/Member/w3c-
html-cg/2003AprJun/0061.html>
> for instance, (HCG, member only).

So what's the problem?


>> In the end I think, if XHTML 2.0 ever ends up being
implemented, you
>> would like to support media queries there. Just
like media queries
>> currently extends HTML4 in some way.
>
> I agree that this is an important topic, which has
already been the  
> subject of
> discussions between the CSS and DI groups (see
> <http://lists.w3.org/Archives/Member/w3c-c
ss-wg/2006JanMar/0250.html>).
>
>> The DI WG could also introduce an attribute similar
to media="" which
>> does accept a media query.
>
> Yes, or they could just import media in DIAL. I don't
how sel:expr and
> media would interact when used together but it may make
sense to allow
> both (in different places).

Yeah, make it even more complicated 
media="" and sel:expr do quite  
different things as I understand it though. It seems that
media="" only  
changes that what's rendered and sel:expr actually changes
the resulting  
document (as it's supposedly preprocessed or something like
that).


> The problem is the simplicity of media queries versus
the power of
> XPath, of course.  And also the speed of deployment: at
the moment,
> XHTML2 doesn't have the power that device independent
content authors
> require. And they want something quickly.

I don't see how XPath is more powerful here, actually.
Especially when  
used as the DI WG uses it within sel:expr. Could you give
some specific  
examples?

Also, with regard to what device independent content authors
want, I'm not  
really sure if more functionality is one of their
requirements... Being  
able to deploy some HTML page and have it just work (perhaps
with a  
special handheld style sheet if the author thought of that
and had the  
time to do QA on it) seems far better to me than having to
learn  
namespaces, XPath and a whole let of other things DIAL and
DISelect seem  
to import.


-- 
Anne van Kesteren
<http://annevankesteren
.nl/>
<http://www.opera.com/>


[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )