[xslt] forward and back slashes in URI



Hello all,

on win32 the directory deliminator in a path is a backslash '\' instead of a
forward slash '/'.

When using URI functions such as document(), it currently works using full
paths built using a forward slash for the path, i.e.
<xsl:variable name="test"
select="document('f:/some%20directory/file.xml')"/>

but wouldn't work using
<xsl:variable name="test"
select="document('f:\some%20directory\file.xml')"/>

Is this the correct (to spec) behavior?  I now simply convert backslashs to
forward slashes.  However, shouldn't a URI be able to use the native
deliminating convention?

Thanks.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]