On Monday 11 March 2002 02:12, Matt Sergeant wrote: > On Sun, 10 Mar 2002, Miguel Navarro wrote: > > I would like to dynamically change a url like this: > > > > <xsl:template name="ratesAvailability"> > > <xsl:variable name="x"><xsl:value-of select="./ID"/> </xsl:variable> > > <a > > href="http://site.com/index.jsp?pageName=hotInfo&cid=50369&ID={$x}"> > > <xsl:text>Check Rates & Availability </xsl:text> </a> > > </xsl:template> > > > > I've looked at a couple of examples but the parsers don't like & or the > > examples are incorrect.. If I encode the link it does not work in the > > browser. > > This is why I *always* try and use semi-colon as a separator in > querystrings rather than ampersand. Makes life a whole lot easier.
Ayup. Just as a "for your info" technically the ampersand is ILLEGAL in a URL. Its kind of been made an "acceptable non-conformance" by the sheer force of common useage, but it is still not really correct, hence the perennial problems with encoding it. Like Matt says, use semi-colon! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
