[ http://issues.apache.org/jira/browse/XALANJ-2120?page=all ]

Brian Minchau updated XALANJ-2120:
----------------------------------

     Environment: 
     Description: 
We don't (yet) have a test case, but I observed that when the source document 
has:
<a><BR>text INSIDE a br</BR></a>
then an <xsl:copy-of select="a"/> should produce:
<a><BR>text INSIDE a br</a>
but XalanJ drops the <BR> entirely, at least in the copy-of case. Suggested 
rules of thumb:
1. Self-closing <BR/> becomes <BR>, which we already do
2. Starting <BR> becomes <BR>
3. Ending </BR> becomes nothing
and of course, likewise for the other tags listed in part 16.2 of the XSLT 1.0 
spec. Notice that rules 2 and 3 work whether or not there is content between 
the <BR> and </BR>.

  was:
We don't (yet) have a test case, but I observed that when the source document 
has:
<a><BR>text INSIDE a br</BR></a>
then an <xsl:copy-of select="a"/> should produce:
<a><BR>text INSIDE a br</a>
but XalanJ drops the <BR> entirely, at least in the copy-of case. Suggested 
rules of thumb:
1. Self-closing <BR/> becomes <BR>, which we already do
2. Starting <BR> becomes <BR>
3. Ending </BR> becomes nothing
and of course, likewise for the other tags listed in part 16.2 of the XSLT 1.0 
spec. Notice that rules 2 and 3 work whether or not there is content between 
the <BR> and </BR>.

    fix-priority: fp4

Set to fp4 due to JIRA meeting on June 7.

> HTML serialization of empty/unclosed tags should not be affected by content
> ---------------------------------------------------------------------------
>
>          Key: XALANJ-2120
>          URL: http://issues.apache.org/jira/browse/XALANJ-2120
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Reporter: David Marston
>     Assignee: Joanne Tong

>
> We don't (yet) have a test case, but I observed that when the source document 
> has:
> <a><BR>text INSIDE a br</BR></a>
> then an <xsl:copy-of select="a"/> should produce:
> <a><BR>text INSIDE a br</a>
> but XalanJ drops the <BR> entirely, at least in the copy-of case. Suggested 
> rules of thumb:
> 1. Self-closing <BR/> becomes <BR>, which we already do
> 2. Starting <BR> becomes <BR>
> 3. Ending </BR> becomes nothing
> and of course, likewise for the other tags listed in part 16.2 of the XSLT 
> 1.0 spec. Notice that rules 2 and 3 work whether or not there is content 
> between the <BR> and </BR>.

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