You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/03 17:32:52 UTC

DO NOT REPLY [Bug 1549] - doesn't work without namespace attribute

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1549>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1549

<xsl:attribute name="xml:lang"> doesn't work without namespace attribute

David_Marston@lotus.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Medium                      |High



------- Additional Comments From David_Marston@lotus.com  2001-10-03 08:32 -------
This is still a bug even after fixing the assumed "xml" namespace-decl.
Here's a test you can use. Input is any doc-trigger (near-empty) XML.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <!-- FileName: output84 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 16.2 -->
  <!-- Creator: David Marston -->
  <!-- Purpose: Check that xml:lang is properly emitted in XML output. -->

<xsl:output method="xml" encoding="UTF-8"/>

<xsl:template match='/'>
  <out>
    <xsl:attribute name="xml:lang">en-US</xsl:attribute>
  </out>
</xsl:template>

</xsl:stylesheet>