[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|