Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

xhtml question

Options
  • 04-03-2002 4:12pm
    #1
    Registered Users Posts: 2,660 ✭✭✭


    I'm reading through the xhtml recommendation, and I'm just wondering if server side includes in an xhtml document will have any effect on the wellformedness of an xhtml document. I would assume not as all you should have to do is end the tag. Since I am not certain, however, I would like to know the answer if anyone knows it for definite.

    While I'm on the subject of server side includes, is it possible to include a file in an xhtml document (or even a plain html one) which has a further server side include directive to include another file.

    thanks in advance

    Baz_


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    I'm just wondering if server side includes in an xhtml document will have any effect on the wellformedness of an xhtml document.

    Are <!-- comments --> still valid in XHTML? If so, it doesn't matter, as Includes are embedded in comments. If not, SSI tags replace themselves in XHTML documents, so the source document won't validate, but the generated document will (as long as it is valid XHTML, obviously).

    is it possible to include a file in an xhtml document (or even a plain html one) which has a further server side include directive to include another file.

    Depends on the webserver, but in Apache, yes, Includes can be nested.

    http://httpd.apache.org/docs/mod/mod_include.html

    adam


Advertisement