On 4/23/05, Brian Dunning <[EMAIL PROTECTED]> wrote:
> All the resources I've found on the web for URL encoding values within
> an XSL stylesheet are either .NET or Java, so I'm looking for some help
> with how to do this using PHP's special flavor of XML/XSL.
> 
> Within the XSL doc, I've got:
> 
> <xsl:variable name="ItemLink" select="concat($MediaPlexURL, Link)"/>
> <a
> href="http://www.anrdoezrs.net/click-1692198-5463217?loc={$ItemLink}";>

Are you using sablotron in PHP 4? Or the domxslt support in PHP 4? Or
already PHP 5?

If you use one of the later, you could use
http://exslt.org/str/functions/encode-uri/index.html, this should be
available in libxslt

With PHP 5, you can also call PHP functions from within xslt:

http://ch2.php.net/manual/en/function.xsl-xsltprocessor-register-php-functions.php

Read the usercomments for more info

chregu
> 
> and $ItemLink needs to be URL encoded. How do I do this on my PHP box?
> Sorry no Java or .NET available...   :)
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [EMAIL PROTECTED]  |  gnupg-keyid 0x5CE1DECB

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to