Re: Encoding

Subject: Re: Encoding
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Thu, 27 Apr 2000 22:18:25 -0400
At 02:09 PM 04/27/2000 -0600, Mike Brown wrote:
True, the HTML DTDs require that href attribute values be URIs, but URL
encoding is not trivial. How is the XSLT processor supposed to know
which reserved characters in a given URI are being used for their reserved
purpose and which ones need to be escaped?

Indeed. For that matter, how is an XSLT processor to know that an arbitrary string (attribute value, #PCDATA, whatever) is even a URI to begin with? The "this is a URI" meaning is not inherent in any XML vocabulary (except, of course, XHTML). Someday no doubt an XLink-aware XSLT processor will come along and "know" that any value of an xlink:href attribute must be a URI. Until then, I think it's a case of caveat author.


================================================================
John E. Simpson          | "I want to get a tattoo of myself on
http://www.flixml.org    | my entire body, only 2 inches
simpson@xxxxxxxxxxx      | taller." (Steven Wright)


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



Current Thread
  • Encoding
    • prasadm - Thu, 27 Apr 2000 11:19:04 -0500
      • <Possible follow-ups>
      • Kay Michael - Thu, 27 Apr 2000 18:55:32 +0100
        • Jon Smirl - Thu, 27 Apr 2000 14:04:41 -0400
          • Mike Brown - Thu, 27 Apr 2000 14:09:15 -0600 (MDT)
          • John E. Simpson - Thu, 27 Apr 2000 22:18:25 -0400 <=
      • prasadm - Fri, 28 Apr 2000 09:20:45 -0500
      • Kay Michael - Fri, 28 Apr 2000 17:47:49 +0100
      • prasadm - Fri, 28 Apr 2000 16:10:35 -0500