V
Vitali Gontsharuk
Hallo!
When using the XPATH document() function to load a new XML document, we
are coming across problems, because XALAN seems to have problems with
absolute paths. XALAN always assumes that the path is relative to the
current directory. So if we e.g. are in "c:\xslt_scripts" and are trying
to load an XML file from "c:\xml_files\test.xml" it ist trying to open a
file with the following absolute path:
"c:\xslt_scripts\c:\xml_files\test.xml".
The weird thing however is that in some cases it works. Actually we
configure which XML file is to be used in a Java-Bean config-file. When
we just paste the full path to the current location of the XML file into
the config file, it works, but when we construct the path using a
place-holder (@xmlDir) which is further replaced with the actual
Dir-path, it doesn't work, although the path to the XML file - displayed
in the log of our application - is still the same.
Has someone experienced this strange behaviour too?
Any help appreciated!
Vitali Gontsharuk
When using the XPATH document() function to load a new XML document, we
are coming across problems, because XALAN seems to have problems with
absolute paths. XALAN always assumes that the path is relative to the
current directory. So if we e.g. are in "c:\xslt_scripts" and are trying
to load an XML file from "c:\xml_files\test.xml" it ist trying to open a
file with the following absolute path:
"c:\xslt_scripts\c:\xml_files\test.xml".
The weird thing however is that in some cases it works. Actually we
configure which XML file is to be used in a Java-Bean config-file. When
we just paste the full path to the current location of the XML file into
the config file, it works, but when we construct the path using a
place-holder (@xmlDir) which is further replaced with the actual
Dir-path, it doesn't work, although the path to the XML file - displayed
in the log of our application - is still the same.
Has someone experienced this strange behaviour too?
Any help appreciated!
Vitali Gontsharuk