开发者

JTidy and XHTML 1.1: is it possible?

开发者 https://www.devze.com 2023-02-25 13:06 出处:网络
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

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

精彩评论

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