[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: decoding percent-escaped octet sequences

Subject: Re: decoding percent-escaped octet sequences
From: Julian Reschke <julian.reschke@xxxxxx>
Date: Sat, 21 May 2011 19:35:17 +0200
Re:  decoding percent-escaped octet sequences
On 2011-05-21 12:20, Imsieke, Gerrit, le-tex wrote:


On 2011-05-21 12:13, Imsieke, Gerrit, le-tex wrote:

Two corrections:

===========8<------------------------
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:my="my"
xmlns:java-urldecode="java:java.net.URLDecoder"
exclude-result-prefixes="my xs"
>
...
<string encoding="{regex-group(1)}" lang="{regex-group(3)}"
<string encoding="{regex-group(1)}" lang="{regex-group(2)}"

yield:

<test xmlns:java-urldecode="java:java.net.URLDecoder">
<string encoding="us-ascii" lang="en-us"
encoded="This%20is%20%2A%2A%2Afun%2A%2A%2A">This is ***fun***</string>
<string encoding="iso-8859-1" lang="en" encoded="%A3%20rates">B#
rates</string>
<string encoding="UTF-8" lang=""
encoded="%c2%a3%20and%20%e2%82%ac%20rates">B# and b, rates</string>
</test>
...

This looks very promising, thanks a lot. Will let you know when I have applied it to my code.


Best regards, Julian

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.