I am using Java API for XML processing, I store my HTML document in
Document object.
Then I use the default Transformer to dump the Document to output.
Unfortunately, what I get is HTML (some tags are not closed properly and
META
tag is in uppercase...)
I'd say these tags are properly not closed as per HTML syntax.
I would like to know if there is a stable XSL stylesheet, that I can use
to produce XHTML.
You can use XML output method in the interim transformation and htnl
method in
final output transformation.
Well you could do that but you would still get html at the end, not xhtml.
The only xslt 1.0 way to get xhtml is to use the xml output method, and ensure
you don’t get element minimisation (<div></div> becomes <div/>) and the right
doctypes etc
I *think* with Saxon 7.x if you specify xhtml output method (of xslt 2.0) and
version="1.0" (backwards compatibility mode) you can get xhtml output with your
original stylesheet, but I haven't had time to look into that much.
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.495 / Virus Database: 294 - Release Date: 30/06/2003
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list