xsl-list
[Top] [All Lists]

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

2009-11-18 17:30:36


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(_at_)knihtisk(_dot_)org] 
Sent: 18 November 2009 22:17
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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 



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>