I'm puzzled... I have installed all the recent updates to the TEI framework from the TEI site, and my local .com.oxygen.xml directory contains an updated version of one of the XSLT scripts provided as a result: -rw-rw-r-- 1 lou lou 13520 Apr 29 12:02 ./.com.oxygenxml/extensions/v16.1/frameworks/http___www.tei_c.org_release_oxygen_updateSite.oxygen/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl However, when I actually run the conversion from within oXygen, it does not use this version, but instead the one released ages ago, which is still in the installation directory: -rw-r--r-- 1 lou lou 9612 Jan 22 13:43 ./OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl The Ant script I am running in my transformation says "Loading stylesheet /home/lou/OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/docx/from.xsl" It also uses the build-from.xml file from the same directory, rather than the one one in the .com.oxygml tree, which is however identical. But since it uses relative paths, maybe that is the problem? Any advice much appreciated...
Hi Lou, When you install an updated version of Oxygen, if you have ant or XSLT transformations with hard links to resources in the old location (16.0), they won't automatically be updated; you need to manually change the paths to the new 16.1 framework location before they'll inherit changes. A more reliable way to do this is to use the Oxygen variable ${frameworkDir(TEI P5)} to point to the TEI framework directory that's current for the version of Oxygen you're using. So: ${frameworkDir(TEI P5)}/xml/tei/stylesheet/relaxng/build-to.xml will get you to the odd-to-relax build file, for instance; and this should still work correctly when you upgrade Oxygen. Cheers, Martin On 15-04-29 05:05 AM, Lou Burnard wrote:
I'm puzzled...
I have installed all the recent updates to the TEI framework from the TEI site, and my local .com.oxygen.xml directory contains an updated version of one of the XSLT scripts provided as a result:
-rw-rw-r-- 1 lou lou 13520 Apr 29 12:02 ./.com.oxygenxml/extensions/v16.1/frameworks/http___www.tei_c.org_release_oxygen_updateSite.oxygen/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl
However, when I actually run the conversion from within oXygen, it does not use this version, but instead the one released ages ago, which is still in the installation directory:
-rw-r--r-- 1 lou lou 9612 Jan 22 13:43 ./OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl
The Ant script I am running in my transformation says "Loading stylesheet /home/lou/OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/docx/from.xsl"
It also uses the build-from.xml file from the same directory, rather than the one one in the .com.oxygml tree, which is however identical. But since it uses relative paths, maybe that is the problem?
Any advice much appreciated...
Thanks Martin, this is indeed (more or less) the problem. In fact, the transformation scenario in question is one I made by editing the built-in DOCX TEI P5 transformation. By default, on my machine, this starts off looking for scripts in ${frameworksDir} rather than your more elegant (and effective) proposal. So the question becomes: where is this default coming from, and is it something we (the TEI) should have fixed? Curiously, most of the other transformation scenarios seem to be hardwired to a particular directory. On 29/04/15 13:38, Martin Holmes wrote:
Hi Lou,
When you install an updated version of Oxygen, if you have ant or XSLT transformations with hard links to resources in the old location (16.0), they won't automatically be updated; you need to manually change the paths to the new 16.1 framework location before they'll inherit changes.
A more reliable way to do this is to use the Oxygen variable ${frameworkDir(TEI P5)} to point to the TEI framework directory that's current for the version of Oxygen you're using. So:
${frameworkDir(TEI P5)}/xml/tei/stylesheet/relaxng/build-to.xml
will get you to the odd-to-relax build file, for instance; and this should still work correctly when you upgrade Oxygen.
Cheers, Martin
On 15-04-29 05:05 AM, Lou Burnard wrote:
I'm puzzled...
I have installed all the recent updates to the TEI framework from the TEI site, and my local .com.oxygen.xml directory contains an updated version of one of the XSLT scripts provided as a result:
-rw-rw-r-- 1 lou lou 13520 Apr 29 12:02 ./.com.oxygenxml/extensions/v16.1/frameworks/http___www.tei_c.org_release_oxygen_updateSite.oxygen/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl
However, when I actually run the conversion from within oXygen, it does not use this version, but instead the one released ages ago, which is still in the installation directory:
-rw-r--r-- 1 lou lou 9612 Jan 22 13:43 ./OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl
The Ant script I am running in my transformation says "Loading stylesheet /home/lou/OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/docx/from.xsl"
It also uses the build-from.xml file from the same directory, rather than the one one in the .com.oxygml tree, which is however identical. But since it uses relative paths, maybe that is the problem?
Any advice much appreciated...
I believe our own transformations in our framework should be using the ${framework} variable, which makes them automatically (I hope) relative to their own location. That should mean that when you disable the associations that come with the TEI stuff in Oxygen, and install our version of the plugin, Oxygen knows that's where the TEI stuff lives, and inside that, all the transformations know their own location. That's worked up to now, anyway. Cheers, Martin On 15-04-29 07:41 AM, Lou Burnard wrote:
Thanks Martin, this is indeed (more or less) the problem. In fact, the transformation scenario in question is one I made by editing the built-in DOCX TEI P5 transformation. By default, on my machine, this starts off looking for scripts in ${frameworksDir} rather than your more elegant (and effective) proposal. So the question becomes: where is this default coming from, and is it something we (the TEI) should have fixed?
Curiously, most of the other transformation scenarios seem to be hardwired to a particular directory.
On 29/04/15 13:38, Martin Holmes wrote:
Hi Lou,
When you install an updated version of Oxygen, if you have ant or XSLT transformations with hard links to resources in the old location (16.0), they won't automatically be updated; you need to manually change the paths to the new 16.1 framework location before they'll inherit changes.
A more reliable way to do this is to use the Oxygen variable ${frameworkDir(TEI P5)} to point to the TEI framework directory that's current for the version of Oxygen you're using. So:
${frameworkDir(TEI P5)}/xml/tei/stylesheet/relaxng/build-to.xml
will get you to the odd-to-relax build file, for instance; and this should still work correctly when you upgrade Oxygen.
Cheers, Martin
On 15-04-29 05:05 AM, Lou Burnard wrote:
I'm puzzled...
I have installed all the recent updates to the TEI framework from the TEI site, and my local .com.oxygen.xml directory contains an updated version of one of the XSLT scripts provided as a result:
-rw-rw-r-- 1 lou lou 13520 Apr 29 12:02 ./.com.oxygenxml/extensions/v16.1/frameworks/http___www.tei_c.org_release_oxygen_updateSite.oxygen/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl
However, when I actually run the conversion from within oXygen, it does not use this version, but instead the one released ages ago, which is still in the installation directory:
-rw-r--r-- 1 lou lou 9612 Jan 22 13:43 ./OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/from_common.xsl
The Ant script I am running in my transformation says "Loading stylesheet /home/lou/OxygenXMLEditor16/frameworks/tei/xml/tei/stylesheet/profiles/oulipo/docx/from.xsl"
It also uses the build-from.xml file from the same directory, rather than the one one in the .com.oxygml tree, which is however identical. But since it uses relative paths, maybe that is the problem?
Any advice much appreciated...
participants (2)
-
Lou Burnard
-
Martin Holmes