473,564 Members | 2,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

legality/practicality of nesting complete, valid HTML pages

Folks:

Thank you all for your replies. I'll reply briefly to each key point:
My gut feeling is that if you can get past the feeling that this
solution is "fragile" you will be fine. Given that you want to work in
DW, it is the solution that is available to you. Use it, and don't be
afraid of it being fragile.
Thanks! You are probably correct. I wanted to be aware of other options,
that's all. Part of what got me in this mess is not finding out enough
before I jumped in.
[about the frequency of using includes]
It is very common indeed. The inclusion can be done by several
different mechanisms and it is often done off-line -- i.e. before the
page it uploaded using a template mechanism or macro processor.
Thanks, I checked out the template mechanism and it seemed cumbersome.
Using a generalized macro processor seems as if it might put me on the
command line more than I'd like to be. The PHP include mechanism seems just
right.
Well, I like my pages to validate, but it can be overrated from a
practical point of view. If you have existing content that works
exactly as you'd like I would probably have other things on my to do
list before making old pages validate.
Thank you for sharing your experience with validation.

In retrospect, clearly, I should have started by reducing all the existing
content to plain text and rebuilt _everything_ from scratch. I've ended up
doing that with a lot of intermediate wrong turns, but now the site can be
considered all new and so it seems reasonable to validate.

