xhtmldoctypetidyjtidyxhtml-1.1

JTidy and XHTML 1.1: is it possible?


I need to transform HTML into XHTML 1.1.

I'm doing it in a Java program, so I decided to use JTidy. But if you tell JTidy to transform output in XHTML, you get XHTML 1.0, not XHTML 1.1. I've found some posts on Google about Tidy and XHTML 1.1 from 2003 and earlier, but I'm not able to find any option for XHTML 1.1 with JTidy.

Any ideas?

Thanks a lot.


Solution

  • If JTidy worked with XHTML 1.0, it should definitely work with XHTML 1.1.

    The only changes between XHTML 1.0 and XHTML 1.1:

    1. On the a and map elements, the name attribute has been removed in favor of the id attribute (as defined in [XHTMLMOD]).
    2. The "ruby" collection of elements has been added (as defined in [RUBY]).