How do I validate asp

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

    How do I validate asp

    Hi,
    I have an asp file with css file.
    I would like to validate my asp file (to make sure I don't have open
    divs without </div>, etc...).
    Since it's a big file, I am searching for an automatic tool to validate
    the asp, not only the css.
    Where can I find such tool?

    Thanks, Gabi.

  • David Dorward

    #2
    Re: How do I validate asp

    Gabriella wrote:
    I have an asp file with css file.
    I would like to validate my asp file (to make sure I don't have open
    divs without </div>, etc...).
    You cannot validate ASP. You can only run the ASP to generate output, which
    sounds like HTML given the context (ciwa.styleshee ts isn't really the place
    for this) and validate that.

    You could write program code (in the programming language of your choice)
    that would give the ASP different input so as to produce different sets of
    output and then send that output to a validator.

    But there isn't any software out there (as far as I know) which will read
    your ASP and work out all possible output to find syntax errors in that
    output.

    --
    David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • Jack

      #3
      Re: How do I validate asp

      David Dorward wrote:
      Gabriella wrote:
      >
      >I have an asp file with css file. I would like to validate my asp
      >file (to make sure I don't have open divs without </div>, etc...).
      >
      You cannot validate ASP. You can only run the ASP to generate output,
      which sounds like HTML given the context (ciwa.styleshee ts isn't
      really the place for this) and validate that.
      >
      You could write program code (in the programming language of your
      choice) that would give the ASP different input so as to produce
      different sets of output and then send that output to a validator.
      >
      But there isn't any software out there (as far as I know) which will
      read your ASP and work out all possible output to find syntax errors
      in that output.
      >
      It's impossible (isn't it?) I mean, I suppose that some ASP pages might
      contain code for which the number of possible HTML outcomes was
      deterministic - but in the general case, any given ASP page could have
      an infinite variety of different outcomes.

      From an ASP page it's possible to call library code; so even an ASP
      parser couldn't predict how the page might execute, except in a limited
      range of cases.

      Therefore it's theoretically impossible to predict whether an arbitrary
      ASP page will always, sometimes or never produce valid HTML. Only a warm
      geek can do that.

      Of course, if the ASP were produced in accordance with some specified
      scheme, and were restricted to some set of known libraries, then it
      could in theory be be validated.

      --
      Jack.
      Alo789 – Nhà cái đổi thưởng hàng đầu Việt Nam, mang đến trải nghiệm cá cược đỉnh cao với hệ thống trò chơi chơi đa dạng, nạp rút nhanh, bảo mật tuyệt đối...

      Comment

      • Harlan Messinger

        #4
        Re: How do I validate asp

        Jack wrote:
        David Dorward wrote:
        >Gabriella wrote:
        >>
        >>I have an asp file with css file. I would like to validate my asp
        >>file (to make sure I don't have open divs without </div>, etc...).
        >>
        >You cannot validate ASP. You can only run the ASP to generate output,
        >which sounds like HTML given the context (ciwa.styleshee ts isn't
        >really the place for this) and validate that.
        >>
        >You could write program code (in the programming language of your
        >choice) that would give the ASP different input so as to produce
        >different sets of output and then send that output to a validator.
        >>
        >But there isn't any software out there (as far as I know) which will
        >read your ASP and work out all possible output to find syntax errors
        >in that output.
        >>
        It's impossible (isn't it?) I mean, I suppose that some ASP pages might
        contain code for which the number of possible HTML outcomes was
        deterministic - but in the general case, any given ASP page could have
        an infinite variety of different outcomes.
        Sure. What would a validator do with:
        <%
        dim x
        x = "div"
        %>
        <div><<%=x%>> </div>


        What if the value of x were chosen at random from an array of several
        tag names?

        Comment

        • PDannyD

          #5
          Re: How do I validate asp

          On Friday 28 July 2006 17:16, Gabriella [frohlinger@yaho o.com] wrote in
          message <1154103372.403 994.279460@i42g 2000cwa.googleg roups.com>
          Hi,
          I have an asp file with css file.
          I would like to validate my asp file (to make sure I don't have open
          divs without </div>, etc...).
          Since it's a big file, I am searching for an automatic tool to validate
          the asp, not only the css.
          Where can I find such tool?
          Does this help?

          W3C's easy-to-use markup validation service, based on SGML and XML parsers.


          "If, for some reason, you prefer running your own instance of the Markup
          Validator, check out our developer's documentation."
          W3C's easy-to-use markup validation service, based on SGML and XML parsers.

          Comment

          • Jim Moe

            #6
            Re: How do I validate asp

            Gabriella wrote:
            I have an asp file with css file.
            I would like to validate my asp file (to make sure I don't have open
            divs without </div>, etc...).
            >
            View the page in a (non-IE) browser. Save the page as some HTML file.
            Validate that file.

            --
            jmm (hyphen) list (at) sohnen-moe (dot) com
            (Remove .AXSPAMGN for email)

            Comment

            • Darin McGrew

              #7
              Re: How do I validate asp

              Gabriella wrote:
              >I have an asp file with css file.
              >I would like to validate my asp file (to make sure I don't have open
              >divs without </div>, etc...).
              Jim Moe <jmm-list.AXSPAMGN@s ohnen-moe.comwrote:
              View the page in a (non-IE) browser. Save the page as some HTML file.
              Validate that file.
              With Opera, you can view the page and hit Ctrl-Alt-V to send it to the
              validator.
              --
              Darin McGrew, mcgrew@stanford alumni.org, http://www.rahul.net/mcgrew/
              Web Design Group, darin@htmlhelp. com, http://www.HTMLHelp.com/

              "Adventure is nothing but a romantic name for trouble." - Louis L'Amour

              Comment

              Working...