simonchristieis
Programmer
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:
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.
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
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