473,915 Members | 5,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

includes

I have written my web site using Microsoft FrontPage and have decided
to rewrite it in strict xhtml. I am very excited about how easy this
seems to be, how clean the code is and the versatility of the
language, I have one question at present.

I have found out how to use includes using

<!--#include virtual="anyfil ehere" -->

My question: Is the code inserted exactly as in the include file in
the place where the include is requested or are there some surprises?

www.richardfisher.com

Sep 4 '07 #1
22 1962
On 4 Sep, 16:17, Helpful person <rrl...@yahoo.c omwrote:
www.richardfisher.com
OK, I've had a look now. That web page is vile, throw it away and
start again.

The markup is an unholy mess of M$oft namespaces, abused XML, 3.2
presentational markup and the usual garbage we associate with M$oft
Orifice output. I didn't actually know FrontPlague was this bad! I
thought only Word made markup _quite_ this bogus.

It also looks terrible. Text blocks overlapping each other all over
the place. I presume it's due to M$oft's usual garbage of absolute-
positioned CSS with pixel dimensions.

Do yourself a favour: get a copy of "Head First HTML with CSS & XHTML"
and a simple text editor. When you've read that, start on Lie & Bos'
"Cascading Style Sheets". Keep reading the newsgroups.

Sep 4 '07 #2
Helpful person wrote:
I have written my web site using Microsoft FrontPage and have decided
to rewrite it in strict xhtml.
Let me keep some light of hope.
The page you linked to is still supposed to be in its FrontPage tag soup
form (September 4 2007).
Right?

It's not the "clean XHTML code". Okay?

PS: This page gave me ideas that I could use if ever there's an "HTML
obfuscation contest".
And these ideas could apply to valid, non-conforming, HTML code.

--
You can contact me at <ta************ *****@yahoDELET ETHATo.fr>
Sep 4 '07 #3
On Sep 4, 4:33 pm, "André Gillibert"
<tabkanDELETETH IS...@yahodelet ethato.frwrote:
Helpful person wrote:
I have written my web site using Microsoft FrontPage and have decided
to rewrite it in strict xhtml.

Let me keep some light of hope.
The page you linked to is still supposed to be in its FrontPage tag soup
form (September 4 2007).
Right?

It's not the "clean XHTML code". Okay?

PS: This page gave me ideas that I could use if ever there's an "HTML
obfuscation contest".
And these ideas could apply to valid, non-conforming, HTML code.

--
You can contact me at <tabkanDELETETH IS...@yahoDELET ETHATo.fr>
FrontPage creates very verbose and unreadable (to me) code. To make
things worse it's probably easier to learn html xhtml than FrontPage
with all it's bugs and ommissions.

www.richardfisher.com

Sep 4 '07 #4
On 2007-09-04, Helpful person <rr****@yahoo.c omwrote:
[...]
FrontPage creates very verbose and unreadable (to me) code. To make
things worse it's probably easier to learn html xhtml than FrontPage
with all it's bugs and ommissions.
You are right, and I'm very glad to see you've figured it out for
yourself.

I keep saying this, but no-one believes me because they think I don't
understand newbies.
www.richardfisher.com
Sep 4 '07 #5
Helpful person wrote:
FrontPage creates very verbose and unreadable (to me) code. To make
things worse it's probably easier to learn html xhtml than FrontPage
with all it's bugs and ommissions.
Very true, but you do understand that HTML and XHTML are two different
things, don't you?
Sep 4 '07 #6
On 9/4/2007 8:17 AM, Helpful person wrote:
I have written my web site using Microsoft FrontPage and have decided
to rewrite it in strict xhtml. I am very excited about how easy this
seems to be, how clean the code is and the versatility of the
language, I have one question at present.

I have found out how to use includes using

<!--#include virtual="anyfil ehere" -->

My question: Is the code inserted exactly as in the include file in
the place where the include is requested or are there some surprises?

www.richardfisher.com
I do all my pages in HTML 4.01. I do them manually in Wordpad, and the
HTML just seems to flow out of my fingertips and into my keyboard. So I
can't help you with XHMTL.

However, I do use SSIs. I just now determined that your server is
indeed Apache, which does support SSIs.

I suggest that the files you wish to include not have .html or .htm at
the end (file extensions). Then, Apache will not try to serve them as
Web pages if they are requested by mistake.

The Web page that contains the <!--#include virtual="anyfil ehere" -->
declaration needs to be executable for Apache to perform the SSI
operation.

Apache will take the cited file and insert it as if you had manually
inserted it before uploading the Web page to the Web server. A user
will not be able to determine that this has happened except that the
time-stamp on the Web page will equal the time at which Apache served
it, not the time when it was uploaded to the server or when it was last
modified.

