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:
- On the
a
andmap
elements, thename
attribute has been removed in favor of theid
attribute (as defined in [XHTMLMOD]).- The "
ruby
" collection of elements has been added (as defined in [RUBY]).
精彩评论