Examples of XHTMLValidator


Examples of br.com.caelum.tubaina.util.XHTMLValidator

    if (resourceCopyFailed)
      throw new TubainaException("Couldn't copy some resources. See the Logger for further information");
  }

  private void validateXHTML(File directory, List<String> dirTree) {
    XHTMLValidator validator = new XHTMLValidator();
    boolean foundInvalidXHTML = false;
    for (String s : dirTree) {
      if (!validator.isValid(directory, s)){
        foundInvalidXHTML = true;
        LOG.warn("This is not a xhtml valid file: " + s + "/index.html");
      }
    }
    if (foundInvalidXHTML)
View Full Code Here

Examples of br.com.caelum.tubaina.util.XHTMLValidator

        return dirTree;
    }

    private void validateXHTML(final File directory, final List<String> dirTree) {
        XHTMLValidator validator = new XHTMLValidator();
        boolean foundInvalidXHTML = false;
        for (String s : dirTree) {
            if (!validator.isValid(directory, s)) {
                foundInvalidXHTML = true;
                LOG.warn("This is not a xhtml valid file: " + s + "/index.html");
            }
        }
        if (foundInvalidXHTML) {
View Full Code Here

Examples of com.nutrun.xhtml.validator.XhtmlValidator

      parser.setFeature(Parser.defaultAttributesFeature, true);
      parser.setContentHandler(x);
      InputSource is = new InputSource(in);
      is.setEncoding("UTF-8");
      parser.parse(is);
      XhtmlValidator validator = new XhtmlValidator();
      xhtml = w.toString();
      bytes = (XHTML_START + xhtml).getBytes("UTF-8");
      in = new ByteArrayInputStream(bytes);
      validator.isValid(in);
      String[] errors = validator.getErrors();
      if (errors.length > 0) {
        System.out.println(">>>>>");
        for (int i = 0; i < errors.length; i++) {
          System.out.println(errors[i]);
        }
View Full Code Here

Examples of org.xwiki.validator.XHTMLValidator

        // forget to add it here and the tests won't be run but we'll not know about it and we'll
        // think the tests are all running fine. I haven't found a simple solution to this yet
        // (there are complex solutions like searching for all tests by parsing the source tree).
        // I think there are TestSuite that do this out there but I haven't looked for them yet.

        XHTMLValidator xhtmlValidator = new XHTMLValidator();
        addTest(suite, DefaultValidationTest.suite(DefaultValidationTest.class, xhtmlValidator),
            DefaultValidationTest.class);

        CustomDutchWebGuidelinesValidator dwgValidator = new CustomDutchWebGuidelinesValidator();
        addTest(suite, CustomDutchWebGuidelinesValidationTest.suite(CustomDutchWebGuidelinesValidationTest.class,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.