Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Up One Level With returned URL >Thread Next - Re: Up One Level With returned URL Re: Up One Level With returned URLTo: NULL Date: 3/3/2007 9:32:00 AM
If I add:
<a href="/..{url}">
It returns:
http://myservername/..<the url>
Am I doing what you suggest wrong? I could very well be.
"Julian F. Reschke" wrote:
> XSLer schrieb:
> > If one has an XSL select that returns a URL:
> >
> > <xsl:value-of select="url" />
> >
> > which returns a link like the following:
> >
> > http://www.sample.com/sample/sample.aspx
> >
> > Is it possible to transform the link so that it returns
> >
> > http://www.sample.com/sample
> >
> > I cant just use a ../ in front of it, but does anyone know a transformation
> > technique that would allow the link to return the one level higher? I just
> > need the link to instead of being the complete url to return the folder that
> > is contain the relevant item.
> >
> > The reason behind this is a have a folder that contains a collection of
> > files, and I would prefer to allow the option to return the folder name in
> > the return of the specific page I am working on. Whenever I put the ../ in
> > front of it, it returns the up from the page that I am currently on, rather
> > than moving up one level from the url return.
> >
> > Seems like it should be easy, but I am unable to get it to work correctly.
>
> Either remove the last path segment, or add "/.." and hope that the URI
> consumer gets that right...
>
> Best regards, Julian
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
