ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> exslt
exslt
Re: [exslt] URI function changes - latest drafts
by Jeni Tennison other posts by this author
Oct 16 2002 7:22AM messages near this date
Re: [exslt] URI function changes - latest drafts | Re: [exslt] URI function changes - latest drafts
Hi Mike,

>  1. str:encode-uri() changes as follows:
>     - intended usage: cleaning up sloppily assembled URIs/IRIs
>     - reference RFC 2396, RFC 2732
>     - does not escape reserved or unreserved characters
>     - optional second argument: encoding used as basis for escaping
>     - unknown encoding = return empty string
>     - empty string for second argument = non-ASCII characters not escaped
>     - unencodable characters escaped as %3F (question mark)

Can you describe the use cases for having control over the encoding
that gets used rather than just using UTF-8? I ask partly because the
current draft of xf:escape-uri() in XPath 2.0 [1] doesn't give that
level of control, and I'm wondering whether it's something that it
should support. Also, it seems to be adding a fair amount of
complexity to the definition and feels pretty fragile to me (since
there's no way of saying what encoding's been used to escape a
particular URI). Can you go into your requirement for it?

Thanks,

Jeni

[1] http://www.w3.org/TR/xquery-operators/#func-escape-uri

---
Jeni Tennison
http://www.jenitennison.com/

_______________________________________________
exslt mailing list
list@[...].org
http://www.exslt.org/list
Thread:
Craig Stewart
Michael Kay
Mike Brown
Jeni Tennison
Mike Brown
Mike Brown
Jeni Tennison
Jeni Tennison
Mike Brown
Mike Brown
Mike Brown
Simon St.Laurent
Craig Stewart

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved