Catalog rewriteSystem not working for UNIX paths
Posted: Wed Feb 19, 2020 11:57 am
Hi all,
I have an entity declaration file which referes a UNIX file (because the generator runs on Linux subsystem). For example:
To help Oxygen find this file I have an XML catalog using rewriteSystem but whatever I declare there is not recognized by Oxygen.
Doesn't help if I omit file:// or also add it somewhere else.
Interestingly, if the path to the entity file is Windows-like, it works. In this example, Doc_Path is a variable containing a Windows path and it is correctly replaced and found by Oxygen:
Any idea what I'm doing wrong?
Heiko
I have an entity declaration file which referes a UNIX file (because the generator runs on Linux subsystem). For example:
Code: Select all
<!ENTITY % mydoc SYSTEM "/mnt/c/Projects/Doc/fragments/Common/mydoc.ent"> %mydoc;
Code: Select all
<rewriteSystem systemIdStartString="/mnt/c/Projects/Doc/" rewritePrefix="file:///C:/Projects/Doc/"/>
Interestingly, if the path to the entity file is Windows-like, it works. In this example, Doc_Path is a variable containing a Windows path and it is correctly replaced and found by Oxygen:
Code: Select all
<rewriteSystem systemIdStartString="file://Doc_Path" rewritePrefix="file:///C:/Projects//Doc/"/>
Heiko