473,397 Members | 2,028 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,397 software developers and data experts.

[XHTML] «src» attribute in most tags

I think that is really important to have the «src» attrinbute in tags other
than «img» in order to include XHTML fragments without depending on
server-side mechanisms as ISS or PHP. For example:

<div src="fragment.xhtml" />

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Dario de Judicibus - Italy (EU)
Site: http://www.dejudicibus.it/
Blog: http://lindipendente.splinder.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jan 27 '06 #1
14 4412
"Dario de Judicibus" <no****@nowhere.com> wrote:
I think that is really important to have the «src» attrinbute in tags other
than «img» in order to include XHTML fragments without depending on
server-side mechanisms as ISS or PHP. For example:

<div src="fragment.xhtml" />


Again: such a feature would break all current and past UAs, they would
not be able to render such a construct. That's a very high price to pay
for such a trivial feature.

Stop whining about it and use one of the many solutions that have
already been suggested to you.

--
Spartanicus
Jan 27 '06 #2
Dario de Judicibus wrote:
I think that is really important to have the «src» attrinbute in tags other
than «img» in order to include XHTML fragments without depending on
server-side mechanisms as ISS or PHP. For example:

<div src="fragment.xhtml" />


If we've all gotten along all this time without it, how can it be
"important"?

Why is it important not to use a server-side mechanism?
Jan 27 '06 #3

"Harlan Messinger" <hm*******************@comcast.net> ha scritto nel
messaggio news:43*************@individual.net...
| Dario de Judicibus wrote:
| > I think that is really important to have the «src» attrinbute in tags
other
| > than «img» in order to include XHTML fragments without depending on
| > server-side mechanisms as ISS or PHP. For example:
| >
| > <div src="fragment.xhtml" />
|
| If we've all gotten along all this time without it, how can it be
| "important"?
|
| Why is it important not to use a server-side mechanism?

Because it is not always available!!!!!!!!!!!!!!!
There millions of sites based ONLY on client code!
Most internet is made of personal sites, not e-commerce or company sites.
The real Internet is made by people, volunteers and free resources.

DdJ
Jan 27 '06 #4

"Spartanicus" <in*****@invalid.invalid> ha scritto nel messaggio
news:te********************************@news.spart anicus.utvinternet.ie...
| "Dario de Judicibus" <no****@nowhere.com> wrote:
|
| >I think that is really important to have the «src» attrinbute in tags
other
| >than «img» in order to include XHTML fragments without depending on
| >server-side mechanisms as ISS or PHP. For example:
| >
| ><div src="fragment.xhtml" />
|
| Again: such a feature would break all current and past UAs, they would
| not be able to render such a construct. That's a very high price to pay
| for such a trivial feature.
|
| Stop whining about it and use one of the many solutions that have
| already been suggested to you.

Well, this is true for any new version of XHTML or CSS. What's different?

DdJ
Jan 27 '06 #5
Dario de Judicibus wrote:
There millions of sites based ONLY on client code!
Most internet is made of personal sites, not e-commerce or company sites.
The real Internet is made by people, volunteers and free resources.


That's why most of it stinks. Client-side includes won't fix that.

--
philronan [@] blueyonder [dot] co [dot] uk

Jan 28 '06 #6
"Dario de Judicibus" <dd*@mclink.it> wrote:
| >I think that is really important to have the «src» attrinbute in tags
other
| >than «img» in order to include XHTML fragments without depending on
| >server-side mechanisms as ISS or PHP. For example:
| >
| ><div src="fragment.xhtml" />
|
| Again: such a feature would break all current and past UAs, they would
| not be able to render such a construct. That's a very high price to pay
| for such a trivial feature.
|
| Stop whining about it and use one of the many solutions that have
| already been suggested to you.

Well, this is true for any new version of XHTML or CSS. What's different?


CSS is by design an optional technology, at worst certain presentational
aspects are not shown. All my CSS2 sites are perfectly usable in a CSS1
browser such as Opera 3.6.

HTML hasn't essentially changed since 1997. XHTML 1.x is merely a
reformulation of HTML in XML.

The elements that were added to HTML 4 since HTML 3.2 do not, or for a
few elements at least should not cause content not to be available. UAs
by design ignore unknown markup and *they render the content*. So an
HTML 3.2 UA will ignore <span> elements and render the content. That
also applies to elements like <iframe> that were added to HTML4 if
properly used: <iframe src="foo.bar"><p><a href="foo.bar">link
text</a></p></iframe>.

