Re: [xsl] Calling function with text parameter

Subject: Re: [xsl] Calling function with text parameter
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 1 Nov 2002 15:39:33 -0700 (MST)
Peter Flynn wrote:
> David Carlisle wrote:
> >   >>Do browsers really treat ' and &apos; differently? I'm appalled.
> > 
> >   They shouldn't. They reference the same codepoint.
> > 
> > Not in (X)HTML they don't.
> 
> &apos; is declared in the xhtml-special character entities as &#39;
> which in Unicode and ASCII is the unidirectional apostrophe ("'").
> 
> I'm puzzled. What's the difference?

Well, there's no difference; David was mistaken; XHTML, as an XML
application, implicitly defines apos and also explicitly defines it in
its DTD, as you noted.

HTML, however, does not define apos at all. To escape ' in an attribute
value in HTML, one must write &#39;. In XSLT-land, this is only of concern
to the HTML serializer, if it happens to use ' to delimit attribute values.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread