XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bill HuttonSubject: java extension works in StylusStudio but nowhere else
Author: Bill Hutton
Date: 23 May 2005 04:07 PM
Windows XP environment. Web server Apache 2 / Tomcat 3.
I have developed an extension in Java that is called from xsl. This works fine in Stylus Studio but when I try and run query in anything outside of the studio I get an error like the following:

Function not in namespaceError in XPath expression, Function not in namespace
XSLT stack dump

I declare the function with the following:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ext="EvalPEConfig"
version ="1.0">

It is called by the following:

<xsl:value-of disable-output-escaping="yes"
select="ext:ReadAndPrintXMLFile('WFI_USER_DATA','securityCode',string($securitycode))" />

The java function is in classpath environment variable.

Posttop
Ivan PedruzziSubject: java extension works in StylusStudio but nowhere else
Author: Ivan Pedruzzi
Date: 23 May 2005 04:53 PM
Bill,

Could you post the entire stacktrace you get?

Did you try to use the XalanJ processor from inside Stylus Studio?

Here you can find out how to call java extensions with XalanJ
http://xml.apache.org/xalan-j/extensions.html

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.