Supplying an URI to a code fragment as an attribute value to existing
elements as you'd like is fundamentally different since it doesn't even
allow coding of a fall back solution.

Adding a new <include src="foo.bar"></include> construct is also not an
option since unlike the with <iframe> construct it isn't possible to
code a link as content for the element, a link to a code *fragment*
would be worse than useless.

The only way to add this type of feature to HTML without causing massive
problems is by introducing it into a language that is explicitly
designed to be *not* backward compatible.

I say again, what you want is a trivial feature, not remotely worthy of
causing such a fundamental problem.

--
Spartanicus
Jan 28 '06 #7
"Dario de Judicibus" <dd*@mclink.it> wrote:
| > <div src="fragment.xhtml" />
|
| If we've all gotten along all this time without it, how can it be
| "important"?
|
| Why is it important not to use a server-side mechanism?

Because it is not always available!!!!!!!!!!!!!!!


As has been pointed out to you on several occasions there are plenty of
other solutions that do not require any additional server side
solutions.

Besides, following your "logic", HTML should be extended to generate
music, because not everyone has an audio editor!!!!!!!!!!!!!!!!

--
Spartanicus
Jan 28 '06 #8
Dario de Judicibus wrote:
I think that is really important to have the «src» attrinbute in tags
other than «img» in order to include XHTML fragments without depending on
server-side mechanisms as ISS or PHP. For example:

<div src="fragment.xhtml" />


Once XHTML becomes the widely supported standard on the web, it *might* be
possible that user-agents support the XInclude extension - it *may* be even
required for user-agents conforming to a not yet existing future version of
XHTML.

But you'll have to way some years or even decades for this to happen...

Patience is a virtue - and in the meantime get back to work ;)

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
Jan 28 '06 #9

"Spartanicus" <in*****@invalid.invalid> ha scritto nel messaggio
news:g2********************************@news.spart anicus.utvinternet.ie...

| Supplying an URI to a code fragment as an attribute value to existing
| elements as you'd like is fundamentally different since it doesn't even
| allow coding of a fall back solution.

Yes, it has, if you say

<p src="fragment.html">Well, this is your fall back</p>

--
Dario de Judicibus - Rome, Italy (EU)
Site: http://www.dejudicibus.it
Blog: http://lindipendente.splinder.com
Jan 29 '06 #10

"Philip Ronan" <no****@example.invalid> ha scritto nel messaggio
news:00*****************************@news.blueyond er.co.uk...
| Dario de Judicibus wrote:
|
| > There millions of sites based ONLY on client code!
| > Most internet is made of personal sites, not e-commerce or company
sites.
| > The real Internet is made by people, volunteers and free resources.
|
| That's why most of it stinks. Client-side includes won't fix that.

Internet was not born to sell products, it was born to share knowledge,
freely. A hand-made not-professional site providing by free valuable
resources, is more important to cybersurfers than a wonderful site whose
only purpose is to enrich a company, in my opinion. And HTML, XHTML and CSS,
should be intended for people who have little resources rather that rich
companies. Otherwise you will increase the digital gap and continents as
Africa will never gain value from the Net. By the way, most of people in
Internet protocol and languages committees, today, are just companies'
employees. They have a single-oriented view, and it is a pity.

--
Dario de Judicibus - Rome, Italy (EU)
Site: http://www.dejudicibus.it
Blog: http://lindipendente.splinder.com
Jan 29 '06 #11

"Spartanicus" <in*****@invalid.invalid> ha scritto nel messaggio
news:uu********************************@news.spart anicus.utvinternet.ie...

| Besides, following your "logic", HTML should be extended to generate
| music, because not everyone has an audio editor!!!!!!!!!!!!!!!!

Why not? I wrote an XML language to write music score many years ago. I
stopped the project because MusicXML is doing a better work and there is no
reason to duplicate efforts. But once you have a score, you can play it.

There is no limit of what Internet can be BUT our fantasy.

But REMEMBER, Internet is made for people, all people in the world.

Otherwise we would still have to work with useless ANSI-7 character set,
which is not able to render most world languages. Just english and few
others: no spanish, no italian, no french, no german, no gaelic or greek, no
chinese or arabic, no japanese, thai, cherokee or japanese.

