Consider the string below:
dog = "scooby"
If this string were url encoded it's value would be:
dog%20%3D%20%22scooby%22
This encoding would be not be of much use if the output was *not* html.
However,
in html this is quite important, to do this using current xslt functions is
quite painfull,
and *extremely* slow.
I'm not quite sure what is meant by "where the URI-valued attributes are
[should be]
detected automatically?" I'm still a little new at this:) Only certain
stings need to be
url/html/javascript/etc encoded, the processor would not know which ones...
I've attached the 3 new functions I added, they're called like any, other fn
I need them
quickly and added them before I heard back about any extension functions:)
So I'm
sure they need to be moved...
-derek
-----Original Message-----
From: Kaiserovi [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 17, 2000 12:08 PM
To: Sablotron Mailing List
Subject: Re: [Sab] RE: [Sab] extension functions...
Derek,
let's continue on the list since at least Philip Stuyck is interested.
What's an URL encoded value? A string like "%48%49%20"? Would such an
encoding be useful outside the html output method, where the URI-valued
attributes are [should be] detected automatically?
Tom
"Sayeau, Derek" wrote:
>
> Sure, I'll send it off the this afternoon, I did the work on 0.41.
>
> An example of what I want to do would be output a url encoded
> value on an html page...like:
>
> <xsl:if test="some test">
> href="xxx/xxx.cgi?<xsl:value-of select(url-encode(string(.)))/>
> </xsl:if>
>
> or more ideally...
>
> <xsl:if test="some test">
> href="xxx/xxx.cgi?<xsl:value-of
> select(sablot:url-encode(string(.)))/>
> </xsl:if>
>
> Thanks...derek:)
>
> -----Original Message-----
> From: Kaiserovi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 17, 2000 11:25 AM
> To: Derek Sayeau
> Subject: Re: [Sab] RE: [Sab] extension functions...
>
> Derek,
>
> > Hi Tom, can you send me your email address...don't want to spam
> > the whole mailing list like I am right now:)
>
> My address is
> [EMAIL PROTECTED]
>
> > Right now the only string handling I want to add is
> url/html/javascript/xml
> > text/xml attribute escaping...
>
> Sorry, didn't get this part.
>
> > I can send you the code later this afternoon...I've already implemented
> > most of it into the sablotron source, however it's not called the way
> > it probably should be (like sablot:url-encode('xxx'))....
>
> Do send it please. Did you hack v0.41?
>
> Thanks,
> Tom
expr.h
expr.cpp