DWT BeginTemplate - I need it to include the DTD

  • Thread starter Kulvinder Singh Matharu
  • Start date
K

Kulvinder Singh Matharu

I've got DWT on my pages now and am reasonably satisfied with the
results.

However, on my web pages with the attached DWTs, I noticed that the
DWT template starts after the <html> tag...I actually want it to
start from the beginning of the page so as to include the DTDs (this
would allow me to easily make global changes to the DTD).

For clarification, the appropriate DTD is included in the actual DWT.
When I create a new page and then attach a DWT then the entire DWT
including the DTD is copied over. However, if I now make any changes
to the DTD in the DWT then these changes ARE NOT copied over to the
appropriate web pages as the BeginTemplate in these web pages is
right after the <html> tag.

I can use the "Replace" command to replace the DTD but this shouldn't
be the way to do it. Can anyone help? Thanks in advance.

See these pages (note that I've aligned the DTDs) :

Web page:
http://www.metalvortex.com/poems/index.htm

DWT:
http://www.metalvortex.com/_dwt/template1.dwt

--
Kulvinder Singh Matharu
Website : www.metalvortex.com
Contact : www.metalvortex.com/form/form.htm

"It ain't Coca Cola, it's rice", Straight to Hell - The Clash
 
M

Murray

The DTD must be the first thing on the page. It's properly positioned in
the template.

I suspect that like Dreamweaver, FP considers the region above <html> and
below </html> to behave as if they were editable regions - this means that
changes there will not propagate to any existing child pages.

But I am curious - why would you want to change doctypes?
 
K

Kulvinder Singh Matharu

On Sun, 22 May 2005 11:34:21 -0400, "Murray"

[snip]
But I am curious - why would you want to change doctypes?

Hi,

I'm actually experimenting with different tags...some deprecated,
some in either HTML4.01 or XHTML and in combinations of Strict or
Transitional and checking compatibility in different browsers to see
what I can get away with!

For example, the DTD at the moment is XHTML Transitional...and that's
actually a big lie if you check the code ;-) It definitely won't
validate but I don't care too much at this stage. I may put in a
Custom DTD if I get really hung-up on getting validation.

Why don't I use code that validates? The main reason is that
FrontPage currently generates <nobr> tags in the navigation component
and that isn't allowed in either HTML4.01 or XHTML as far as I can
tell.

It isn't a real big problem but I was just curious why I couldn't
just DWTs to make global changes to the DTDs. It just seemed a
logical way of doing so.

Regards,

--
Kulvinder Singh Matharu
Website : www.metalvortex.com
Contact : www.metalvortex.com/form/form.htm

"It ain't Coca Cola, it's rice", Straight to Hell - The Clash
 
M

Murray

You cannot propagate those changes from template to child in FP.

--
Murray
============

Kulvinder Singh Matharu said:
On Sun, 22 May 2005 11:34:21 -0400, "Murray"

[snip]
But I am curious - why would you want to change doctypes?

Hi,

I'm actually experimenting with different tags...some deprecated,
some in either HTML4.01 or XHTML and in combinations of Strict or
Transitional and checking compatibility in different browsers to see
what I can get away with!

For example, the DTD at the moment is XHTML Transitional...and that's
actually a big lie if you check the code ;-) It definitely won't
validate but I don't care too much at this stage. I may put in a
Custom DTD if I get really hung-up on getting validation.

Why don't I use code that validates? The main reason is that
FrontPage currently generates <nobr> tags in the navigation component
and that isn't allowed in either HTML4.01 or XHTML as far as I can
tell.

It isn't a real big problem but I was just curious why I couldn't
just DWTs to make global changes to the DTDs. It just seemed a
logical way of doing so.

Regards,

--
Kulvinder Singh Matharu
Website : www.metalvortex.com
Contact : www.metalvortex.com/form/form.htm

"It ain't Coca Cola, it's rice", Straight to Hell - The Clash
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top