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

Echlin, Robert Robert.Echlin at windriver.com
Mon Sep 17 12:42:47 CDT 2012


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 at 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 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:[mailto:support at 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 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20120917/ea449cb5/attachment-0001.html 


More information about the oXygen-user mailing list