473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

XHTML Basic: style or media?

Hi all,

I am currently fooling around trying to produce a very basic webpage
that can be shown on both computer screens and Nokia series 60 GSM cell
phones featuring an XHTML browser. (XHTML-MP | XHTML Mobile Profile)
I found XHTML-MP to be the W3C XHTML-Basic + WML extensions, that is why
I have chosen to base a web page on XHTML Basic 1.0

Doing that I am running into the following problem: Nokia phones do not
support the media attribute in the link element and XHTML Basic does not
support the style element.

My clues to having separate stylesheets were to either have link
elements pointing to different stylesheets for different media, or to
use a style element in combination with an imported stylesheet for
computer screens and a link element for linking a handheld targeted
stylesheet to handheld media showing.

The latter works on IE, Netscape 7 and Opera 7 allthough not valid
according to the dtd the doctype declaration is pointing to. (as an
effect the W3C browser/editor Amaya 8.3 will not show the page
[http://meeuw.zeepost.nl/meeuw_homepage_xhtml_basic.htm] correctly)
Should I care? And if so, does anybody have a suggestion to do this some
other way and have the page show correctly on both Nokia series 60 cell
phones and computer screens?

Thanks,

Jaap

Jul 20 '05 #1
8 1635
"JotM" <ja*****@12move.netherlands_nl> a écrit dans le message de
news:c5**********@reader08.wxs.nl
does anybody have a suggestion to do this
some other way and have the page show correctly on both Nokia series
60 cell phones and computer screens?


I think thi is just stupid to try it. Computer and cells phones are just to
different from their use to their caracteristics, so you should make a web
site for gsm, another for the web, etc.
It's ok, you can technically make web pages that can display on both but you
don't have to think technics, but end user.

Jul 20 '05 #2
"JotM" <ja*****@12move.netherlands_nl> a écrit dans le message de
news:c5**********@reader08.wxs.nl
does anybody have a suggestion to do this
some other way and have the page show correctly on both Nokia series
60 cell phones and computer screens?


I think thi is just stupid to try it. Computer and cells phones are just to
different from their use to their caracteristics, so you should make a web
site for gsm, another for the web, etc.
It's ok, you can technically make web pages that can display on both but you
don't have to think technics, but end user.

Jul 20 '05 #3
Pierre Goiffon wrote:
"JotM" <ja*****@12move.netherlands_nl> a écrit dans le message de
news:c5**********@reader08.wxs.nl
does anybody have a suggestion to do this
some other way and have the page show correctly on both Nokia series
60 cell phones and computer screens? [link snapped]

I think thi is just stupid to try it. Computer and cells phones are just to
different from their use to their caracteristics, so you should make a web
site for gsm, another for the web, etc.


Dear Pierre, did you care following the link? Is your knowledge of Dutch
and CSS sufficient to notice that allmost all div's and/or paragraphs
are either member of a class or have an id? And so can be turned on or
off with the "display: none"-statement to achieve specific cummunication
aimed at specific media.
For me this puzzle is part of the fun. In what _functional_ chunks to
devide the contents into, so a CSS aimed at either "screen", "handheld"
or "print" media will result in something comprehensive yet _pretty_ .
Sure, this can be done by defining all the content in XML and have XSLT
produce a specific (X)HTML page for a specific medium, but I am fooling
around trying to do this within a single XHTML page calling specific
CSS's. That is where I ran into trouble as I encountered partial
implementations of the W3C recommendation. As creating website is not my
job but merely a hobby, no sweat. But I am curious if someone else sees
an opening here I do not.
And as for your opening remark: having worked in R&D for over a decade,
I do not agree that trying something new where long known solutions are
available is "just stupid" even if it looks futile. You never know what
might come from it.
It's ok, you can technically make web pages that can display on both ...[rest snapped].


Please do enlighten me. Because this is just my problem.

Jul 20 '05 #4
Pierre Goiffon wrote:
"JotM" <ja*****@12move.netherlands_nl> a écrit dans le message de
news:c5**********@reader08.wxs.nl
does anybody have a suggestion to do this
some other way and have the page show correctly on both Nokia series
60 cell phones and computer screens? [link snapped]

I think thi is just stupid to try it. Computer and cells phones are just to
different from their use to their caracteristics, so you should make a web
site for gsm, another for the web, etc.


Dear Pierre, did you care following the link? Is your knowledge of Dutch
and CSS sufficient to notice that allmost all div's and/or paragraphs
are either member of a class or have an id? And so can be turned on or
off with the "display: none"-statement to achieve specific cummunication
aimed at specific media.
For me this puzzle is part of the fun. In what _functional_ chunks to
devide the contents into, so a CSS aimed at either "screen", "handheld"
or "print" media will result in something comprehensive yet _pretty_ .
Sure, this can be done by defining all the content in XML and have XSLT
produce a specific (X)HTML page for a specific medium, but I am fooling
around trying to do this within a single XHTML page calling specific
CSS's. That is where I ran into trouble as I encountered partial
implementations of the W3C recommendation. As creating website is not my
job but merely a hobby, no sweat. But I am curious if someone else sees
an opening here I do not.
And as for your opening remark: having worked in R&D for over a decade,
I do not agree that trying something new where long known solutions are
available is "just stupid" even if it looks futile. You never know what
might come from it.
It's ok, you can technically make web pages that can display on both ...[rest snapped].


Please do enlighten me. Because this is just my problem.

Jul 20 '05 #5
"JotM" <ja*****@12move.netherlands_nl> a écrit dans le message de
news:c5**********@reader10.wxs.nl
And as for your opening remark: having worked in R&D for over a
decade, I do not agree that trying something new where long known
solutions are available is "just stupid" even if it looks futile. You
never know what might come from it.


Web content is available for cell phones since more than 5 years now, so
some people like... me have try it before and I think you will get the same
conclusion as me really soon. For a lot of reasons, maintening 2 different
sites are the good choice - you see, there are now a lot of templates
engine, and it's always better to do all the presentation stuff server side.
So you've got a layer for extracting data from your database, another one to
transform and adapt datas, another to make the markup & css - that's just
that last that could be impacted by inserting new templates.

I just wanted to prevent you for this, though I don't have any solution for
your particular problem.
At last, I wish you good luck and you're true, it's courageous and good to
try something new. But if I can give you an advice : just see how it is done
on big websites since years.

Jul 20 '05 #6
"JotM" <ja*****@12move.netherlands_nl> a écrit dans le message de
news:c5**********@reader10.wxs.nl
And as for your opening remark: having worked in R&D for over a
decade, I do not agree that trying something new where long known
solutions are available is "just stupid" even if it looks futile. You
never know what might come from it.


Web content is available for cell phones since more than 5 years now, so
some people like... me have try it before and I think you will get the same
conclusion as me really soon. For a lot of reasons, maintening 2 different
sites are the good choice - you see, there are now a lot of templates
engine, and it's always better to do all the presentation stuff server side.
So you've got a layer for extracting data from your database, another one to
transform and adapt datas, another to make the markup & css - that's just
that last that could be impacted by inserting new templates.

I just wanted to prevent you for this, though I don't have any solution for
your particular problem.
At last, I wish you good luck and you're true, it's courageous and good to
try something new. But if I can give you an advice : just see how it is done
on big websites since years.

Jul 20 '05 #7
Pierre Goiffon wrote:
[snap]... and it's always better to do all the presentation stuff server side. So you've got a layer for extracting data from your database, another one to
transform and adapt datas, another to make the markup & css - that's just
that last that could be impacted by inserting new templates.

I just wanted to prevent you for this, though I don't have any solution for
your particular problem.


Thx for the protection. You're probably right. Which means I will now
have to endulge myself in server-side coding. Mmm. That should keep me
busy for many long nights to come. ;-)

/************************************************** **************************
JotM aka Jaap van der Heide
Remove ".XXXnospamXXX" for a valid return address
Please reply to a news message in the group where the message was posted
************************************************** **************************/

Jul 20 '05 #8
Pierre Goiffon wrote:
[snap]... and it's always better to do all the presentation stuff server side. So you've got a layer for extracting data from your database, another one to
transform and adapt datas, another to make the markup & css - that's just
that last that could be impacted by inserting new templates.

I just wanted to prevent you for this, though I don't have any solution for
your particular problem.


Thx for the protection. You're probably right. Which means I will now
have to endulge myself in server-side coding. Mmm. That should keep me
busy for many long nights to come. ;-)

