RE: [xsl] generating a url to another drive on the local host

Subject: RE: [xsl] generating a url to another drive on the local host
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 18 Nov 2009 22:30:11 -0000
Never use a scheme name (file:) without a following slash. It's interpreted
as a relative URI reference rather than an absolute URI. $journal-link
should be "file:///X:" (or "file:/X:" - either should work).

(I don't think the expansion is being done by the XSLT processor, though. I
think it's being done by the browser when you click on the link.)

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay   

> -----Original Message-----
> From: Mark Wilson [mailto:mark@xxxxxxxxxxxx] 
> Sent: 18 November 2009 22:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] generating a url to another drive on the local host
> 
> In XSLT, I am trying to output to an HTML file the URL 
> "file:///X:/2000-2009/2008/2008_05_SepOct.pdf"
> but the style sheet always inserts the current directory in 
> front of my
> construction:
> 
> "file:///C:/htm/X:/2000-2009/2008/2008_05_SepOct.pdf"
> 
>  <a class="ref" href="{concat($journal-link, 
> '/2000-2009/',$year, '/', $year, '_0', $issue, '_', $name)}" 
> target="_blank"> Sep/Oct 2008 p30</a>
> 
> where:
> $journal-link = file:X:
> $year = 2008
> $issue = 2008
> $name = SepOct
> 
> What should the data in the XSLT construction look like to 
> get rid of the insertion of the current directory?
> Thanks,
> Mark 

Current Thread