Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()

Hi I am trying to use oXygen to validate XSL that includes use of functions from "dost". The code runs in the DITA OT with no problems. Here is the error message: Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Is there something I can do to my code or to my validation scenario to make oXygen validate this? Thanks, Rob -- Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr

Hello, You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario. Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

(resending – Mistake in the first one) Hi Adrian, Thanks I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”. Rob Better Screenshot: [cid:image001.png@01CD91BA.521C8DC0] -- Rob Echlin, Documentation Systems Architect, Wind River From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Thursday, September 13, 2012 1:00 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hello, You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario. Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com<mailto:Robert.Echlin@windriver.com>> wrote: Hi I am trying to use oXygen to validate XSL that includes use of functions from “dost”. The code runs in the DITA OT with no problems. Here is the error message: Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Is there something I can do to my code or to my validation scenario to make oXygen validate this? Thanks, Rob -- Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi, Sorry, I should have been more explicit. In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions". In the transformation scenario editing dialog it's called "Extensions". Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com> wrote:
(resending – Mistake in the first one)
Hi Adrian,
Thanks
I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”.
Rob
Better Screenshot:
<image001.png>
--
Rob Echlin, Documentation Systems Architect, Wind River
From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Thursday, September 13, 2012 1:00 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello,
You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Adrian, Thanks. However, I still have the two errors when I run “Validate” on my scripts with my custom validator. Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight() The errors are found in the D4P files. Here is the style sheet declaration in the file - DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0"> Here are the offending lines: <xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/> and <xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/> Here is the setting in the Add Extension dialog box: ${frameworks}/dita/DITA-OT/lib/dost.jar relevant notes: - I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen - Windows 7, 64 bit - Validator points to the top XSL file in my plugin - Files imported more than once: o DITA-OT/xsl/common/dita-utilities.xsl o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/dita-support-lib.xsl o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/relpath_util.xsl Rob -- Rob Echlin, Documentation Systems Architect, Wind River From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Thursday, September 13, 2012 4:01 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hi, Sorry, I should have been more explicit. In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions". In the transformation scenario editing dialog it's called "Extensions". Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com<mailto:Robert.Echlin@windriver.com>> wrote: (resending – Mistake in the first one) Hi Adrian, Thanks I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”. Rob Better Screenshot: <image001.png> -- Rob Echlin, Documentation Systems Architect, Wind River From: Oxygen XML Editor Support [mailto:support@oxygenxml.com]<mailto:[mailto:support@oxygenxml.com]> Sent: Thursday, September 13, 2012 1:00 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hello, You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario. Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com<mailto:Robert.Echlin@windriver.com>> wrote: Hi I am trying to use oXygen to validate XSL that includes use of functions from “dost”. The code runs in the DITA OT with no problems. Here is the error message: Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Is there something I can do to my code or to my validation scenario to make oXygen validate this? Thanks, Rob -- Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Robert, I remember seeing two validation units in the screenshot with your validation scenario. I'm not sure what the second points to. Is it a master file? If both validation units (the second possibly indirectly) happen to validate this XSLT that refers the functions from dost.jar, you will have to add the said jar to both units. Regards, Adrian Adrian Buza Oxygen XML Editor Support On 17.09.2012, at 20:42, "Echlin, Robert" <Robert.Echlin@windriver.com> wrote:
Hi Adrian,
Thanks.
However, I still have the two errors when I run “Validate” on my scripts with my custom validator.
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight()
The errors are found in the D4P files.
Here is the style sheet declaration in the file
- DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0">
Here are the offending lines:
<xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/>
and
<xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/>
Here is the setting in the Add Extension dialog box:
${frameworks}/dita/DITA-OT/lib/dost.jar
relevant notes:
- I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen
- Windows 7, 64 bit
- Validator points to the top XSL file in my plugin
- Files imported more than once:
o DITA-OT/xsl/common/dita-utilities.xsl
o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/dita-support-lib.xsl
o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/relpath_util.xsl
Rob
--
Rob Echlin, Documentation Systems Architect, Wind River
From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Thursday, September 13, 2012 4:01 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi,
Sorry, I should have been more explicit.
In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions".
In the transformation scenario editing dialog it's called "Extensions".
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com> wrote:
(resending – Mistake in the first one)
Hi Adrian,
Thanks
I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”.
Rob
Better Screenshot:
<image001.png>
--
Rob Echlin, Documentation Systems Architect, Wind River
From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Thursday, September 13, 2012 1:00 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello,
You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Adrian, Here are the current screen shots. [cid:image001.png@01CD9652.821FF6F0] [cid:image002.png@01CD9652.821FF6F0] [cid:image003.png@01CD9652.821FF6F0] Just to check that the path is correct, I pasted it into a cmd window. [cid:image004.png@01CD9652.ED5A86B0] And the results: [cid:image005.png@01CD9653.33CD0AA0] Thanks for your patience. Rob -- Rob Echlin, Documentation Systems Architect, Wind River From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Monday, September 17, 2012 2:49 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hi Robert, I remember seeing two validation units in the screenshot with your validation scenario. I'm not sure what the second points to. Is it a master file? If both validation units (the second possibly indirectly) happen to validate this XSLT that refers the functions from dost.jar, you will have to add the said jar to both units. Regards, Adrian Adrian Buza Oxygen XML Editor Support On 17.09.2012, at 20:42, "Echlin, Robert" <Robert.Echlin@windriver.com<mailto:Robert.Echlin@windriver.com>> wrote: Hi Adrian, Thanks. However, I still have the two errors when I run “Validate” on my scripts with my custom validator. Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight() The errors are found in the D4P files. Here is the style sheet declaration in the file - DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0"> Here are the offending lines: <xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/<mailto:../@origHref))%22/>> and <xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/<mailto:../@origHref))%22/>> Here is the setting in the Add Extension dialog box: ${frameworks}/dita/DITA-OT/lib/dost.jar relevant notes: - I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen - Windows 7, 64 bit - Validator points to the top XSL file in my plugin - Files imported more than once: o DITA-OT/xsl/common/dita-utilities.xsl o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/dita-support-lib.xsl o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/relpath_util.xsl Rob -- Rob Echlin, Documentation Systems Architect, Wind River From: Oxygen XML Editor Support [mailto:support@oxygenxml.com]<mailto:[mailto:support@oxygenxml.com]> Sent: Thursday, September 13, 2012 4:01 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hi, Sorry, I should have been more explicit. In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions". In the transformation scenario editing dialog it's called "Extensions". Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com<mailto:Robert.Echlin@windriver.com>> wrote: (resending – Mistake in the first one) Hi Adrian, Thanks I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”. Rob Better Screenshot: <image001.png> -- Rob Echlin, Documentation Systems Architect, Wind River From: Oxygen XML Editor Support [mailto:support@oxygenxml.com]<mailto:[mailto:support@oxygenxml.com]> Sent: Thursday, September 13, 2012 1:00 PM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hello, You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario. Regards, Adrian Adrian Buza Oxygen XML Editor Support On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com<mailto:Robert.Echlin@windriver.com>> wrote: Hi I am trying to use oXygen to validate XSL that includes use of functions from “dost”. The code runs in the DITA OT with no problems. Here is the error message: Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Is there something I can do to my code or to my validation scenario to make oXygen validate this? Thanks, Rob -- Rob Echlin, Documentation Systems Architect, Wind River +1.613.270.5796 | Skype: rob.echlin.wr _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com<mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hello Robert, I've just tested this and found the problem. This qualifies as a bug. If you let the "Validation engine" to "<Default engine>" the libraries are not passed onto the detected engine even though that engine supports extensions. I've logged this to our issue tracking tool to be resolved. A simple workaround is to select an explicit "Validation engine" for the validation unit. You can use it to either Saxon-PE or Saxon-EE and it should work. Let me know if this doesn't fix the problem. Regards, Adrian Echlin, Robert wrote:
Hi Adrian,
Here are the current screen shots.
Just to check that the path is correct, I pasted it into a cmd window.
And the results:
Thanks for your patience.
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] *Sent:* Monday, September 17, 2012 2:49 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi Robert,
I remember seeing two validation units in the screenshot with your validation scenario. I'm not sure what the second points to. Is it a master file?
If both validation units (the second possibly indirectly) happen to validate this XSLT that refers the functions from dost.jar, you will have to add the said jar to both units.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 17.09.2012, at 20:42, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi Adrian,
Thanks.
However, I still have the two errors when I run “Validate” on my scripts with my custom validator.
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight()
The errors are found in the D4P files.
Here is the style sheet declaration in the file
- DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0">
Here are the offending lines:
<xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
and
<xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
Here is the setting in the Add Extension dialog box:
${frameworks}/dita/DITA-OT/lib/dost.jar
relevant notes:
- I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen
- Windows 7, 64 bit
- Validator points to the top XSL file in my plugin
- Files imported more than once:
o DITA-OT/xsl/common/dita-utilities.xsl
o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/dita-support-lib.xsl
o DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/relpath_util.xsl
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 4:01 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi,
Sorry, I should have been more explicit.
In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions".
In the transformation scenario editing dialog it's called "Extensions".
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
(resending – Mistake in the first one)
Hi Adrian,
Thanks
I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”.
Rob
Better Screenshot:
<image001.png>
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 1:00 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello,
You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River** *+1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com

