on 10/13/2004 said:Is it possible to use java XML api to translate
a HTML document into a XHTML document(mobile profile)
mike said:Is it possible to use java XML api to translate
a HTML document into a XHTML document(mobile profile)
Yes, but the easiest way to do it is probably via XSLT.
I would rather say it is impossible with XSLT.
Html is, per definition not an XML language, and thus cannot possibly be transformed with xslt, which requires valid XML input. If the html would
Nonsense. XSLT starts with a DOM tree, which can equally well represent an HTML or an XHTML document. As soon as you've parsed the HTML to DOM, your XSLT parser can pretend it was XML all along (and if you apply the identity transform, you've just converted to XHTML).
Is it possible to use java XML api to translate
a HTML document into a XHTML document(mobile profile)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.