[ 
http://issues.apache.org/jira/browse/XALANJ-2121?page=comments#action_66591 ]
     
Brian Minchau commented on XALANJ-2121:
---------------------------------------

This stylesheet doesn't produce decent HTML, but if you check its output it 
does serialize all of the attributes on HTML elements as empty:

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

<xsl:output method="html" />
<xsl:template match="/">
<html><head>

<input type="radio" checked="checked"/>

<dl       compact="compact"/>
<ol       compact="compact"/>
<ul       compact="compact"/>
<dir      compact="compact"/>
<menu     compact="compact"/>

<object   declare="declare" />

<script   defer="defer" />

<select   disabled="disabled"/>
<input    disabled="disabled"/>
<optgroup disabled="disabled"/>
<option   disabled="disabled"/>
<button   disabled="disabled"/>
<textarea disabled="disabled"/>

<input    ismap="ismap"/>
<img      ismap="ismap"/>

<select   multiple="multiple"/>

<area     nohref="nohref"/>

<frame    noresize="noresize"/>

<hr       noshade="noshade"/>

<th       nowrap="nowrap" />
<td       nowrap="nowrap" />

<input    readonly="readonly" />
<textarea readonly="readonly" />

<option   selected="selected" />

</head></html>
</xsl:template>
</xsl:stylesheet>


> Need correct HTML serialization of special attributes, even with copy-of
> ------------------------------------------------------------------------
>
>          Key: XALANJ-2121
>          URL: http://issues.apache.org/jira/browse/XALANJ-2121
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: David Marston
>     Assignee: Brian Minchau
>     Priority: Minor
>  Attachments: patch.to.ToHTMLStream.for.2121.txt, 
> patch2.to.ToHTMLStream.for.2121.txt
>
> 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 Brian Minchau will 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.
> Notice that in the example above, we also should emit the element as an 
> empty/unclosed element, in addition to reducing the CHECKED attribute.
> Brian M. 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.
> Also revisit XALANJ-296, which is about XSLTC.

-- 
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]

Reply via email to