Re: [xsl] URL rewriting of links on xsl pages?

Subject: Re: [xsl] URL rewriting of links on xsl pages?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 5 Mar 2001 17:26:47 GMT
  I take it what your saying is I would have to do something like:
    <xsl:attribute name="href"><xsl:value-of

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.


This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit

 XSL-List info and archive:

Current Thread