--

David E. Ross
<http://www.rossde.com/>.

Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
Sep 4 '07 #7
On Sep 4, 5:58 pm, Scott Bryce <sbr...@scottbr yce.comwrote:
>
Very true, but you do understand that HTML and XHTML are two different
things, don't you?
Yes. However, I see no reason not to write strict XHTML (especially
as I am starting from scratch) as this will probably (eventually) be
the standard to replace HTML.

www.richardfisher.com

Sep 5 '07 #8
..oO(Helpful person)
>On Sep 4, 5:58 pm, Scott Bryce <sbr...@scottbr yce.comwrote:
>>
Very true, but you do understand that HTML and XHTML are two different
things, don't you?

Yes. However, I see no reason not to write strict XHTML (especially
as I am starting from scratch) as this will probably (eventually) be
the standard to replace HTML.
Maybe XHTML 2 in some years. But this is incompatible with XHTML 1 ...

Micha
Sep 5 '07 #9
On 5 Sep, 12:34, Helpful person <rrl...@yahoo.c omwrote:
Yes. However, I see no reason not to write strict XHTML (especially
as I am starting from scratch) as this will probably (eventually) be
the standard to replace HTML.
If you can't appreciate the very real problems in using it, then you
really need to do some more research before you dive in.

Sep 5 '07 #10

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

Similar topics

13
2754
by: Tim Tyler | last post by:
A fairly simple question: I have a library A which depends on library B and C. Currently I have: <?php include("A.inc.php"); include("B.inc.php"); include("C.inc.php");
2
1618
by: Joe Mowry | last post by:
First off, I'm posting this question for a friend that doesn't have access to the news groups. Problem: Using PHP as the base and has several PHP < includes > for various functions, all this by its self works just fine. Failure occurs on adding the XML include. Here's the wierd: If all the PHP includes are removed/commented out,
4
1641
by: Patrick | last post by:
I have an ASP site with about 50 ASP files, all of which are currently including a common "includes.asp" file near the top of the file, responsible for generating the <HEAD/> section of the HTML I need to make a change for 3 of those ASP files such that some dynamic HTML is generated in the <HEAD/> section. I want those dynamic HTML to appear only for 3 specific ASP files. Is there a more elegant way other than to 1) Dim...
4
1786
by: Generic Usenet Account | last post by:
I am seeing some unexpected behavior while using the STL "includes" algorithm. I am not sure if this is a bug with the template header files in our STL distribution, or if this is how it should work. For your benefit, let me first quote from the STL Standard Reference (Stepanov & Lee): template <class InputIterator1, class InputIterator2> bool includes(InputIterator1 first1, InputIterator1 last1,InputIterator2 first2, InputIterator2...
2
7685
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount of searching, I have found 3 possible solutions but none have worked for me. They are: 1. Use the Includes property of XmlSchema to add included XSDs, then call Compile XmlSchema mainSchema = XmlSchema.Read( stream1, null ); XmlSchema ...
12
3004
by: tshad | last post by:
I am not sure why I am getting this error: I have the following code I want to run from another include file that holds all my functions. functions.inc ************************************************************************************ <Script runat="Server"> Sub fnHeader(client As String) response.write("<!-- #include file = ../includes/staffingHeaders.inc -->")
6
2874
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server with SQL 2000. All new code is being written in C# using ASP.NET and we are using forms authentication to control access to particular directories/applications. We are having a hard time figuring out how to configure the thing so that existing...
3
2543
by: Jeff | last post by:
I have an asp page. Now I know this is sortof OT, but I am not sure of the forum to get an answer. I have an include on this asp page <!-- #include file=\forum\includes\consts-inc.asp --> now, it gives me this error: File attribute '\forum\includes\consts-inc.asp' cannot start with forward slash or back slash.
4
1840
by: Ron | last post by:
Hi all, Trying to work out a few problems in using php on my site. Partially this is a html question. I was reading a lot of the posts and it seems that some of the includes people are using are very complicated because of sessions or id's and variables I don't really know. So... Right now i use php for includes and getting some lists I make using mySQL and phpmyadmin and can get those out without error. For the most part a lot of my...
1
1686
by: JRough | last post by:
I have includes at the top of the file and I have inline includes also includes in mysql queries. For example: include './includes/config.inc.php'; include $include_path.'dates.inc.php'; include $include_path.'auction_types.inc.php'; include $include_path.'countries.inc.php'; include $include_path.'datacheck.inc.php'; include $include_path.'wordfilter.inc.php'; include $include_path.'converter.inc.php';
0
9883
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11359
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10928
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11069
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10543
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8102
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7259
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4779
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 we have to send another system

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.