my dog learned polymorphism*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XHTML issue" Watch "XHTML issue" New topic

XHTML issue

Sarah Shay

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="" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="no" encoding="UTF-8" />

Any ideas whats wrong?


[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
It is sorta covered in the JavaRanch Style Guide.
subject: XHTML issue
Similar Threads
How to use RichFaces in "normal" JSF
Error:The XML page cannot be displayed Cannot view XML input using style sheet
Getting error in XSL Transformation
DTD for XSL-Tags ?
JSF and Safari