[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|