You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Scott Boag/CAM/Lotus <Sc...@lotus.com> on 2000/01/03 22:56:03 UTC

Re: Xalan 0.19.1 bug : attributes with value of "name"

Thanks for catching this.  The problem was bug in the test where it is
testing for boolean attributes.  The fix is checked in...
FormatterToHTML.java.

-scott




                                                                                                                           
                    "Chris P. McCabe"                                                                                      
                    <chris_mccabe@choiceh        To:     scott_boag@lotus.com                                              
                    otels.com>                   cc:                                                                       
                    Sent by:                     Subject:     Xalan 0.19.1 bug : attributes with value of "name"           
                    cmccabe@choicehotels.                                                                                  
                    com                                                                                                    
                                                                                                                           
                                                                                                                           
                    12/29/99 04:46 PM                                                                                      
                    Please respond to                                                                                      
                    chris_mccabe                                                                                           
                                                                                                                           
                                                                                                                           




Scott:
  I am converting from lotusxsl to xalan, and have found the following
bug in xalan that worked fine with lotusxsl.  If an attribute in an HTML
element has a value of "name", it gets left off.  In the following
stylesheet, there are 2 input elements: one with a name of "name", and
the other with a name of "foo".  The generated html for these elements
will look like the following:

<input name>
<input name="foo">


Here is the stylesheet:

<xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns="http://www.w3.org/TR/REC-html40">

<xsl:output method="html" indent="yes"/>

<xsl:template match="elem">
   <form name="someform" method="POST" ACTION="processForm">
      <input name="name"/>
      <input name="foo"/>
   </form>
</xsl:template>

</xsl:stylesheet>


If there is any fix to this bug, I would be interested in getting it as
soon as possible so we don't have to worry about it.

Thanks,
Chris McCabe
chris_mccabe@choicehotels.com