This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: URL rewriting of links on xsl pages?
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] URL rewriting of links on xsl pages?
- From: "Duffey, Kevin" <KDuffey at BUYMEDIA dot com>
- Date: Mon, 5 Mar 2001 11:34:26 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks Dave.
I didn't know I could do the <a href="{$sid}/... like so. I thought I tried
that before and didn't see it work, but I must have not done it right.
As for the extra spaces, i guess I just have to make sure not to leave any
in the XSL so that it doesn't add those extra characters in.
Thanks.
> -----Original Message-----
> From: David Carlisle [mailto:davidc@nag.co.uk]
> Sent: Monday, March 05, 2001 9:27 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] URL rewriting of links on xsl pages?
>
>
>
> I take it what your saying is I would have to do something like:
>
> <a>
> <xsl:attribute name="href"><xsl:value-of
> select="$sid"/>/path/page.jsp</xsl:attribute>
> </a>
>
> which is just a long form of th eequivalent expression:
>
> <a href="{$sid}/path/page.jsp"/>
>
> (no content to the a element, so nothing to click on??)
>
> ] Also, why is it sometimes when I do this:
> ]
> ] <a>
> ] <xsl:attribute name="href">
> ] <xsl:value-of select="$sid"/>/path/page.jsp
> ^
> ] </xsl:attribute>
> ^^^
> ] </a>
>
> In this form you have a newline and 3 spaces at the end of the
> attribute. These will show up as numeric character references
> to ensure that they are not removed by th eXML parser's attribute
> normalisation. You don't want the white space, but XSLT doesn't know
> that and it's mandated to preserve it if you enter it in this way.
>
> David
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star
> Internet delivered
> through the MessageLabs Virus Control Centre. For further
> information visit
> http://www.star.net.uk/stats.asp
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list