Hi Adrian, Doesn't work with any of the Saxon engines. Maybe because I am using 13.2? Rob -- Rob Echlin, Documentation Systems Architect, Wind River -----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of Oxygen XML Editor Support Sent: Wednesday, September 19, 2012 10:55 AM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hello Robert, I've just tested this and found the problem. This qualifies as a bug. If you let the "Validation engine" to "<Default engine>" the libraries are not passed onto the detected engine even though that engine supports extensions. I've logged this to our issue tracking tool to be resolved. A simple workaround is to select an explicit "Validation engine" for the validation unit. You can use it to either Saxon-PE or Saxon-EE and it should work. Let me know if this doesn't fix the problem. Regards, Adrian Echlin, Robert wrote:
Hi Adrian,
Here are the current screen shots.
Just to check that the path is correct, I pasted it into a cmd window.
And the results:
Thanks for your patience.
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] *Sent:* Monday, September 17, 2012 2:49 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi Robert,
I remember seeing two validation units in the screenshot with your validation scenario. I'm not sure what the second points to. Is it a master file?
If both validation units (the second possibly indirectly) happen to validate this XSLT that refers the functions from dost.jar, you will have to add the said jar to both units.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 17.09.2012, at 20:42, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi Adrian,
Thanks.
However, I still have the two errors when I run “Validate” on my scripts with my custom validator.
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight()
The errors are found in the D4P files.
Here is the style sheet declaration in the file
- DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0">
Here are the offending lines:
<xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
and
<xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
Here is the setting in the Add Extension dialog box:
${frameworks}/dita/DITA-OT/lib/dost.jar
relevant notes:
- I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen
- Windows 7, 64 bit
- Validator points to the top XSL file in my plugin
- Files imported more than once:
o DITA-OT/xsl/common/dita-utilities.xsl
o
DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/di ta-support-lib.xsl
o
DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/re lpath_util.xsl
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 4:01 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi,
Sorry, I should have been more explicit.
In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions".
In the transformation scenario editing dialog it's called "Extensions".
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
(resending – Mistake in the first one)
Hi Adrian,
Thanks
I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”.
Rob
Better Screenshot:
<image001.png>
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 1:00 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello,
You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River** *+1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Robert, I've just tested this in v13.2 and it worked fine for me with Saxon-PE and Saxon-EE. Check if all the configuration. Specifically, is the jar still there in the list of Libraries? Have you tinkered with the Saxon settings from Options > Preferences, XML > XSLT-FO-XQuery > XSLT > Saxon > Saxon-HE/PE/EE? Do you have a Saxon configuration file set there? Try to press Restore defaults in the "Saxon-HE/PE/EE" option page and let me know if it makes any difference. Regards, Adrian Echlin, Robert wrote:
Hi Adrian, Doesn't work with any of the Saxon engines. Maybe because I am using 13.2?
Rob
-- Rob Echlin, Documentation Systems Architect, Wind River
-----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of Oxygen XML Editor Support Sent: Wednesday, September 19, 2012 10:55 AM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello Robert,
I've just tested this and found the problem. This qualifies as a bug. If you let the "Validation engine" to "<Default engine>" the libraries are not passed onto the detected engine even though that engine supports extensions. I've logged this to our issue tracking tool to be resolved.
A simple workaround is to select an explicit "Validation engine" for the validation unit. You can use it to either Saxon-PE or Saxon-EE and it should work.
Let me know if this doesn't fix the problem.
Regards, Adrian
Echlin, Robert wrote:
Hi Adrian,
Here are the current screen shots.
Just to check that the path is correct, I pasted it into a cmd window.
And the results:
Thanks for your patience.
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] *Sent:* Monday, September 17, 2012 2:49 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi Robert,
I remember seeing two validation units in the screenshot with your validation scenario. I'm not sure what the second points to. Is it a master file?
If both validation units (the second possibly indirectly) happen to validate this XSLT that refers the functions from dost.jar, you will have to add the said jar to both units.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 17.09.2012, at 20:42, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi Adrian,
Thanks.
However, I still have the two errors when I run “Validate” on my scripts with my custom validator.
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight()
The errors are found in the D4P files.
Here is the style sheet declaration in the file
- DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0">
Here are the offending lines:
<xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
and
<xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
Here is the setting in the Add Extension dialog box:
${frameworks}/dita/DITA-OT/lib/dost.jar
relevant notes:
- I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen
- Windows 7, 64 bit
- Validator points to the top XSL file in my plugin
- Files imported more than once:
o DITA-OT/xsl/common/dita-utilities.xsl
o
DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/di ta-support-lib.xsl
o
DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/re lpath_util.xsl
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 4:01 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi,
Sorry, I should have been more explicit.
In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions".
In the transformation scenario editing dialog it's called "Extensions".
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
(resending – Mistake in the first one)
Hi Adrian,
Thanks
I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”.
Rob
Better Screenshot:
<image001.png>
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 1:00 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello,
You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River** *+1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Adrian Buza oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com

