This discussion is archived
0 Replies Latest reply: Nov 30, 2012 7:12 AM by 977265 RSS

Invalid meta tag generated when using XHTML method

977265 Newbie
Currently Being Moderated

I'm trying to generate an XHTML file using XSL and the XHTML output method. However, transformation results in adding the following XHTML-invalid meta tag (uppercase and non-closing) in the head tag:

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">

Is it a bug in the XDK or am I missing something? Transform is performed using the JXTransformer provided in 11g.

Thanks in advance,


input file:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xml:lang='en' lang='en' xmlns=''>
     <title>Some title</title>

xsl file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
     <xsl:output method="xhtml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system=""/>
<xsl:template match="*">
     <xsl:element name="{local-name()}" namespace="">
          <xsl:apply-templates />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
*<META http-equiv="Content-Type" content="text/html; charset=UTF-8">*
<title>Some title</title></head><body></body></html>


  • Correct Answers - 10 points
  • Helpful Answers - 5 points