Extension Functions
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Mon Jul 09, 2012 5:12 pm
Extension Functions
Hi,
I have an XSLT that uses:
However, when I try to make use of it using Saxon EE:
I get an error saying :
Cannot find a matching 1-argument function named {xalan://moo.utilities.SysInfo}getBuild()
or using Saxon 6.5.5 I get :
The URI xalan://moo.utilities.SysInfo does not identify an external Java class
The weird thing is this worked three weeks ago, but since then I've upgraded to oXygen 14 and moved my XSL and XML files to their own directories. So I tried moving the jar file in to my XML dir, the XSL dir but nothing works anymore!
As this worked before I am now quite confused. Is anyone able to help me?
--
Bill
I have an XSLT that uses:
Code: Select all
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xalan="http://xml.apache.org/xslt"
xmlns:myNS="xalan://moo.utilities.SysInfo"
exclude-result-prefixes="xs myNS xalan" >
<xsl:output method="xml" indent="yes" xml:space="default" encoding="UTF-8" />
<xsl:param name="lastDateUsed" />
<xsl:variable name="System" select="myNS:new($lastDateUsed)" />
Code: Select all
<status build='{myNS:getBuild($System)}'/>
Cannot find a matching 1-argument function named {xalan://moo.utilities.SysInfo}getBuild()
or using Saxon 6.5.5 I get :
The URI xalan://moo.utilities.SysInfo does not identify an external Java class
The weird thing is this worked three weeks ago, but since then I've upgraded to oXygen 14 and moved my XSL and XML files to their own directories. So I tried moving the jar file in to my XML dir, the XSL dir but nothing works anymore!
As this worked before I am now quite confused. Is anyone able to help me?
--
Bill
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Extension Functions
Hi,
Considering the namespace, that's probably a Xalan extension. So I'd try to use the Xalan transformer instead of Saxon EE or Saxon 6.5.5.
Regards,
Adrian
Considering the namespace, that's probably a Xalan extension. So I'd try to use the Xalan transformer instead of Saxon EE or Saxon 6.5.5.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service