Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Convert xHTML to HTML using XSLT

843834May 10 2008 — edited May 10 2008
Hi,

I use an XSLT to convert from XML to HTML but this HTML is, in fact, xHTML which is not viewed correctly in a javax.swing.JEditorPane
This is the xHTML code:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TITTLE</title>
</head>
<body>
content...
content...
content...
...
</body>
</html>
The problem is in ?xml tag which is viewed in the JEditorPane.
The web looks like that inside the JEditorPane:
?xml version="1.0" encoding="UTF-8"?>
content...
content...
content...
...
All I want to do is to delete the initial ?xml tag, how could I do that? Thanks very much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2008
Added on May 10 2008
1 comment
217 views