Network drive in <?oxygen?> in Oxygen 14?

Using a path to a Windows network drive in the 'RNGSchema' pseudo-attribute in the <?oxygen?> PI works in Oxygen 10.3 but is not resolving when opening the same file in Oxygen 14. The format of the PI is: <?oxygen RNGSchema="file://drive/path/to/schema.rnc" type="compact"?> Based on the error messages, it seems Jing is looking for the network drive name as a folder on the local disk: ----------------------------------------------- System ID: \\drive\path\to\schema.rnc Main validation file: C:\file.xml Schema: \\drive\path\to\schema.rnc Engine name: Jing Severity: error Description: java.io.FileNotFoundException-C:\drive\path\to\schema.rnc (The system cannot find the path specified) System ID: C:\file.xml Main validation file: C:\file.xml Schema: \\drive\path\to\schema.rnc Engine name: Jing Severity: error Description: IllegalStateException - cannot validate without schema ----------------------------------------------- Adding ever more '/' after the 'file:' has had no effect. Regards, Tony Graham tgraham@mentea.net Consultant http://www.mentea.net Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- XML, XSL-FO and XSLT consulting, training and programming

Hi Tony, The best solution to get the right URL syntax would be to open the RNC file in Oxygen (you can DnD it from the Windows Explorer) and then right click the editor's tab and choose "Copy Location". From what I've tested in newer versions of Oxygen you need 4 slashes after the "file:" protocol like:
<?xml-model href="file:////kit/kit/raduc/test/personal.rnc" type="application/relax-ng-compact-syntax"?>
the old way to specify the reference should also work:
<?oxygen RNGSchema="file:////kit/kit/raduc/test/personal.rnc" type="compact"?>
From what I've tested Oxygen 10 worked in the same way. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/4/2012 4:48 PM, Tony Graham wrote:
Using a path to a Windows network drive in the 'RNGSchema' pseudo-attribute in the <?oxygen?> PI works in Oxygen 10.3 but is not resolving when opening the same file in Oxygen 14.
The format of the PI is:
<?oxygen RNGSchema="file://drive/path/to/schema.rnc" type="compact"?>
Based on the error messages, it seems Jing is looking for the network drive name as a folder on the local disk:
----------------------------------------------- System ID: \\drive\path\to\schema.rnc Main validation file: C:\file.xml Schema: \\drive\path\to\schema.rnc Engine name: Jing Severity: error Description: java.io.FileNotFoundException-C:\drive\path\to\schema.rnc (The system cannot find the path specified)
System ID: C:\file.xml Main validation file: C:\file.xml Schema: \\drive\path\to\schema.rnc Engine name: Jing Severity: error Description: IllegalStateException - cannot validate without schema -----------------------------------------------
Adding ever more '/' after the 'file:' has had no effect.
Regards,
Tony Graham tgraham@mentea.net Consultant http://www.mentea.net Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- XML, XSL-FO and XSLT consulting, training and programming
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Tony, Radu's example is for a network share, kit in that example is a shared folder, not mounted as a local drive. The correct reference, if you mapped that network resource as a local drive is to use one slash, as you should do also for a local drive, so something like file:/drive/path/to/schema.rnc should work. Java, and thus oXygen, allows also 3 slashes, so something like file:///drive/path/to/schema.rnc should also work. Anyway, the copy location action as Radu suggested should get you a working URL reference. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/4/12 5:09 PM, Oxygen XML Editor Support wrote:
Hi Tony,
The best solution to get the right URL syntax would be to open the RNC file in Oxygen (you can DnD it from the Windows Explorer) and then right click the editor's tab and choose "Copy Location".
From what I've tested in newer versions of Oxygen you need 4 slashes after the "file:" protocol like:
<?xml-model href="file:////kit/kit/raduc/test/personal.rnc" type="application/relax-ng-compact-syntax"?>
the old way to specify the reference should also work:
<?oxygen RNGSchema="file:////kit/kit/raduc/test/personal.rnc" type="compact"?>
From what I've tested Oxygen 10 worked in the same way.
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 7/4/2012 4:48 PM, Tony Graham wrote:
Using a path to a Windows network drive in the 'RNGSchema' pseudo-attribute in the <?oxygen?> PI works in Oxygen 10.3 but is not resolving when opening the same file in Oxygen 14.
The format of the PI is:
<?oxygen RNGSchema="file://drive/path/to/schema.rnc" type="compact"?>
Based on the error messages, it seems Jing is looking for the network drive name as a folder on the local disk:
----------------------------------------------- System ID: \\drive\path\to\schema.rnc Main validation file: C:\file.xml Schema: \\drive\path\to\schema.rnc Engine name: Jing Severity: error Description: java.io.FileNotFoundException-C:\drive\path\to\schema.rnc (The system cannot find the path specified)
System ID: C:\file.xml Main validation file: C:\file.xml Schema: \\drive\path\to\schema.rnc Engine name: Jing Severity: error Description: IllegalStateException - cannot validate without schema -----------------------------------------------
Adding ever more '/' after the 'file:' has had no effect.
Regards,
Tony Graham tgraham@mentea.net Consultant http://www.mentea.net Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- XML, XSL-FO and XSLT consulting, training and programming
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

