>I believe this is an off list question since I have not got to the CSS
>portion of the page, so please reply off list. There are two reasons I
>post it here 1) don't know where else to post it and 2) DOCTYPE and
>validation are mentioned with 80-90% of the posts.


A moderator writes:

Never ever post to css-d just because you don't know where else to 
post. Off topic is off topic. Even if you include a request to post 
replies off list.

A useful resource for other useful lists can be found at the, er, off 
topic page of the css-d wiki

    http://css-discuss.incutio.com/?page=OffTopic

Yes, some posts mention that the code that's causing the poster 
problems validates or a responder points out that until the code is 
fixed and does validate that the problems will be hard to track down. 
That's common sense and in the case of someone coming looking for 
help, shows the list that they've done their homework

    http://css-discuss.incutio.com/?page=MysteryBug


>I am trying to validate my aspx file and I get a lot of errors. I have
>changed my DOCTYPE to:
>
>!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> which I got from
>
>http://www.alistapart.com/stories/doctype/

Ouch.

You don't just get your doctype. I'm afraid you have to understand 
what it is and why you're choosing it.

The doctype tells the browser (or whatever agent receives the page) 
what type of markup the page uses. You've chosen XHTML1.1 which 
hardly anyone should use in any case, but which is a recipe for 
disaster when just plonked into a stock asp page. If you're 
completely in control of the output and starting from scratch, then a 
strict doctype is a good thing to aim for. That's what Zeldman was 
saying, if not as well as he has put other subjects on occasion. Here 
though, unless you understand what output is being generated, you're 
probably best off as Eric Meyer recommends in the second link, not 
bothering with a doctype at all:

    http://css-discuss.incutio.com/?page=DocType
    http://www.oreillynet.com/pub/a/network/2000/04/14/doctype/index.html?page=2
    http://hsivonen.iki.fi/doctype/


>Error Line 18 column 43: there is no attribute "face".
>...id="_ctl0_HeaderLabel"><b><font face="Arial" color="Yellow"
>size="5">First Ba

Yes, because XHTML1.1 is the strictest of the strict and there is no 
font tag since it has been deprecated and consequently no face 
attribute either.


>The above line is emitted by the server and IIS on the line:
>
><asp:label id="HeaderLabel" runat="server" ... />

Please. Under no circumstances ever post language specific code to 
the list. If you feel you must, then you should be posting to a list 
that deals with the language in question (in this instance a quick 
search revealed http://aspadvice.com/ - it may not be any good but 
the point is that plenty of such resources exist out there).


>I can get around the various controls provided by ASP.NET by coding my own
>statements.

Fine. But you still need to understand the doctype that you're using. 
And make sure that you send your XHTML1.1 with the correct mimetype

    http://www.htmldog.com/guides/htmladvanced/declarations/

That's why I said hardly anyone should use it earlier.


>I can also get around the problems by using techiques from
>http://www.htmlhelp.com/tools/validator/customdtd.html and building my own
>DTD. All I have to do is learn DTD with the correct DOCTYPE.

That would be, and I'm sorry I can't put this more politely, crazy.

The non-crazy way would be to use a doctype that is more suitable for 
your purposes and code to that doctype; or use none at all.


>Is there a better way short of changing hosts and using PHP? The price is
>right on the host and PHP in not offered at our level.

Utterly utterly off topic and not suitable for this list.


>Is there a better site for validation? I currently have to FTP the files
>to the host, validate the page, make the repairs and FTP again. My session
>times out because I am typing impaired.

If you use IE, I believe that the DevToolbar allows you to validate local pages

 
http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en

Alternatively, if not, you can certainly do so from within Firefox.

1. Install Firefox (this step you have done already, surely?)
2. Install the Web Developer Extension

    http://chrispederick.com/work/webdeveloper/



Alex Robinson
css-d moderator
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to