0 Replies Latest reply: Nov 30, 2012 9:12 AM by 977265 RSS

    Invalid meta tag generated when using XHTML method

    977265
      Hi,

      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,

      Stephane


      input file:
      <?xml version='1.0' encoding='utf-8'?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xml:lang='en' lang='en' xmlns='http://www.w3.org/1999/xhtml'>
      <head>
           <title>Some title</title>
      </head>
      <body></body>
      </html>

      xsl file:
      <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="2.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:xhtml="http://www.w3.org/1999/xhtml">
           <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 />
           </xsl:element>
      </xsl:template>
      </xsl:stylesheet>

      output:
      <!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">
      <head>
      *<META http-equiv="Content-Type" content="text/html; charset=UTF-8">*
      <title>Some title</title></head><body></body></html>