On Wed, July 4, 2012 3:58 pm, George Cristian Bina wrote:
Radu's example is for a network share, kit in that example is a shared folder, not mounted as a local drive. The correct reference, if you mapped that network resource as a local drive is to use one slash, as you should do also for a local drive, so something like file:/drive/path/to/schema.rnc should work. Java, and thus oXygen, allows also 3 slashes, so something like file:///drive/path/to/schema.rnc should also work. Anyway, the copy location action as Radu suggested should get you a working URL reference.
I simplified things too much when I homogenised the error message for public consumption: Jing complains about not finding a second '.rnc' file referred to with a relative URL from a 'include' statement in the file referred to from the PI, e.g.: include "other.rnc" so it is finding the main schema file -- sorry for causing confusion -- but not other modules. Regards, Tony Graham tgraham@mentea.net Consultant http://www.mentea.net Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- XML, XSL-FO and XSLT consulting, training and programming

Hi Tony, I looked over the entire thread once more. From the reported error the RNCs are on a shared network folder (which is not mapped as a network drive). Indeed newer versions of the Jing RelaxNG validator used in Oxygen had an issue with referencing relative resources from a resource located on a shared network folder. We fixed this issue just after Oxygen 14.0 was released. As a workaround you can map the network folder as a local drive and use it accordingly. If you are doing this type of operation very frequent I can also give you a beta Oxygen 14.1 kit to test with. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/4/2012 6:57 PM, Tony Graham wrote:
On Wed, July 4, 2012 3:58 pm, George Cristian Bina wrote:
Radu's example is for a network share, kit in that example is a shared folder, not mounted as a local drive. The correct reference, if you mapped that network resource as a local drive is to use one slash, as you should do also for a local drive, so something like file:/drive/path/to/schema.rnc should work. Java, and thus oXygen, allows also 3 slashes, so something like file:///drive/path/to/schema.rnc should also work. Anyway, the copy location action as Radu suggested should get you a working URL reference.
I simplified things too much when I homogenised the error message for public consumption: Jing complains about not finding a second '.rnc' file referred to with a relative URL from a 'include' statement in the file referred to from the PI, e.g.:
include "other.rnc"
so it is finding the main schema file -- sorry for causing confusion -- but not other modules.
Regards,
Tony Graham tgraham@mentea.net Consultant http://www.mentea.net Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- XML, XSL-FO and XSLT consulting, training and programming

On Thu, July 5, 2012 12:21 pm, Oxygen XML Editor Support wrote: ...
From the reported error the RNCs are on a shared network folder (which is not mapped as a network drive).
Indeed newer versions of the Jing RelaxNG validator used in Oxygen had an issue with referencing relative resources from a resource located on a shared network folder.
We fixed this issue just after Oxygen 14.0 was released.
As a workaround you can map the network folder as a local drive and use it accordingly.
If you are doing this type of operation very frequent I can also give you a beta Oxygen 14.1 kit to test with.
There's only about 12,000 files with the path in their PI in the current batch, and since I don't own the files, I can't just change them all. Could you just send me the updated jing.jar off-list and I'll see that it's installed in all the Oxygen 14 installations here? Otherwise I can install the 14.1 beta. Regards, Tony Graham tgraham@mentea.net Consultant http://www.mentea.net Mentea 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- XML, XSL-FO and XSLT consulting, training and programming
participants (3)
-
George Cristian Bina
-
Oxygen XML Editor Support
-
Tony Graham