Hi Adrian, I fixed the problem. First I did the Restore Defaults on both of the Saxon HE/PE/EE pages in options, in Xquery and XSLT, as you suggested. This did not fix it, yet. Then I discovered that I selected the wrong copy of the dost.jar file in the Validate scenario. I have Author using an oXygen Frameworks copy near my data, in c:\svn\... In Editor, I am using the default Frameworks location. However, in the process of testing yesterday, I mistakenly changed my XSLT validation in Editor to point to the copy of the dost file that Author is using. I fixed that, too, and now the validation works. I think you are correct that I changed the Saxon settings somehow at some point. Thank you, Rob -- Rob Echlin, Documentation Systems Architect, Wind River -----Original Message----- From: Oxygen XML Editor Support [mailto:support@oxygenxml.com] Sent: Thursday, September 20, 2012 5:37 AM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth() Hi Robert, I've just tested this in v13.2 and it worked fine for me with Saxon-PE and Saxon-EE. Check if all the configuration. Specifically, is the jar still there in the list of Libraries? Have you tinkered with the Saxon settings from Options > Preferences, XML > XSLT-FO-XQuery > XSLT > Saxon > Saxon-HE/PE/EE? Do you have a Saxon configuration file set there? Try to press Restore defaults in the "Saxon-HE/PE/EE" option page and let me know if it makes any difference. Regards, Adrian Echlin, Robert wrote:
Hi Adrian, Doesn't work with any of the Saxon engines. Maybe because I am using 13.2?
Rob
-- Rob Echlin, Documentation Systems Architect, Wind River
-----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user-bounces@oxygenxml.com] On Behalf Of Oxygen XML Editor Support Sent: Wednesday, September 19, 2012 10:55 AM To: Echlin, Robert Cc: Oxygen User Subject: Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello Robert,
I've just tested this and found the problem. This qualifies as a bug. If you let the "Validation engine" to "<Default engine>" the libraries are not passed onto the detected engine even though that engine supports extensions. I've logged this to our issue tracking tool to be resolved.
A simple workaround is to select an explicit "Validation engine" for the validation unit. You can use it to either Saxon-PE or Saxon-EE and it should work.
Let me know if this doesn't fix the problem.
Regards, Adrian
Echlin, Robert wrote:
Hi Adrian,
Here are the current screen shots.
Just to check that the path is correct, I pasted it into a cmd window.
And the results:
Thanks for your patience.
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] *Sent:* Monday, September 17, 2012 2:49 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi Robert,
I remember seeing two validation units in the screenshot with your validation scenario. I'm not sure what the second points to. Is it a master file?
If both validation units (the second possibly indirectly) happen to validate this XSLT that refers the functions from dost.jar, you will have to add the said jar to both units.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 17.09.2012, at 20:42, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi Adrian,
Thanks.
However, I still have the two errors when I run “Validate” on my scripts with my custom validator.
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getHeight()
The errors are found in the D4P files.
Here is the style sheet declaration in the file
- DITA-OT/plugins/net.sourceforge.dita4publishers.common.html/xsl/commonHtmlOverrides.xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:relpath="http://dita2indesign/functions/relpath" xmlns:java="org.dita.dost.util.ImgUtils" exclude-result-prefixes="xs xd relpath java" version="2.0">
Here are the offending lines:
<xsl:value-of select="java:getWidth($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
and
<xsl:value-of select="java:getHeight($baseUri, string(../@origHref))"/ <mailto:../@origHref%29%29%22/>>
Here is the setting in the Add Extension dialog box:
${frameworks}/dita/DITA-OT/lib/dost.jar
relevant notes:
- I have set the framework to a location in my SVN checkout, not in C:\Program Files\Oxygen
- Windows 7, 64 bit
- Validator points to the top XSL file in my plugin
- Files imported more than once:
o DITA-OT/xsl/common/dita-utilities.xsl
o
DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/d i ta-support-lib.xsl
o
DITA-OT/plugins/net.sourceforge.dita4publishers.common.xslt/xsl/lib/r e lpath_util.xsl
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 4:01 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hi,
Sorry, I should have been more explicit.
In the validation scenario editing dialog the button in question has only an icon (cogwheel), but no label and the button tooltip says "Edit extensions".
In the transformation scenario editing dialog it's called "Extensions".
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 21:16, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
(resending – Mistake in the first one)
Hi Adrian,
Thanks
I found the extensions button when I looked at “Edit scenario” from “oXygen Editor”.
Rob
Better Screenshot:
<image001.png>
--
*Rob Echlin*, Documentation Systems Architect, *Wind River*
*From:* Oxygen XML Editor Support [mailto:support@oxygenxml.com] <mailto:%5Bmailto:support@oxygenxml.com%5D> *Sent:* Thursday, September 13, 2012 1:00 PM *To:* Echlin, Robert *Cc:* Oxygen User *Subject:* Re: [oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Hello,
You need to configure either a transformation scenario or a validation scenario and add dost.jar to the Extensions section (it's a button) from the scenario.
Regards,
Adrian
Adrian Buza
Oxygen XML Editor Support
On 13.09.2012, at 19:27, "Echlin, Robert" <Robert.Echlin@windriver.com <mailto:Robert.Echlin@windriver.com>> wrote:
Hi
I am trying to use oXygen to validate XSL that includes use of functions from “dost”.
The code runs in the DITA OT with no problems.
Here is the error message:
Description: Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Is there something I can do to my code or to my validation scenario to make oXygen validate this?
Thanks,
Rob
--
*Rob Echlin*, Documentation Systems Architect, *Wind River** *+1.613.270.5796 | Skype: rob.echlin.wr
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Adrian Buza oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com
participants (2)
-
Echlin, Robert
-
Oxygen XML Editor Support