[ 
http://issues.apache.org/jira/browse/XALANJ-611?page=comments#action_12368522 ] 

Henry Zongaro commented on XALANJ-611:
--------------------------------------

The relevant text in HTML 4.01 reads, "Authors should use "&" (ASCII 
decimal 38) instead of "&" to avoid confusion with the beginning of a character 
reference (entity reference open delimiter). Authors should also use "&" in 
attribute values since character references are allowed within CDATA attribute 
values."

The word "should" is defined by RFC 2119 to mean "that there may exist valid 
reasons in particular circumstances to ignore a particular item, but the full 
implications must be understood and carefully weighed before choosing a 
different course."  So it's not an absolute requirement that ampersand be 
emitted as the character entity reference &.

However, if you put this example literal result element in a stylesheet

  <a href="http://example.org/part&amp;amp;parcel"/>

you'll see this result

  <a href="http://example.org/part&amp;parcel"/>

which is clearly not what was intended.

So it seems the full implications were not understood or not carefully weighed 
before choosing a different course.

I've asked Brian Minchau to put this on the agenda for the next Xalan-J bug 
triage call.

> HTML output serializes ampersand as "&" in HREF attributes
> ----------------------------------------------------------
>
>          Key: XALANJ-611
>          URL: http://issues.apache.org/jira/browse/XALANJ-611
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Versions: Latest Development Code
>  Environment: Operating System: All
> Platform: All
>     Reporter: julian.reschke
>     Assignee: Xalan Developers Mailing List

>
> Using the HTML output method, an ampersand is serialized as "&". It should 
> be "&amp;".

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