![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] UTF-8 URL encoding with XSLT 1.0 [Thread Next] RE: [xsl] UTF-8 URL encoding with XSLT 1.0To: Date: 6/2/2007 10:08:00 AM > is there a stylesheet somewhere to encode URLs in XSLT 1.0? > So far I'm using one from http://skew.org/xml/stylesheets/url-encode/ > , but it looks like it cannot handle UTF-8. Doing UTF-8 is about five orders of magnitude harder than doing Latin-1. Instead of a table of 256 characters, you'll need a table of 1114111 characters. You'll then need to implement the tricky bit-twiddling rules of UTF-8 encoding in a language that has no built-in bit-twiddling operators. And at the end it will be painfully slow. In short, doing this in pure XSLT 1.0 without extensions is pure masochism. Look for other options. Why are you doing it anyway? Michael Kay http://www.saxonica.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
