Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using document() and unc paths 1

Status
Not open for further replies.

simonchristieis

Programmer
Jan 10, 2002
1,144
GB
I am trying to load an xslt document from a UNC path, and have a bit of an issue.

Using the msxml parser there is no problem loading a file like:

Code:
<xsl:param name="inputDirectory" select="'\\server\path'"/>
<xsl:param name="outputFile" select="'file.xslt'"/>


<xsl:variable name="Data" select="document(concat($inputDirectory,'/',$outputFile),/)"/>

However, when I use the xalan parser, it doesn't recognise the unc path and thinks the path is an absolute path unless I concat 'file://' to the beginning of the path.

Code:
<xsl:param name="inputDirectory" select="'\\server\path'"/>
<xsl:param name="outputFile" select="'file.xslt'"/>

<xsl:variable name="Data" select="document(concat('file://',$inputDirectory,'/',$outputFile),/)"/>

Does anyone know if there is a xalan setting that is a workaround for this before I change all my xslt's to include 'file://'?

Thanks in advance



 
Thanks again tsuji.

You're a wealth of information - another star for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top