Using vb.net and I have referenced the two saxon dll's etc. Inside windows 7 x64.

I have a source xml file which contains absolute paths as attributes.
e.g.

<root>
    <paths>
        <history path="G:/path to file name on networked drive which includes spaces.xml"/>
        <history path="G:/path to file name on networked drive which includes spaces2.xml"/>
        <history path="file:///G:/Projects/projname/Version4.0/MetaData/ProjName_MD.xml"/>
    </paths>
....
....
</root>


Transformation includes document(@path) (within a for-each)

This works in oXygen, inside ANT script and using the "Transform.exe" tool bundled with the saxon for .net download (9.4HE). 

However from .net I can't seem to get it to work, just doesn't load using the document function

I have tried different slashes, multiple slashes, prepending with "file://", setting base uri for compiler etc. searched the mailing lists/documentation. It's probably something simple but i can't work it out!

vb.net code:

            Dim proc As New Saxon.Api.Processor()
            Dim compiler As XsltCompiler = proc.NewXsltCompiler()
            compiler.BaseUri = New Uri(filepath of source doc - loads fine.)
            Dim transformer As XsltTransformer
            Dim XmlReader As XmlReader = New XmlNodeReader(xdoc)
            Dim input As XdmNode = proc.NewDocumentBuilder().Build(XmlReader)

            '// Create a transformer for the stylesheet.
            transformer = compiler.Compile(New System.Uri("G:\Projects\cta_createVersionHistory.xsl")).Load()


            transformer.InputXmlResolver = Nothing
            transformer.InitialContextNode = input

            Dim serializer As Serializer = New Serializer()
            serializer.SetOutputFile("versionHistory.xml")
            transformer.Run(serializer)


Any ideas?

Thank you!!!

Andrew