testing xalan transforms with internal lookups

Here should go questions about transforming XML with XSLT and FOP.
rberge
Posts: 2
Joined: Wed May 08, 2013 1:49 am

testing xalan transforms with internal lookups

Post by rberge »

We have java code that does some lookups within the stylesheet transformations, which is something allowed by xalan.
It looks rather like this:
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:lookupHandler="HandlerLookup"
extension-element-prefixes="lookupHandler">

<xalan:component prefix="lookupHandler" functions="performLookup">
<xalan:script lang="javaclass" src="xalan://com.ge.hcit.xje.lookup.LookupHandlerFactory" />
</xalan:component>

I don't have the java code on my computer where I am running Oxygen. I have tried to set up to run it remotely from the server where it exists but haven't been able to get that to work. Should I be able to do this and can you give instructions on exactly where in Oxygen to set it up. Otherwise, i have to spend a bunch of time redoing the transformations to do the lookups from a local file.
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: testing xalan transforms with internal lookups

Post by adrian »

Hello,

If you want to set this up in Oxygen, you will need the compiled Java classes (or jar libraries) with the LookupHandlerFactory implementation. When configuring the transformation scenario (Document -> Transformation -> "Configure Transformation Scenario(s)", Edit), press the Extensions button (below the Transformer combo) and you can add the classes folder and/or the jar libraries there. The jars could be even located remotely (HTTP/WebDAV), but they will be run locally.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply