xsl-list
[Top] [All Lists]

RE: Ampersand in attributes

2004-10-07 00:50:12
I'm using saxon and I'm having problems generating anchor 
links. Because the
source has to be XML I'm changing ampersands to &. For example:
 
link.jsp?p1=1&p2=2&p3=3
 
My output method is HTML but the result generated mantains the &.


The HTML spec requires that ampersands in URLs should be written as &

Of course many HTML authors ignore that rule, and browsers let them get away
with it. But & is correct.

Michael Kay
http://www.saxonica.com/



<Prev in Thread] Current Thread [Next in Thread>