[oXygen-user] Cannot find a matching 2-argument function named {org.dita.dost.util.ImgUtils}getWidth()
Echlin, Robert
Robert.Echlin at windriver.com
Wed Sep 19 10:44:29 CDT 2012
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 at oxygenxml.com [mailto:oxygen-user-bounces at 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 at 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 at windriver.com
> <mailto:Robert.Echlin at 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 at oxygenxml.com]
> <mailto:%5Bmailto:support at 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 at windriver.com <mailto:Robert.Echlin at 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 at oxygenxml.com]
> <mailto:%5Bmailto:support at 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 at windriver.com
> <mailto:Robert.Echlin at 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 at oxygenxml.com <mailto:oXygen-user at 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 at oxygenxml.com
http://www.oxygenxml.com
_______________________________________________
oXygen-user mailing list
oXygen-user at oxygenxml.com
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list