[ http://issues.apache.org/jira/browse/XALANC-519?page=comments#action_65802 ] David Bertoni commented on XALANC-519: --------------------------------------
OK, so I ran the following inputs using Xalan-C 1.9: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="no" /> <xsl:template match="doc"> <HTML> <xsl:copy-of select="Input"/> <Input Type="checkbox"> <xsl:attribute name="CHECKED">CHECKED</xsl:attribute> </Input> </HTML> </xsl:template> </xsl:stylesheet> <?xml version="1.0"?> <doc> <Input Type="checkbox" CHECKED="" /> </doc> The result I get is: <HTML><Input Type="checkbox" CHECKED><Input Type="checkbox" CHECKED></HTML> which what I expect. Can you please attach the set of inputs that reproduces the problem you're seeing? > HTML serialization should reduce "boolean attributes" regardless of how > created > ------------------------------------------------------------------------------- > > Key: XALANC-519 > URL: http://issues.apache.org/jira/browse/XALANC-519 > Project: XalanC > Type: Bug > Components: XalanC > Reporter: David Marston > Priority: Minor > > The situation illustrated in test case attribset17... > <Input Type="checkbox"> > <xsl:attribute name="CHECKED">CHECKED</xsl:attribute> > </Input> > should be emitted as > <Input Type="checkbox" CHECKED> > and there is an output test (34, IIRC) that shows the same thing for LREs. We > don't (yet) have a test for xsl:copy-of, which failed for me on <td nowrap>. > I think one of the XalanC commiters should advise about whether xsl:copy or > xsl:element use-attribute-sets="foo" or any other case is a separate code > path that needs separate testing. > Brian Minchau and Henry Z. think that the set of attributes requiring this > treatment is: checked, compact, declare, defer, disabled, ismap, multiple, > nohref, noresize, noshade, nowrap, readonly, selected. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
