473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is XHTML actually eXtensible?

Hi,

I manage a couple of Web sites which, occasionally, use foreign (i.e.
non-English, since English is the language of these sites) words. My
elementary school teacher told me that foreign words should be in
italics. Fine. I can easily wrap non-English words in <i>Nahuatl
phrase</i> tags.

But I'd like to know if I can (without toooo much trouble) extend XHTML so
that I can wrap them in new tags, such as <foreign>Nahuatl
phrase</foreign>. (I can use css to say that this should be displayed in
italics.)

The books I own (O'Reilly and others) don't talk about this in enough
detail to be helpful. (Or I don't read very well.)

Thanks to anyone who can point me in the right direction.

Maury

--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 23 '05 #1
9 1954
On Wed, 25 Aug 2004, Maury Merkin wrote:
I manage a couple of Web sites which, occasionally, use foreign (i.e.
non-English, since English is the language of these sites) words. My
elementary school teacher told me that foreign words should be in
italics. Fine. I can easily wrap non-English words in <i>Nahuatl
phrase</i> tags.


No need for XHTML; use HTML 4.01 and write, e.g.
<i lang="nah"> ... </i>
or
<i lang="nah" class="nahuatl"> ... </i>
with suitable definition of the class "nahuatl".

--
Top-posting.
What's the most irritating thing on Usenet?

Jul 23 '05 #2
On Wed, 25 Aug 2004 10:39:36 -0400, Maury Merkin <me****@his.com> wrote:
Hi,

I manage a couple of Web sites which, occasionally, use foreign (i.e.
non-English, since English is the language of these sites) words. My
elementary school teacher told me that foreign words should be in
italics. Fine. I can easily wrap non-English words in <i>Nahuatl
phrase</i> tags.

But I'd like to know if I can (without toooo much trouble) extend XHTML
so that I can wrap them in new tags, such as <foreign>Nahuatl
phrase</foreign>. (I can use css to say that this should be displayed
in italics.)

The books I own (O'Reilly and others) don't talk about this in enough
detail to be helpful. (Or I don't read very well.)

Thanks to anyone who can point me in the right direction.


Perhaps a simpler solution, which can be done in HTML as well, is:

<span class="foreign" lang="es">Macarena</span>

Of course in XHTML you also include xml:lang. If you absolutely require
the italics in the no-CSS version, <i class="foreign" lang="es"> is
possible as well. (In this case I might still keep the class in order to
customize the style more completely.)

If you really have your heart set on a <foreign> tag, you have to create a
new dtd which allows the new element. Some information is available at
http://www.w3schools.com/dtd/dtd_intro.asp . I think this is a lot of
unnecessary work unless there are a LOT of new elements required in your
XHTML document.
Jul 23 '05 #3
In article <op**************@pyewacket.site>,
"Maury Merkin" <me****@his.com> wrote:
But I'd like to know if I can (without toooo much trouble) extend XHTML so


The 'X' in XHTML stands for "the cool letter X which is associated with
XML". Writing it out as "eXtensible" is about coming up with some word
that can plausibly be abbreviated as 'X'. Don't put too much weight on
the word.

--
Henri Sivonen
hs******@iki.fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 23 '05 #4
Neal <ne*****@yahoo.com> wrote:
Of course in XHTML you also include xml:lang.
You _may_ include it.
If you really have your heart set on a <foreign> tag, you have to
create a new dtd which allows the new element. Some information is
available at http://www.w3schools.com/dtd/dtd_intro.asp . I think
this is a lot of unnecessary work unless there are a LOT of new
elements required in your XHTML document.


And it wouldn't be XHTML.

It would be an XML document, with some tags from the XHTML tag soup,
sorry, "namespace", and some other tags.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #5
On Wed, 25 Aug 2004 17:55:48 +0000 (UTC), Jukka K. Korpela
<jk******@cs.tut.fi> wrote:
Neal <ne*****@yahoo.com> wrote:
Of course in XHTML you also include xml:lang.


You _may_ include it.


I based my assumption on the (admittedly, merely informative) Appendix C
part 7 - if xml:lang isn't "required" I sure wish they had phrased this
better, because the way they put it, it seems to be.

Then again, it _is_ Appendix C... :-/
Jul 23 '05 #6
Neal <ne*****@yahoo.com> wrote:
I based my assumption on the (admittedly, merely informative)
Appendix C part 7 - if xml:lang isn't "required" I sure wish they had
phrased this better, because the way they put it, it seems to be.


It says "Use both the lang and xml:lang attributes when specifying the
language of an element." This only means that _when_ (if) you specify the
language, Appendix C wants you to say the same thing twice that way.

Web Content Accessibility Guidelines by WAI say that you should specify
the language of your document and all changes of language, in the markup.
But that's at a different level, and not many people take it seriously -
even the WAI pages themselves don't do so.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #7
Henri Sivonen wrote:
The 'X' in XHTML stands for "the cool letter X which is associated with
XML". Writing it out as "eXtensible" is about coming up with some word
that can plausibly be abbreviated as 'X'. Don't put too much weight on
the word.


But that's what the X in XML stands for too, so I don't understand what
you mean? Although, it is normally written as Extensible, rather than
eXtensible.

--
Lachlan Hunt
http://www.lachy.id.au/

Please direct all spam to ab***@127.0.0.1
Thank you.
Jul 23 '05 #8
Maury Merkin wrote:
Hi,

I manage a couple of Web sites which, occasionally, use foreign (i.e.
non-English, since English is the language of these sites) words. My
elementary school teacher told me that foreign words should be in
italics. Fine. I can easily wrap non-English words in <i>Nahuatl
phrase</i> tags.

But I'd like to know if I can (without toooo much trouble) extend XHTML
so that I can wrap them in new tags, such as <foreign>Nahuatl
phrase</foreign>. (I can use css to say that this should be displayed
in italics.)

The books I own (O'Reilly and others) don't talk about this in enough
detail to be helpful. (Or I don't read very well.)

Thanks to anyone who can point me in the right direction.

Maury


As others have said, use the lang (xml:lang in XML) attribute with the
CSS :lang pseudo* or use classes (example: using foreign-language words
as synonyms is such a <span lang="fr">faux pas</span> and doesn't make
you any kind of <span lang="de">wunderkind</span> or <span
lang="it">virtuoso</span>).

But XHTML is extensible if you send it as XML, instead of Appendix C tag
soup. In the former case, you just use other namespaces, or style
arbitrary elements (practically same as classes, but without the UA
semantic recognizability of (X)HTML).

Jul 23 '05 #9
In article <4t****************@news-server.bigpond.net.au>,
Lachlan Hunt <la**********@lachy.id.au.invalid> wrote:
Henri Sivonen wrote:
The 'X' in XHTML stands for "the cool letter X which is associated with
XML". Writing it out as "eXtensible" is about coming up with some word
that can plausibly be abbreviated as 'X'. Don't put too much weight on
the word.


But that's what the X in XML stands for too, so I don't understand what
you mean?


As far as XML goes, "extensible" doesn't mean extending XML itself but
being able to define concrete markup languages on top XML.

With XHTML, the letter 'X' effectively means "XML version of" and coming
up with a word the 'X' is purportedly an abbreviation of seems rather
backronymish to me.

Compare with XUL which stands for "XML User Interface Language"--not
"Extensible User Interface Language".

--
Henri Sivonen
hs******@iki.fi
http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html
Jul 23 '05 #10

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

Similar topics

0
1299
by: Morten W. Petersen | last post by:
Hi, I'm developing a validation schema for a new thing called extensible open xhtml outlines (XOXO) . I'd like to include inline XHTML elements in these outlines, and do the least amount of...
59
4682
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...
119
4508
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
47
10242
by: Chuck | last post by:
Is there any logical reason why one should convert if css is already being used? What possible, immediate, benefit would there be? I am at a loss to see what, pragmatic, difference it would make.
12
2389
by: Alex D. | last post by:
How can I stop asp.net from rendering XHTML istead of HTML? My javascripts are rendering wrong because of that. It is rendering &amp; to clients instead of &. Any help? Thanks, Alejandro.
22
2831
by: Gianni Rondinini | last post by:
hi all. please excuse the misusage of some tech terms, but writing in english is not as easy as in italian :) i'm designing our new website and, since i want to do something that will last as...
0
7134
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
7229
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...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.