0

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.

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265
robob
  • 1,739
  • 4
  • 26
  • 44

1 Answers1

1

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]).
Kevin Ji
  • 10,479
  • 4
  • 40
  • 63
  • Either I don't get the question or the answer. I thought that the issue is that tidy always return 1.0. How to make it return 1.1? – sumid Feb 01 '13 at 02:16