xsl-list
[Top] [All Lists]

Re: Calling function with text parameter

2002-11-01 15:39:33
Peter Flynn wrote:
David Carlisle wrote:
  >>Do browsers really treat ' and ' differently? I'm appalled.

  They shouldn't. They reference the same codepoint.

Not in (X)HTML they don't.

' is declared in the xhtml-special character entities as '
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 '. 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



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