|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Calling function with text parameter
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








