[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: generating a url to another drive on the local hos

Subject: RE: generating a url to another drive on the local host
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 18 Nov 2009 22:30:11 -0000
RE:  generating a url to another drive on the local hos
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.