0 Replies Latest reply on Nov 30, 2012 3:12 PM by 977265

    Invalid meta tag generated when using XHTML method


      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='http://www.w3.org/1999/xhtml'>
           <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="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
      <xsl:template match="*">
           <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
                <xsl:apply-templates />

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      *<META http-equiv="Content-Type" content="text/html; charset=UTF-8">*
      <title>Some title</title></head><body></body></html>