2016-02-29 157 views
0

雖然做XSLT轉換匹配的5參數的功能,我有一個要求,叫裏面的數據源XSL。我使用的ORA-EXT來實現它。但我正在逐漸上找不到使用ORAEXT查詢數據庫功能的名爲匹配5參數函數和4個參數的匹配功能。ORAEXT:XPST0017:無法找到名爲

完整堆棧跟蹤:

Static error at char 1 near {...t_code','jdbc/JDBCDataSourc...} in expression in xsl:value-of/@select on line 1 column 1575 
    XPST0017: Cannot find a matching 5-argument function named 
    {http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc}lookup-table(). For diagnostics on calls to Java methods, use the -TJ command line option or set the Configuration property FeatureKeys.TRACE_EXTERNAL_FUNCTIONS 

這是我的XSLT:

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" 
xmlns:sql="http://ns.saxonica.com/sql" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:java="http://saxon.sf.net/java-type" 
xmlns:saxon="http://saxon.sf.net/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:ora="http://schemas.oracle.com/xpath/extension" 
exclude-result-prefixes="java saxon xsd xsi xsl sql" 
extension-element-prefixes="saxon sql" 
> 
<xsl:template match="Order"> 
<Parameter> 
<xsl:attribute name="name">ACT_CODE</xsl:attribute> 
<xsl:attribute name="value"> 
<xsl:value-of select="oraext:lookup-table('ACT_CODE_MTDT', 'prdt_id','1159', 'act_code','jdbc/JDBCDataSource')"/> 
</xsl:attribute> 
</Parameter> 

</xsl:template> 

</xsl:stylesheet> 

請建議,如果我丟失的東西。我建議,如果需要從ojdbc6.jar除了任何罐子。

而且,我發現下面的網址無法訪問:

http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc 

是該命名空間得到了改變,或有東西在我的代碼失蹤。 在此先感謝。

回答

0

在我看來,如果你正在運行撒克遜作爲XSLT處理器(我們可以從錯誤消息的形式告訴),但你試圖調用已被甲骨文作爲供應商擴展定義的擴展功能他們自己的XSLT處理器。這不會奏效。