开发者

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.


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]).
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