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/04 22:10:25 UTC

DO NOT REPLY [Bug 3664] - xsltc doesn't support simplified stylesheets with xmlns="http://www.w3.org/TR/xhtml1/strict"

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=3664>.
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=3664

xsltc doesn't support simplified stylesheets with xmlns="http://www.w3.org/TR/xhtml1/strict"

tom.amiro@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Other                       |High
            Summary|xalan doesn't appear to     |xsltc doesn't support
                   |support simplified          |simplified stylesheets with
                   |stylesheets                 |xmlns="http://www.w3.org/TR/
                   |                            |xhtml1/strict"



------- Additional Comments From tom.amiro@sun.com  2001-10-04 13:10 -------
Further analysis of this bug shows that the problem happens only when
the opening <html > tag in the XSL simplified stylesheet sets the 
default namespace to something. For example,

<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xsl:version="1.0"
      xmlns="http://www.w3.org/TR/xhtml1/strict">

Setting xmlns="http://www.w3.org/TR/xhtml1/strict" is a common 
practice in a so-called simplied stylesheet. 

It doesn't matter what you set the default namespace to. Any 
value will do. As long as you omit the xmlns attribute, xsltc 
will process the <xsl: ... > instructions within the simplified 
stylesheet. Once you add the xmlns attribute, non of the 
<xsl: ... > instructions are processed and the output reflects 
just the literal result output. 

This explains why embed03 conf test didn't have the correct output,
while embed06 did, even though 06 is more complicated. embed06 
did not have an xmlns attribute in the <html > tag, whereas embed03 did.