beginning with XHTML 1.0

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Werner Partner

    beginning with XHTML 1.0

    I tried to begin with XHTML 1.0 and succeeded to get one document valid.

    But I got a feedback which sounds as if I should change something in my
    document:

    The document located at <http://www.kantele.de/> was tentatively
    found to be Valid. That means it would validate as XHTML 1.0
    Transitional if you updated the source document to match the options
    used (typically this message indicates that you used either the Document
    Type override or the Character Encoding override).

    I suppose that the document declaration at the beginning of my document
    is not correct.

    At the end of the document there is the icon for HTML 4.01,
    where can I get the coresponding icon for XHTML 1.0

    Thanks for help

    Werner

    --
    -----------------------------------------------------------
    Werner Partner * Tel +49 2366 886606 * Fax: 886608
    mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
    hören Sie Klassik: http://www.drmk.ch/
  • Neal

    #2
    Re: beginning with XHTML 1.0

    On Sat, 03 Apr 2004 20:26:42 +0200, Werner Partner <kairos@sonopti kon.de>
    wrote:
    [color=blue]
    > I tried to begin with XHTML 1.0 and succeeded to get one document valid.
    >
    > But I got a feedback which sounds as if I should change something in my
    > document:
    >
    > The document located at <http://www.kantele.de/> was tentatively
    > found to be Valid. That means it would validate as XHTML 1.0
    > Transitional if you updated the source document to match the options
    > used (typically this message indicates that you used either the Document
    > Type override or the Character Encoding override).
    >
    > I suppose that the document declaration at the beginning of my document
    > is not correct.
    >
    > At the end of the document there is the icon for HTML 4.01,
    > where can I get the coresponding icon for XHTML 1.0
    >
    > Thanks for help
    >
    > Werner
    >[/color]

    You have

    <!doctype html
    public "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

    Capitalize "DOCTYPE" and "PUBLIC"

    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

    and it should work.

    If I were you, I'd change <meta></meta> to <meta /> - same with <br />,
    <hr /> and <img />.

    Actually if I were you, I'd use a strict DTD (either XHTML or HTML 4.01)
    for a new document and replace all deprecated HTML with stylesheet info.
    Maybe I'm missing something, but I don't see the sense of XHTML if you're
    using font tags and such.

    Comment

    • Jukka K. Korpela

      #3
      Re: beginning with XHTML 1.0

      Neal <neal413@spamrc n.com> wrote:
      [color=blue]
      > Capitalize "DOCTYPE" and "PUBLIC"[/color]

      I hadn't realized that XML really makes those strings case sensitive.
      The validator's behavior is rather odd. It should naturally report that
      there was no document type declaration available, hence validation is by
      definition impossible. Instead it seems to imply HTML 4.01 Transitional
      without saying so.

      There's a validator with more readable reports at

      (though it is technically in error in the sense of accepting the strings
      doctype and public in lower case in XHTML).

      --
      Yucca, http://www.cs.tut.fi/~jkorpela/
      Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

      Comment

      • Jukka K. Korpela

        #4
        Re: beginning with XHTML 1.0

        Werner Partner <kairos@sonopti kon.de> wrote:
        [color=blue]
        > I tried to begin with XHTML 1.0 and succeeded to get one document
        > valid.[/color]

        Not really. The validator's report is misleading, if not plain wrong.
        [color=blue]
        > The document located at <http://www.kantele.de/> was tentatively
        > found to be Valid.[/color]

        There's no such thing as being tentatively valid (any more like being
        tentatively alive, or tentatively true), and whenever someone writes
        "Valid" with capital initial inside normal text, some bogosity alert
        bells should ring.
        [color=blue]
        > I suppose that the document declaration at the beginning of my
        > document is not correct.[/color]

        Neal pointed out what was wrong with that. You had presumably tried to
        validate the document as is, then used the "doctype override" feature in
        the validator's user interface. The feature is useful per se, but the way
        that the validator reports the effects is not. And you don't need the
        feature if you change the doctype declaration.
        [color=blue]
        > At the end of the document there is the icon for HTML 4.01,
        > where can I get the coresponding icon for XHTML 1.0[/color]

        The icons are worse than useless. They add nothing to the value of your
        page, but the distract from the content and create enigmas to most users.
        Besides, they may mislead other authors into "spreading the word".
        For more details, see http://www.cs.tut.fi/~jkorpela/html/validation.html

        --
        Yucca, http://www.cs.tut.fi/~jkorpela/
        Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

        Comment

        • Werner Partner

          #5
          Re: beginning with XHTML 1.0

          Neal schrieb:
          [color=blue]
          > On Sat, 03 Apr 2004 20:26:42 +0200, Werner Partner
          > <kairos@sonopti kon.de> wrote:
          >[color=green]
          >> I tried to begin with XHTML 1.0 and succeeded to get one document valid.
          >>
          >> But I got a feedback which sounds as if I should change something in
          >> my document:
          >>
          >> The document located at <http://www.kantele.de/> was tentatively
          >> found to be Valid. That means it would validate as XHTML 1.0
          >> Transitional if you updated the source document to match the options
          >> used (typically this message indicates that you used either the
          >> Document Type override or the Character Encoding override).
          >>
          >> I suppose that the document declaration at the beginning of my
          >> document is not correct.
          >>
          >> At the end of the document there is the icon for HTML 4.01,
          >> where can I get the coresponding icon for XHTML 1.0
          >>
          >> Thanks for help
          >>
          >> Werner
          >>[/color]
          >
          > You have
          >
          > <!doctype html
          > public "-//W3C//DTD XHTML 1.0 Transitional//EN"
          > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
          >
          > Capitalize "DOCTYPE" and "PUBLIC"
          >
          > <!DOCTYPE html
          > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
          >
          > and it should work.
          >
          > If I were you, I'd change <meta></meta> to <meta /> - same with <br />,
          > <hr /> and <img />.[/color]

          Thanks! I think <meta>gwgb gbw gb ew bg ebg</meta> makes sense, and
          <img>egvw egwewbg</img>, too.

          But<hr /> an <br /> is indeed better!
          [color=blue]
          >
          > Actually if I were you, I'd use a strict DTD (either XHTML or HTML 4.01)
          > for a new document and replace all deprecated HTML with stylesheet info.
          > Maybe I'm missing something, but I don't see the sense of XHTML if
          > you're using font tags and such.[/color]

          That's the way. I used a less complicated document for tests, then I
          will convert more and more documents. I began with tags only some years
          ago. In the last two weeks I habe intensively chanced to "style=" options.

          Werner


          --
          -----------------------------------------------------------
          Werner Partner * Tel +49 2366 886606 * Fax: 886608
          mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
          hören Sie Klassik: http://www.drmk.ch/

          Comment

          • Werner Partner

            #6
            Re: beginning with XHTML 1.0

            Jukka K. Korpela schrieb:
            [color=blue]
            > Werner Partner <kairos@sonopti kon.de> wrote:
            >
            >[color=green]
            >>I tried to begin with XHTML 1.0 and succeeded to get one document
            >>valid.[/color]
            >
            >
            > Not really. The validator's report is misleading, if not plain wrong.
            >
            >[color=green]
            >> The document located at <http://www.kantele.de/> was tentatively
            >>found to be Valid.[/color]
            >
            >
            > There's no such thing as being tentatively valid (any more like being
            > tentatively alive, or tentatively true), and whenever someone writes
            > "Valid" with capital initial inside normal text, some bogosity alert
            > bells should ring.[/color]

            Yes! I understood it so that the Validator says: "We pass it through but
            you should change some things". Anyway it should say what is wrong.
            [color=blue]
            >
            >[color=green]
            >>I suppose that the document declaration at the beginning of my
            >>document is not correct.[/color]
            >
            >
            > Neal pointed out what was wrong with that. You had presumably tried to
            > validate the document as is, then used the "doctype override" feature in
            > the validator's user interface. The feature is useful per se, but the way
            > that the validator reports the effects is not. And you don't need the
            > feature if you change the doctype declaration.[/color]

            (done)
            [color=blue]
            >
            >[color=green]
            >>At the end of the document there is the icon for HTML 4.01,
            >>where can I get the coresponding icon for XHTML 1.0[/color]
            >
            >
            > The icons are worse than useless. They add nothing to the value of your
            > page, but the distract from the content and create enigmas to most users.
            > Besides, they may mislead other authors into "spreading the word".
            > For more details, see http://www.cs.tut.fi/~jkorpela/html/validation.html
            >[/color]

            Very interesting and good article. For me in this phase now validation
            is a control for me and my documents. The icon is insofar practical as I
            just have to click on it, and validation begins. GMD ist very small and
            fine, but I always have to write the link. Otherwise I can go from link
            to link, and validate, validate, validate ...

            You write about an interesting aspect of difference between German and
            Finnish communication which puzzled me some years ago (Pertti Widén from
            Turun Kauppaopisto has written an interesting article about that item):

            We Germans give feedback even if there is nothing to say ("I have heared
            and understood what you said"), Finnish people just say nothing. This
            leads to several misunderstandin g, so sometimes Germans think that the
            Finnish partner has not heared or understood what he said. I suppose
            that on the Finnish side there are thoughts like "Why does he explain so
            much to me, does he think I'm stupid?").

            regards to Tampere and thanks for the help

            Werner


            --
            -----------------------------------------------------------
            Werner Partner * Tel +49 2366 886606 * Fax: 886608
            mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
            hören Sie Klassik: http://www.drmk.ch/

            Comment

            • Jukka K. Korpela

              #7
              Re: beginning with XHTML 1.0

              Werner Partner <kairos@sonopti kon.de> wrote:
              [color=blue]
              > For me in this phase now
              > validation is a control for me and my documents. The icon is insofar
              > practical as I just have to click on it, and validation begins. GMD
              > ist very small and fine, but I always have to write the link.[/color]

              You could bookmark the validation results page, like

              Unfortunately both the W3C validator and the WDG validator use a
              generic <title> element (like "Validation results") for their response
              page - yet another "do as they teach, not as they do" thing. :-)
              Of course the result page _should_ have a <title> like
              Validation results for http://www.kantele.de
              or
              Validation results for Kantele
              (using the <title> of the validated page; note however that this <title>
              in turn is not optimal - it is not understandable in a global context).

              But you can set the name of the bookmark manually, and this is less work
              than adding those icons and links onto the pages themselves.

              Admittedly there's the problem that bookmarks are browser-dependent.
              But I don't think author's convenience should dictate what a page
              contains. It's like an "equipment or crew visible" phenomenon in a movie.

              --
              Yucca, http://www.cs.tut.fi/~jkorpela/
              Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

              Comment

              • David Dorward

                #8
                Re: beginning with XHTML 1.0

                Werner Partner wrote:[color=blue]
                > The icon is insofar practical as I
                > just have to click on it, and validation begins. GMD ist very small and
                > fine, but I always have to write the link. Otherwise I can go from link
                > to link, and validate, validate, validate ...[/color]

                You might want to take a look at
                http://www.chrispederick.com/work/firefox/webdeveloper/ then.

                --
                David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>

                Comment

                • Werner Partner

                  #9
                  Re: beginning with XHTML 1.0 - advances

                  Werner Partner schrieb:
                  [color=blue]
                  > I tried to begin with XHTML 1.0 and succeeded to get one document valid.[/color]

                  Thanks for the help.
                  I was now working with a very small site, trying to convert everything
                  to XHTML 1.0 Strict. That means taking away all styles from tags and
                  putting them into the style sheet.

                  It went quite easy and o.k. (although there are some features which seem
                  not to be correct in my css-File). I checked the site and everything is
                  o.k (except <u>).

                  Now I see some differences between the original site and the new one.
                  New one:


                  Old one:


                  It is easy to see if clicking in the first document on "[Kontakt]".

                  There are minimal differences in spacing and padding.

                  The original (korrect) source (kontakt.php) was:

                  ----------------------
                  <table cellpadding=4 cellspacing=1 width="100%">
                  <tr>
                  <td bgcolor="#eeeee e" class="doc"></td>
                  <td bgcolor="#eeeee e" class="doc" valign="middle" width="100%"></td>
                  </tr>
                  <tr>
                  <td bgcolor="#eeeee e" class="doc" valign="top" align="center"> </td>
                  <td bgcolor="#fffff f" valign="top" width="100%"></td>
                  </tr>
                  </table>
                  ----------------------

                  Now I have:
                  ----------------------
                  <table class="frame">
                  <tr>
                  <td class="icon"></td>
                  <td class="banner"> </td>
                  </tr>
                  <tr>
                  <td class="lframe"> </td>
                  <td class="doc"></td>
                  </tr>
                  </table>

                  and these are the css lines:
                  ----------------------
                  ..frame { width:100%; }
                  /* <table cellpadding=4 cellspacing=1 width=\"100%\"> */

                  ..icon { background-color:#EEEEEE; vertical-align:middle; padding:4px;
                  spacing:1px; width:1%;}
                  ..banner { background-color:#EEEEEE; vertical-align:middle;
                  padding:4px;}
                  ..lframe { background-color:#EEEEEE; vertical-align:top; padding:4px;
                  text-align:center; }
                  ..doc { background-color:#FFFFFF; vertical-align:top; padding:4px;
                  text-align:left;}
                  ----------------------

                  The main difference which I see is the grey frame under the Picture left
                  above which is normal thin in kontakt.php. I could not find out until
                  now what is the reason. The elements are somehow minimally differently
                  located.

                  The Text in the left frame is in kontakt.php above, in kairos.htm there
                  is more distance. In general, kontakt.php is correct, and I want to have
                  the same in index.html.

                  Thanks for help

                  Werner

                  --
                  -----------------------------------------------------------
                  Werner Partner * Tel +49 2366 886606 * Fax: 886608
                  mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
                  hören Sie Klassik: http://www.drmk.ch/

                  Comment

                  • Werner Partner

                    #10
                    Re: beginning with XHTML 1.0

                    Werner Partner schrieb:
                    [color=blue]
                    > I tried to begin with XHTML 1.0 and succeeded to get one document valid.[/color]


                    Thanks for the help.
                    I was now working with a very small site, trying to convert everything
                    to XHTML 1.0 Strict. That means taking away all styles from tags and
                    putting them into the style sheet.

                    It went quite easy and o.k. (although there are some features which seem
                    not to be correct in my css-File). I checked the site and everything is
                    o.k (except <u>).

                    Now I see some differences between the original site and the new one.
                    New one:


                    Old one:


                    It is easy to see if clicking in the first document on "[Kontakt]".

                    There are minimal differences in spacing and padding.

                    The original (korrect) source (kontakt.php) was:

                    ----------------------
                    <table cellpadding=4 cellspacing=1 width="100%">
                    <tr>
                    <td bgcolor="#eeeee e" class="doc"></td>
                    <td bgcolor="#eeeee e" class="doc" valign="middle" width="100%"></td>
                    </tr>
                    <tr>
                    <td bgcolor="#eeeee e" class="doc" valign="top" align="center"> </td>
                    <td bgcolor="#fffff f" valign="top" width="100%"></td>
                    </tr>
                    </table>
                    ----------------------

                    Now I have:
                    ----------------------
                    <table class="frame">
                    <tr>
                    <td class="icon"></td>
                    <td class="banner"> </td>
                    </tr>
                    <tr>
                    <td class="lframe"> </td>
                    <td class="doc"></td>
                    </tr>
                    </table>

                    and these are the css lines:
                    ----------------------
                    ..frame { width:100%; }
                    /* <table cellpadding=4 cellspacing=1 width=\"100%\"> */

                    ..icon { background-color:#EEEEEE; vertical-align:middle; padding:4px;
                    spacing:1px; width:1%;}
                    ..banner { background-color:#EEEEEE; vertical-align:middle;
                    padding:4px;}
                    ..lframe { background-color:#EEEEEE; vertical-align:top; padding:4px;
                    text-align:center; }
                    ..doc { background-color:#FFFFFF; vertical-align:top; padding:4px;
                    text-align:left;}
                    ----------------------

                    The main difference which I see is the grey frame under the Picture left
                    above which is normal thin in kontakt.php. I could not find out until
                    now what is the reason. The elements are somehow minimally differently
                    located.

                    The Text in the left frame is in kontakt.php above, in kairos.htm there
                    is more distance. In general, kontakt.php is correct, and I want to have
                    the same in index.html.

                    Thanks for help

                    Werner

                    --
                    -----------------------------------------------------------
                    Werner Partner * Tel +49 2366 886606 * Fax: 886608
                    mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
                    hören Sie Klassik: http://www.drmk.ch/

                    Comment

                    • Haines Brown

                      #11
                      Re: beginning with XHTML 1.0

                      "Jukka K. Korpela" <jkorpela@cs.tu t.fi> writes:
                      [color=blue]
                      > Werner Partner <kairos@sonopti kon.de> wrote:
                      >[color=green]
                      > > For me in this phase now validation is a control for me and my
                      > > documents. The icon is insofar practical as I just have to click
                      > > on it, and validation begins. GMD ist very small and fine, but I
                      > > always have to write the link.[/color]
                      >
                      > You could bookmark the validation results page, like
                      > http://validator.w3.org/check?uri=ht...www.kantele.de[/color]

                      At the risk of heading in an off-topic direction, I wonder if there is
                      an alternative approach to easy validation of local documents. Let me
                      take the WDG Browse validator as an example, for it nicely validates
                      such documents.

                      I generate a large number of documents in emacs that are based on a
                      template that validates OK. However, the handiwork method I use lends
                      itself typos in the HTML coding that a validation quickly picks up. It
                      would be nice to create a macro in emacs that would pass the address
                      of the document displayed in the active buffer to the WDG site for
                      validation. For example, it would spot a <q> container that is not
                      closed.

                      I now rely on a quick visual inspection, which is of course
                      unreliable. If I were to go to my web browser, open the WDG Browse
                      page, browse for my local document and then validate it, it would end
                      up too complex and time-consuming a procedure if I had to repeat it
                      dozens of times a day.

                      The emacs side does not seem difficult, but I'm not sure whether I can
                      pass on a local address when I call the WDG validator. I'd like to
                      construct a "validate" command in emacs that causes my browser to
                      visit the WDG site and display the result of its validation of the
                      current document. This may be more an emacs question, but wondered if
                      folks had some insight on the web site end.

                      --
                      Haines Brown

                      Comment

                      • Werner Partner

                        #12
                        Re: beginning with XHTML 1.0 - advances

                        Werner Partner schrieb:
                        [color=blue]
                        > Werner Partner schrieb:
                        >[color=green]
                        >> I tried to begin with XHTML 1.0 and succeeded to get one document valid.[/color]
                        >
                        >
                        > Thanks for the help.
                        > I was now working with a very small site, trying to convert everything
                        > to XHTML 1.0 Strict. That means taking away all styles from tags and
                        > putting them into the style sheet.
                        >[/color]

                        As I just see the cooperatoin with stylesheet works in my surrounding,
                        but not in the web.

                        I should proof that...

                        Werner

                        --
                        -----------------------------------------------------------
                        Werner Partner * Tel +49 2366 886606 * Fax: 886608
                        mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
                        hören Sie Klassik: http://www.drmk.ch/

                        Comment

                        • Werner Partner

                          #13
                          Re: beginning with XHTML 1.0 - advances

                          Werner Partner schrieb:
                          [color=blue]
                          > Werner Partner schrieb:
                          >[color=green]
                          >> Werner Partner schrieb:
                          >>[color=darkred]
                          >>> I tried to begin with XHTML 1.0 and succeeded to get one document valid.[/color]
                          >>
                          >>
                          >>
                          >> Thanks for the help.
                          >> I was now working with a very small site, trying to convert everything
                          >> to XHTML 1.0 Strict. That means taking away all styles from tags and
                          >> putting them into the style sheet.
                          >>[/color]
                          >
                          > As I just see the cooperatoin with stylesheet works in my surrounding,
                          > but not in the web.
                          >
                          > I should proof that...[/color]

                          [proofed] *g*

                          Werner


                          --
                          -----------------------------------------------------------
                          Werner Partner * Tel +49 2366 886606 * Fax: 886608
                          mailto:kairos@s onoptikon.de * http://www.sonoptikon.de
                          hören Sie Klassik: http://www.drmk.ch/

                          Comment

                          • Nick Kew

                            #14
                            Re: beginning with XHTML 1.0

                            In article <877jwvzkv6.fsf @teufel.hartfor d-hwp.com>,
                            Haines Brown <brownh@teufel. hartford-hwp.com> writes:
                            [color=blue]
                            > The emacs side does not seem difficult, but I'm not sure whether I can
                            > pass on a local address when I call the WDG validator. I'd like to
                            > construct a "validate" command in emacs that causes my browser to
                            > visit the WDG site and display the result of its validation of the
                            > current document. This may be more an emacs question, but wondered if
                            > folks had some insight on the web site end.[/color]

                            Most mainstream browsers have validation packs either bundled or
                            available from third-parties. Emacs even has its own SGML mode,
                            though I'm afraid I can't help with setting it up.

                            But as regards validating as you work, you'd probably be better off
                            installing a validator locally than using an online service. As an
                            emacs person, I'd guess there's a strong chance you have the basic
                            GTK libraries available, in which case you could install validator-lite.

                            --
                            Nick Kew

                            Nick's manifesto: http://www.htmlhelp.com/~nick/

                            Comment

                            • Eric B. Bednarz

                              #15
                              Re: beginning with XHTML 1.0

                              Haines Brown <brownh@teufel. hartford-hwp.com> writes:
                              [color=blue]
                              > At the risk of heading in an off-topic direction, I wonder if there is
                              > an alternative approach to easy validation of local documents.[/color]

                              Since you are using emacs, your situation is quite comfortable; if you
                              don't already have it on your system, get

                              PSGML
                              <http://www.lysator.liu .se/projects/about_psgml.htm l>

                              and

                              SP
                              <http://www.jclark.com/sp/>

                              Instead of SP you may want to alternatively try the patched version at
                              <http://www.htmlhelp.co m/tools/validator/offline/>
                              which can resolve document instances and declaration subsets on remote
                              name based virtual hosts.

                              In SGML mode you can just type <C-c><C-v> to have the file in the
                              current buffer validated, with the result displayed in a split buffer.
                              Well, after you've put the proper instructions in your init file ;-)

                              But that shouldn't even be necessary when you use PSGML for the
                              authoring part, since it actually parses the doctype declaration and
                              only offers (numerous) valid options to insert/complete markup.


                              --
                              | ) 111010111011 | http://bednarz.nl/
                              -(
                              | ) Distribute me: http://binaries.bednarz.nl/mp3/aisha

                              Comment

                              Working...