[suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] URL encoding in XSL - Yes, a PHP question
| From: | Richard Lynch | Date: | Fri, 22 Apr 2005 22:32:16 +0000 |
| Subject: | [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] URL encoding in XSL - Yes, a PHP question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213703@lists.php.net to get a copy of this message | ||
On Fri, April 22, 2005 3:18 pm, Brian Dunning said:
> 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:
Didja search the manual?
http://php.net/urlencode
<?php
$ItemLink = urlencode($ItemLink);
?>
> <xsl:variable name="ItemLink" select="concat($MediaPlexURL, Link)"/>
> <a
>
> href="http://www.anrdoezrs.net/click-1692198-5463217?loc={$ItemLink}">
>
> and $ItemLink needs to be URL encoded. How do I do this on my PHP box?
> Sorry no Java or .NET available... :)
--
Like Music?
http://l-i-e.com/artists.htm