Dave,

     Thank you very much for your quick responce.  I agree with you that
this should be in the FAQ.  I'll give it a try.

Jay



                                                                                
                                                             
                    david_n_bertoni@                                            
                                                             
                    us.ibm.com             To:     [EMAIL PROTECTED]            
                                                  
                                           cc:                                  
                                                             
                    12/12/2001 03:37       Subject:     Re: XML - HTML - having 
a problem compared to spec                                   
                    PM                                                          
                                                             
                                                                                
                                                             
                                                                                
                                                             





The spec also says, in 16.2, in the paragraph previous to the one you're
citing:

   The html output method should not output an element differently from the
   xml output method unless the expanded-name of the element has a null
   namespace URI; an element whose expanded-name has a non-null namespace
   URI should be output as XML. If the expanded-name of the element has a
   null namespace URI, but the local part of the expanded-name is not
   recognized as the name of an HTML element, the element should output in
   the same way as a non-empty, inline element such as span.

Since you have declared a default namespace, all of the literal result
elements in your stylesheet have a non-null namespace URI.  Simply remove
the following namespace declaration from your stylesheet:

   xmlns="http://www.w3.org/TR/REC-html40";

If this isn't a FAQ, it ought to be.

Dave




                      "Jay Balunas"

                      <[EMAIL PROTECTED]         To:
[EMAIL PROTECTED]
                      ut.com>                  cc:

                                               Subject: XML - HTML - having
a problem compared to spec
                      12/12/2001 03:27

                      PM







Hey all,

     I am transforming a xml doc into HTML.  I am having legacy browser
support issues.

     In the Spec is says that if the method="html" that any <br/> elements
will be outputed without an ending tag.  What I keep getting is <br/> in
the HTML.

     Netscape 4.7 ingnores the <br/> and the page looks like crap.  when I
change all of the <br/> to <br> it works fine.

     <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
            xmlns="http://www.w3.org/TR/REC-html40";
            xmlns:xalan="http://xml.apache.org/xslt";>

    <xsl:output method="html" media-type="text/html"/>

    So is this a new bug or what am I doing wrong.

Thanks,

Jay











Reply via email to