aspose file tools*
The moose likes XML and Related Technologies and the fly likes XHTML issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XHTML issue" Watch "XHTML issue" New topic
Author

XHTML issue

Sarah Shay
Greenhorn

Joined: Jan 04, 2005
Posts: 14
I am trying to create an XHTML doc using an XSL file

I have the following declaration at the top of the XSL but the file is still being output as XML

<xslutput method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="no" encoding="UTF-8" />

Any ideas whats wrong?

Thanks

[ML]Edit Comment: Disabled smiles in this post.
[ April 02, 2005: Message edited by: Madhav Lakkapragada ]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Its hard for me to say what's wrong just based on the output element posted. Also, its hard to understand why you think the output is in XML format. After all, XHTML is well-formed HTML.

This link discusses an example style sheet to convert into XHTML. You might want to compare notes with the style sheet declaration in that link.
Hope this helps.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
 
subject: XHTML issue