Here's another issue: As a result of having far too much on my plate, I
don't see how I can test the new site as I should, on multiple browsers and
OS platforms. Judging from the lack of response from the alpha group to home
I referred a reasonably good prototype, I have very little chance of getting
anything at all from a beta group. You may consider this a naïve theory,
but I have no clear alternative: I'm hoping that taking care to produce
fully validated code will help me avoid at least some such problems.
The high-level/low-level distinction is not a very useful one unless
you provide a definition of terms to haggle over. I use the tools I
use (rsync, sitecopy, wget, emacs, Perl, m4) because they make things
easier for me, not because they are some sort of puritan hair shirt
that make me admirable (but then I am not a professional web developer
so maybe I don't count). I have looked over the shoulders of people
using Dreamweaver and I wonder how they put up with it, but I image
they do exactly the same when they see me working. The oddity is that
your chosen tool is not, currently, making things easy for you.
HL versus LL is an interesting discussion on its own, but this site is
something like a year late and I need to concentrate on getting it on the
air.

I use tools such as wget, awk and Jedit when I have need for them. My
apparent difficulties with DW may be largely due to the fact that I started
this project knowing nothing about DW and little about web-authoring. Now I
know more, but as this discussion has demonstrated, the skills I've
developed are lopsided.

That said, at this point, I don't see DW as significantly better or worse
than the dozens of software Integrated Development Environments (IDEs) I've
encountered: adequate at many tasks, very convenient for some work, and
frustrating on other points.
For small sites with content that changes only every now and then I
use a text template mechanism to do the "includes" before uploading
the finished HTML: edit the content, run a build command, run
sitecopy.
Right, that makes sense. I'm hoping to collect significantly more content
in coming years, so I think it is reasonable to go about it differently. I
_think_ my scheme will be good for that.
The trend for larger sites seems to be to move the content to an
online content management system. This main advantage is to put the
content back into the hands of the people who generate and maintain
it.
Like Joomla? I've struggled with Joomla some. So far I find it too
generalized for my taste. I want to have full control, and I don't see how
I could do that with Joomla. But that is yet another independent
discussion.
Some documents start with a XML prelude. Also, can you be sure that
all yours have a DOCTYPE at the top? If not you'd need to be a bit
more flexible.
Thanks for mentioning that. Fortunately, I have complete control over the
chunks, even if I went out into the weeds by building them first with HTML
headers and trailers.
Not sure what you mean by that. PHP makes this sort of thing quite
easy. If you have a programming background, all you'd need is a PHP
reference manual. If not, you'd need to find a tame programmer.
Briefly: What I meant is making sure that there's room to process that one
page that I didn't notice grew to 15 times the size of the rest of the
pages. From what I've seen so far PHP has all sorts of cool, practical
tools and it will probably handle that just fine, possibly totally
auto-magically.
I think you missed the point. The tool is unimportant. But no tool is a
substitution for knowing what you are doing. Unfortunately some ( or
many) WYSIWYG editors either promote that "they can be a substitution
for knowing web design" or user mistakenly assume they are. You can make
valid code with almost any tool (well not really...MS Publisher is one
that comes to mind) but with many WYSIWYG editors it takes effort...and
maybe some hand tweaking.
Can't argue with that. Most of my index.php is handcrafted in DW Code
View, not much different than I'd do with a text editor. Of course my
design may be crappy, but so far it does what I expect of it and it hasn't
really broken.
[Name for this scheme, and are there good alternatives]
Ah... a "template" with "server-side includes". If using PHP then PHP
includes. If SSI then SSI includes, etc.
[recommended search terms] includes template web design tutorial
Thanks! That is just what I wanted to know. I spent some time searching
with terms like those and what I got was mostly sites offering me a
selection of existing templates, free or commercial. Now I know that I was
on the right track...
If you use a WYSIWYG editor to make your "parts" for the include files
then you may have to cut and paste the relevant bits from WYSIWYG
development page (code view) and paste into Notepad or something to make
your includes.
Tasks like this are trivial to do in DW by keeping both the WYSIWYG (Design
View) window and the Code View window open at the same time. When I first
saw that capability I thought, "Uh oh, this isn't going to work at all."
After some experience I'll say it doesn't work perfectly, but it isn't too
bad, either.
If you are using includes, your most unimportant development tool will
be a development web server. You can not do server-side includes with
"file://" protocol.
No problem. I created a dedicated subdomain on the server that hosts the
existing site. I've also had good results from using the built-in Apache
server on MacOS. Can work directly in the server tree -- don't even need to
upload.

[about parsing out header and trailer content at load time]
No, it may have some other info was well. Again RegExp is the tool. BUT
if you have access to all these pages then editing out the parts ahead
of time would be the BEST solution. Parsing is only done when you don't
have access to the source.
Yeah, it is clear I need to wipe the headers and trailers on the host. I'm
not a RegExp expert, but I think I can clean most of the files
semi-automatically. DW supports site-wide searches with RegExp.
The upshot is that the inserts must not have <headerstuff, CSS links,
or even <BODYtags... it must be just the inserted code. You do not
need to validate each insert, only validate the generated code.
Yep, my initial post said something like that.
>
I had a similar issue lately when I was working on a Wordpress site. I
don't (yet) use DW, but I read somewhere recently that there's a setting
in DW which allows you to categorise files as inserts, not full docs.
I haven't seen that. Maybe you are thinking about DW's "design-time style
sheets" mechanism. You tag specific header CSS links as design-time only and
those links get auto-filtered out before files are uploaded to the server.
As I commented in an earlier post, the implementation seems a bit fragile to
me. (Because it is applied manually, on a file-by-file basis: I will
forget!) There's an extension available from www.communitymx.com that
apparently applies this on a per-directory basis. I haven't tried it yet.

----

Thanks to everyone! My questions have been answered and I've learned a lot.

Henry

remove 'zzz'

Nov 21 '08 #1
0 1873

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

Similar topics

4
1006
by: jetobe | last post by:
Hi everyone, I am trying to debug someone's site which has <h3><a href="www.legislation.qld.gov.au">Queensland Acts</a></h3> The problem is that the <a> tag is taking precedence and overriding the <h3> tags that they want the text to resemble. It's problematic because it's a huge site (around 500 pages), it's in
4
10864
by: Hexman | last post by:
Code below ---- I've asked a similar question on this forum earlier. This is a slightly different situation. Previous Question ---- I'm trying to save some specific web pages to disk as text files. I searched the Internet and found a basic example which I changed to fit my needs. I tested it out first on a single URL and it worked...
6
2637
by: stephen.cunliffe | last post by:
Hi, I'm looking for opinion/facts/arguments on the correct nesting of UL, OL, & LI elements. For example, this is what I want (unordered list): * Item 1 * Item 2 * Item 3
32
2604
by: Request-1 | last post by:
hi folks, html coder here, new and terrified * of php!! aaaaaa! i'm trying to bury a JS script to rotate a photo, in a page i converted from html to php. the conversion went well, it was to use a php session cookie to stop the repeating of an embedded video file on a per session basis; i amended the php code to display a still pic if...
17
1896
by: henry | last post by:
Folks Here's a skeleton, generic HTML page, call it "index.php". You'll see a bit of php code in the middle: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
0
7583
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
7888
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. ...
1
7642
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
7950
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...
1
5484
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...
0
5213
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...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
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
1
1200
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.