NotesDOMParser and External Entities with relative paths. (Second post)

Hello All,

This is my second post, I am running into a dead end. Any help is greatly appreciated. Here is my issue…

I am trying to transform an XML file to DXL and trying to transform non domino data into lotus notes document using a custom XSLT.

The XML file has external reference to other xml files,

Like so…

I am using LotusScript NotesDomParser at the moment to parse and further transform it. It works great when I give the absolute path. However my most inputs XML file do not use absolute paths at all.

When the entity is referenced like below, I am getting errors.

I am not sure how to proceed further on it. I kind of understand, that the base path is relative to the lotus\notes executable directory poosibly, however how can I make it work for my situation, where the entities will have paths relative to the main xml files. I would appreciate if anyone get direct me to a solution.

Here is snippet of my code (its quite simple)

Set xmlin=session.CreateStream

If Not xmlin.Open(xmlFileLoc & xmlfilename) Then

Messagebox "Cannot open " & xmlfilename, “Error”

Exit Sub

End If

Set transformer=session.CreateXSLTransformer()

Set domparser = session.CreateDOMParser(xmlin, transformer)

Set importer = session.CreateDXLImporter()

transformer.InputValidationOption =0

transformer.ExitOnFirstFatalError = False

importer.InputValidationOption =1

importer.ExitOnFirstFatalError = False

domparser.ExpandEntityReferences = True

On Event PostDOMParse From domparser Call PostDOMParse

Call domparser.process

Thanks