/************************************************** **************************
JotM aka Jaap van der Heide
Remove ".XXXnospamXXX" for a valid return address
Please reply to a news message in the group where the message was posted
************************************************** **************************/

Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
59
by: Philipp Lenssen | last post by:
I've tested some of the new Nokia 6600 functionality. It ships with WAP2 and XHTML Support (it says). What it does is check the Doctype -- if it's not the XHTML Mobile Profile Doctype, but a...
9
by: Sector024 Media | last post by:
My question is why netscape doesn't seem to support a style definition in a table? I have my pages as valid xhtml1.0, and still netscape is not folowing orders.. <table...
7
by: Jean Pierre Daviau | last post by:
Hi, <script language="javascript" type="text/javascript"> if(navigator.appName.indexOf("Netscape") != -1){ document.writeln('<link rel="stylesheet" href="~styles/aquarelle_ns.css"...
12
by: hawat.thufir | last post by:
I'm trying do some "screen scraping", and am using <http://www.oreilly.com/catalog/xmlhks/> for inspiration. First I'd like to convert XHTML to XML, or extract XML from XHTML, I'm not sure how...
1
by: cwdjrxyz | last post by:
I am now writing many new pages in xhtml 1.1. They are served as true xhtml by setting the mime type of the server to application/xhtml+xml for the .xhtml extension. Since IE6 and some earlier...
82
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a...
8
by: pacs34 | last post by:
I just read some stuff about XHTML 2.0 and it sounds fascinating so I have been trying to create a small test doc which has a few graphics files but whenever I submit it to the W3 validator I get...
19
by: Bert Lancaster | last post by:
I'm not actually using it on the web but can anyone tell me why the ID attribute on a <style> tag causes an error in the W3C validator for an XHTML 1.1 document? It doesn't have a problem for a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.