World is much more than e-commerce or anglosaxon culture. It is plenty of
information, knowledge, experiences that can be shared to know better each
other, and technology should be designed for that. Designer should not
assume the best scenario, but the worst.

Generate audio? Seriously... have you ever thought to the fact that what is
an option for you, that is, accessing internet, could be the ONLY way for
many people to know the world? People who cannot move because of
disabilities or illness, or blind people. Generating audio for blind people
makes the difference.
It is not a matter ofphylosophy or ideology, it is a matter of priorities,
very concrete priorities.

This is far from original post, of course, but has to be said, because
people who design languages and protocol MUST always keep in mind that,
rather than the usual fight between companies to have THE STANDARD as close
as possible to the proprietary products they already have.

--
Dario de Judicibus - Rome, Italy (EU)
Site: http://www.dejudicibus.it
Blog: http://lindipendente.splinder.com
Jan 29 '06 #12

"Benjamin Niemann" <pi**@odahoda.de> ha scritto nel messaggio
news:dr**********@online.de...

| But you'll have to way some years or even decades for this to happen...
| Patience is a virtue - and in the meantime get back to work ;)

Well, XHTML is the right direction, in my opinion, and XInclude is too. I
hope that in a world that is moving faster and faster, I will not have to
wait decades for that... ;-)

--
Dario de Judicibus - Rome, Italy (EU)
Site: http://www.dejudicibus.it
Blog: http://lindipendente.splinder.com
Jan 29 '06 #13
"Dario de Judicibus" <dd*@mclink.it> wrote:
| Supplying an URI to a code fragment as an attribute value to existing
| elements as you'd like is fundamentally different since it doesn't even
| allow coding of a fall back solution.

Yes, it has, if you say

<p src="fragment.html">Well, this is your fall back</p>


No, as I demonstrated that is worse than pointless.

--
Spartanicus
Jan 29 '06 #14
"Dario de Judicibus" <dd*@mclink.it> wrote:
| Besides, following your "logic", HTML should be extended to generate
| music, because not everyone has an audio editor!!!!!!!!!!!!!!!!

Why not? I wrote an XML language to write music score many years ago.
You're missing the point. The fact that HTML can't fry eggs doesn't mean
that is should.
Generate audio? Seriously... have you ever thought to the fact that what is
an option for you, that is, accessing internet, could be the ONLY way for
many people to know the world? People who cannot move because of
disabilities or illness, or blind people. Generating audio for blind people
makes the difference.


Now you are getting even more confused than you already are. HTML is a
markup language, it applies semantics to, and structures content. What a
browser does with it is an entirely different issue.

--
Spartanicus
Jan 29 '06 #15

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

Similar topics

5
by: Haines Brown | last post by:
Re. <title>, my impression has been that a line break is _NOT_ allowed in the contained text. Is that true? Also, I gather a double quotation mark in the text string (and ampersand, etc.) _IS_...
2
by: and | last post by:
Hi I have been validating all day most things are cool but I cant get by this problem. One I have listed the script (JAVASCRIPT ) in all the right placesnot a prob but the validator insists...
47
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.
3
by: Martin Olson | last post by:
I'm trying to output valid xhtml 1.0 transitional with xslt -- my question is when dealing with elements that have self-closing tags such as <img /> and <input />... I'm getting closing tags on...
12
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.
9
by: anupamjain | last post by:
Hi, After 2 weeks of search/hit-and-trial I finally thought to revert to the group to find solution to my problem.(something I should have done much earlier) This is the deal : On a JSP...
11
by: Michael Powe | last post by:
How can I make an XHTML-compliant form of an expression in this format: document.write("<scr"+"ipt type='text/javascript' src='path/to/file.js'>"+"</scr"+"ipt>"); this turns out to be a...
11
by: Kidogg | last post by:
Hi all, I'm attempting to write a validator for some email template files we use as part of our e-commerce application (incidentally in C#) and I've run into a problem as I'm not a huge user of...
11
by: Tim Arnold | last post by:
hi, I've got lots of xhtml pages that need to be fed to MS HTML Workshop to create CHM files. That application really hates xhtml, so I need to convert self-ending tags (e.g. <br />) to plain html...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...

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.