Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DOCTYPE ... Transitional//EN

    can you change the langage

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">

    as

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//FR" "DTD/xhtml1-transitional.dtd">

    or any other langage or is it a fixed value ?

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    at a guess, i'm gonna say it's a fixed value, though really, i don't see any reason why it shouldn't be variable, aside from the fact that it would be a pain to write out a dtd for every language.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can even use diferent languages in one document,like shown in the example below from the W3c specs:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"
    "http://www.w3.org/xhtml2/DTD/xhtml2.dtd">
    <html xmlns="http://www.w3.org/2002/06/xhtml2" xml:lang="fr">
    <head>
    <title>Un document multilingue</title>
    </head>
    <body>
    <p>...Interpreted as French...</p>
    <p xml:lang="en-us">...Interpreted as US English...</p>
    <p>...Interpreted as French again...</p>
    <p>...French text interrupted by<em xml:lang="ja">some
    Japanese</em>French begins here again...</p>
    </body>
    </html>

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    128
    Thanks
    0
    Thanked 0 Times in 0 Posts

    3 small quseion

    thak you !

    and 3 small question on the subject

    1) can you use many title, keywords, descriptiom

    <title xml:lang="en">...a title here</title>

    <title xml:lang="fr">...Un titre ici</title>

    ?

    2) what is better

    xml:lang="en" or only lang="en" ?

    3) <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">

    why do you find on w3 the 2 attributes of langage , xml:lang="fr" l and ang="fr" )


    thank you again !


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •