Absolute links for cross-platform working
Posted: Tue Mar 09, 2010 12:10 am
What I have is not technically an XML problem, but I hope someone on here can suggest some solutions, since it arises in the context of collaborative working on XML data.
We have a mixed PC and Apple environment and keep our data stored on a network drive accessible to all machines. We have on that drive a large number of XML files, XSD schemas, XSL transformations, and CSS stylesheets. These are mainly mainly set up with relative links between them (e.g. within the XML files to their schemas and stylesheets), e.g.
<?xml-stylesheet type="text/css" href="Stylesheets/Basic.css" title="Normal" alternate="no"?>
On Windows machines we in fact map the network drive to Z:
For some files we have to use absolute links (because the relative position of the files to the stylesheets and schema can change):
<?xml-stylesheet type="text/css" href="z:\Data\Stylesheets\Basic.css" title="Normal" alternate="no"?>
What I want to know is what form to use for absolute links to ensure that the references work when editing the files regardless of whether they are being accessed from Apple or PC.
I guess I could maybe use the \\server\sharename\ ... form (how?) but that raises a different problem ...
A subsidiary problem is offline working. On Windows machines (e.g. for laptops to be used away from the office), we can simply make a copy of the relevant part of the z: drive onto the local disk and then temporarily remap the z: to point to that directory using subst; all the absolute links then work fine.
Assuming I can find an easy way even to make a similar copy to the local disk of our Apple laptops, can I make the same references work (i.e. without having to change them)?
Any guidance for dealing with the apparently lunatic Apple file system gratefully received.
We have a mixed PC and Apple environment and keep our data stored on a network drive accessible to all machines. We have on that drive a large number of XML files, XSD schemas, XSL transformations, and CSS stylesheets. These are mainly mainly set up with relative links between them (e.g. within the XML files to their schemas and stylesheets), e.g.
<?xml-stylesheet type="text/css" href="Stylesheets/Basic.css" title="Normal" alternate="no"?>
On Windows machines we in fact map the network drive to Z:
For some files we have to use absolute links (because the relative position of the files to the stylesheets and schema can change):
<?xml-stylesheet type="text/css" href="z:\Data\Stylesheets\Basic.css" title="Normal" alternate="no"?>
What I want to know is what form to use for absolute links to ensure that the references work when editing the files regardless of whether they are being accessed from Apple or PC.
I guess I could maybe use the \\server\sharename\ ... form (how?) but that raises a different problem ...
A subsidiary problem is offline working. On Windows machines (e.g. for laptops to be used away from the office), we can simply make a copy of the relevant part of the z: drive onto the local disk and then temporarily remap the z: to point to that directory using subst; all the absolute links then work fine.
Assuming I can find an easy way even to make a similar copy to the local disk of our Apple laptops, can I make the same references work (i.e. without having to change them)?
Any guidance for dealing with the apparently lunatic Apple file system gratefully received.