context variable in xsl
"Charles N. Harvey III" <[email protected]>
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
Hey all.
I have a site that is built with the xsl option of Maverick. But,
I made all the links and images /appname. Well, now appname is
going to be appname.company.com/. So now I need to change all my
links. Not very farsighted of me.
In Velocity it would be:
${request.contextPath}
In JSP it would be:
<c:out value="${context}"/>
In XSL it would be:
????
I don't know. Someone else actually developed this and I'm not all
that hot at xsl. I'm hoping it will be as easy as:
<xsl:value-of select="context" /> or
<xsl:value-of select="contextPath" />
Is it? Does anyone know. This will be very helpful.
Thanks.
Charlie
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
[INVALID FOOTER]