Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Up One Level With returned URL

From: "Julian F. Reschke" <julian.reschke@-----------------.-->
To: NULL
Date: 3/3/2007 10:56:00 AM

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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent