简体   繁体   English

Oracle Fusion 12 C中3个processXQuery XPATH扩展功能之间的区别

[英]Difference among 3 processXQuery XPATH Extension Functions in Oracle Fusion 12 C

While creating mappings for Oracle 12C BPM, I am trying to use Xquery File to convert xs:dateTime to Custom XSD Time Format "DateTimeType" descibed here below 在为Oracle 12C BPM创建映射时,我尝试使用Xquery File将xs:dateTime转换为下面在此处描述的自定义XSD时间格式“ DateTimeType”

 <xsd:simpleType name="DateTimeType">
<xsd:restriction base="xsd:dateTime">
  <xsd:pattern value=".+T.+(Z|[+-].+)"/>
</xsd:restriction>

However, In order to use XQuery I am offered with 3 Choices by JDeveloper IDE 但是,为了使用XQuery,JDeveloper IDE为我提供了3种选择

Here is official Oracle Doc Link 这是官方的Oracle Doc链接

https://docs.oracle.com/cloud/latest/soacs_gs/SOASE/soa-xpath-extension-funcs.htm#SOASE2155 https://docs.oracle.com/cloud/latest/soacs_gs/SOASE/soa-xpath-extension-funcs.htm#SOASE2155

In JDEVELOPER BPM Mappings , There are 3 XPATH Extensions 在JDEVELOPER BPM映射中,有3个XPATH扩展

B.3.29 processXQuery B.3.29 processXQuery
B.3.30 processXQuery10 B.3.30 processXQuery10
B.3.31 processXQuery2004 B.3.31 processXQuery2004

I have done a bit of research , But There seems not to be enough Oracle Documentation on it. 我做了一些研究,但是似乎没有足够的Oracle文档。

  • Can anyone help me in understanding difference among these 3 Extensions ? 谁能帮助我理解这三个扩展之间的区别?

  • Why Should I prefer one over the other ? 为什么我要优先选择另一个?

processXQuery2004() uses an XQuery processor based on a 2004 draft of W3C XQuery. processXQuery2004()使用基于2004 W3C XQuery草案的XQuery处理器。 It is kept around for backwards compatibility issues and you shouldn't use it for anything new. 它保留用于向后兼容性问题,您不应将其用于任何新事物。

processXQuery10() uses an XQuery processor based on the 1.0 W3C recommendation for XQuery. processXQuery10()使用基于XQuery的1.0 W3C建议的XQuery处理器。 This is the one you should use. 这是您应该使用的一种。 https://www.w3.org/TR/xquery/ https://www.w3.org/TR/xquery/

I am not sure about processXQuery(). 我不确定processXQuery()。 It might default to one of the previous two or use some older processor. 它可能默认为前两个之一,或使用某些较旧的处理器。 In any case, processXQuery10() is what you should use. 无论如何,您应该使用processXQuery10()。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM