473,545 Members | 1,288 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[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.x html" />

~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~
Dr. Dario de Judicibus - Italy (EU)
Site: http://www.dejudicibus.it/
Blog: http://lindipendente.splinder.com
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~
Jan 27 '06 #1
14 4421
"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.x html" />


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.x html" />


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******** *****@individua l.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.x html" />
|
| 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

"Spartanicu s" <in*****@invali d.invalid> ha scritto nel messaggio
news:te******** *************** *********@news. spartanicus.utv internet.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.x html" />
|
| 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.i t> 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.x html" />
|
| 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.i t> wrote:
| > <div src="fragment.x html" />
|
| 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.x html" />


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

"Spartanicu s" <in*****@invali d.invalid> ha scritto nel messaggio
news:g2******** *************** *********@news. spartanicus.utv internet.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.h tml">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

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

Similar topics

5
1868
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_ acceptable, but not char entities (such as &quote;), decimal characters (such as ‛) or style-sheet defined elements (such as <q>). Re. <meta...
2
5074
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 on going through t findind < (less than) in the code. why is it going through the script the scripts been tagged correctly? Also in the body where...
47
10247
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
2898
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 these elements that should have a self-closing tag like this: <img src="/images/img.jpg" alt="alt text"></img> should be: <img...
12
2398
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
6707
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 page, I want to grab a URL and parse /change the HTML and send it to the JSP page. I take the URL from the user in a textbox (not the
11
3083
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 non-trivial exercise. inserting '&lt;' and '&gt;' causes the browser to write the text to the page as literal text rather than as the intended script element. ...
11
2176
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 XML. Essentially an email template can contain any valid XHTML, but also has tags such as <membershipcardheaderand <membershipcardfooterthat can...
11
4521
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 (e.g. <br>). Seems simple enough, but I'm having some trouble with it. regexps trip up because I also have to take into account 'img', 'meta',...
0
7457
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7391
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7802
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7410
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5962
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4941
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1010
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
693
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.