[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 20/05/2011 17:19, Costello, Roger L. wrote:
> - references a file in another folder, using an absolute path, e.g., c:/tmp/foo.xml
why this one?
All the rest are just the standard document() function, but this is a requirement for operating-system specific paths (actually operating system specific path with the wrong kind of slash) why not drop that requirement and use the URI syntax
document($href,$document)
if you really must have that then
document(replace($href,'^[a-zA-Z]:','file:///$0'),$document)
David
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________
Re: [xsl] Do you have a rock-solid function for fetching an XML document?
Subject: Re: [xsl] Do you have a rock-solid function for fetching an XML document? From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 20 May 2011 17:38:55 +0100 |
On 20/05/2011 17:19, Costello, Roger L. wrote:
> - references a file in another folder, using an absolute path, e.g., c:/tmp/foo.xml
why this one?
All the rest are just the standard document() function, but this is a requirement for operating-system specific paths (actually operating system specific path with the wrong kind of slash) why not drop that requirement and use the URI syntax
file:///c:/tmp/foo.xml then you can just use the standard xslt function
document($href,$document)
if you really must have that then
document(replace($href,'^[a-zA-Z]:','file:///$0'),$document)
David
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Do you have a rock-solid , Martin Honnen | Thread | Re: [xsl] Do you have a rock-solid , George Cristian Bina |
Re: [xsl] Do you have a rock-solid , Martin Honnen | Date | Re: [xsl] decoding percent-escaped , Chris Maloney |
Month |
Keywords