[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] encoding on parameters for document function (using saxon)


Subject: Re: [xsl] encoding on parameters for document function (using saxon)
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 11 Oct 2005 12:40:52 +0100

>>>>> "Sylvain" == Sylvain Hellegouarch <sh@xxxxxxxxxx> writes:

    Sylvain> Hello there, Forgive me my dullness but is this something
    Sylvain> that is "fixed" with XSLT 2 ? I came across the same
    Sylvain> issue recently and I still haven't found a good solution.

there are XPath 2.0 functions for this sort of thing:

encode-for-uri
iri-to-uri
escape-html-uri

It's the first one that's wanted here, I think

encode-for-uri ($m) should do the trick.
-- 
Colin Adams
Preston Lancashire


Current Thread
Keywords