Support of XQuery

Hi,
I am wondering about XQuery support, ideally out of the box.
Please could you help on it, provide some pattern?
Thank you!

Hi David,
XQuery 3.0 is supported by commercial versions of Saxon, however we don't support that version of Saxon and do have have any plans to upgrade to in the next patches or release. Saxon libraries are remediated libraries and currently we don't have any plan to replace them or otherwise, unless we find a compelling requirement to do so. There is no support for anyone who wants to swap out and use a newer version of Saxon, we only certify against the given version that we support. So unfortunately, I don’t see any way to support the try/catch expression in XQuery in OSM at this time.
I would suggest you to please log an enhancement request via support.us.oracle.com so that we get this requirement included formally in our list.
Thanks,
Deep
OSM - Product Management

Similar Messages

  • Support to Xquery 3.0 Specification

    hello Oracle guys, (OSM - Product makers)
    I would like to know, is there any plan to include support for the new version of XQuery 3.0, the final specification is available since four weeks ago, it would be good to use new features of XQuery 3.0 in OSM
    Features like Try / Catch, Dynamic Function call, and others
    http://www.w3.org/TR/2013/CR-xquery-30-20130108/
    Regards,
    David Alejandro Leon H

    Hi David,
    XQuery 3.0 is supported by commercial versions of Saxon, however we don't support that version of Saxon and do have have any plans to upgrade to in the next patches or release. Saxon libraries are remediated libraries and currently we don't have any plan to replace them or otherwise, unless we find a compelling requirement to do so. There is no support for anyone who wants to swap out and use a newer version of Saxon, we only certify against the given version that we support. So unfortunately, I don’t see any way to support the try/catch expression in XQuery in OSM at this time.
    I would suggest you to please log an enhancement request via support.us.oracle.com so that we get this requirement included formally in our list.
    Thanks,
    Deep
    OSM - Product Management

  • How to add all namespaces in root node of xquery transformation result?

    Hi,
    I'm using xquery Transformation in oracle service bus to transfrom output. The schema used for output transfromation has elements being imported from several schemas. so that output xml has these long tags with namespaces of repective schemas e.g.
    <rr:Get360ViewOfProductResponse      xmlns:rr="http://canaldigital.com/schema/product/CPMProductInformation/v2.0/">
    <ResponseHeader>
    <com:ResponseCode xmlns:com="http://broadcast.telenor.com/tsi/common/commonparameters_v1" >0</com:ResponseCode>
    <com:ResponseText xmlns:com="http://broadcast.telenor.com/tsi/common/commonparameters_v1" >0</com:ResponseText>
    </ResponseHeader>
    </rr:Get360ViewOfProductResponse>
    what I want to achieve is that all namespaces come once in the rootNode and all childnodes just use the repective prefixes, so that the xml size doesnt grow too large.Like below.
    <rr:Get360ViewOfProductResponse      xmlns:com="http://broadcast.telenor.com/tsi/common/commonparameters_v1" xmlns:rr="http://canaldigital.com/schema/product/CPMProductInformation/v2.0/" xmlns:pr="http://broadcast.telenor.com/tsi/common/program_v1">
    <ResponseHeader>
    <com:ResponseCode>0</com:ResponseCode>
    <com:ResponseText>0</com:ResponseText>
    </ResponseHeader>
    </rr:Get360ViewOfProductResponse>
    the difference is that ResponseCode and responseText should only use their prefix, and not complete namespace. How can i acheive this.
    Thanks in advance.
    Edited by: 856401 on Feb 9, 2012 1:53 AM

    I get error 'Invalid expression- Unexpected token copy-namespaces'. Is it supported by xquery version 1.0 ? Following is the updated xquery transformation which gives static error:
    xquery version "1.0" encoding "Cp1252";
    (:: pragma bea:global-element-parameter parameter="$get360ViewOfProductResponse1" element="ns5:Get360ViewOfProductResponse" location="../XSD/CPMSchema_v20.xsd" ::)
    (:: pragma bea:global-element-return element="ns6:Get360ViewOfProductResponse" location="../XSD/CPMSchema_v3.xsd" ::)
    declare namespace ns2 = "http://broadcast.telenor.com/tsi/common/displayinformation_v1";
    declare namespace ns1 = "http://broadcast.telenor.com/tsi/common/commonparameters_v1";
    declare namespace ns4 = "http://broadcast.telenor.com/tsi/common/Property_v2";
    declare namespace ns3 = "http://broadcast.telenor.com/tsi/common/ProductMain_v2";
    declare namespace ns0 = "http://broadcast.telenor.com/tsi/common/condition_v1";
    declare namespace ns9 = "http://broadcast.telenor.com/tsi/common/extension_v1";
    declare namespace ns5 = "http://broadcast.telenor.com/tsi/psd/cpm/CPMSchema_v20";
    declare namespace ns6 = "http://canaldigital.com/schema/product/CPMProductInformation/v3.0/";
    declare namespace xf = "http://tempuri.org/CPM_OSB_v3/XQuery/Get360ViewOfProductResponse/";
    declare namespace ns7 = "http://broadcast.telenor.com/tsi/common/productofferingpricewithrules_v2";
    declare namespace ns8 = "http://broadcast.telenor.com/tsi/common/pricecomponent_v2";
    declare copy-namespaces preserve, inherit;
    declare function xf:Get360ViewOfProductResponse($get360ViewOfProductResponse1 as element(ns5:Get360ViewOfProductResponse))
    as element(ns6:Get360ViewOfProductResponse) {
    <ns6:Get360ViewOfProductResponse>
    <ResponseHeader>
    <ns1:ResponseCode>0</ns1:ResponseCode>
    <ns1:ResponseText>{ data($get360ViewOfProductResponse1/responseDescription) }</ns1:ResponseText>
    </ResponseHeader>
    </ns6:Get360ViewOfProductResponse>
    declare variable $get360ViewOfProductResponse1 as element(ns5:Get360ViewOfProductResponse) external;
    xf:Get360ViewOfProductResponse($get360ViewOfProductResponse1)

  • Validate date in Xquery version "1.0" to be used in OSB

    I have a requirement where i have to populate error code and messages if a date is invalid. For which I can use
    xquery version "1.0" encoding "Cp1252";
    (:: pragma bea:global-element-return element="Error" location="../../IDCardStatus/xsd/xsdError.xsd" ::)
    declare namespace xf = "http://tempuri.org/IDCardRequest/xq/DateValidation/";
    declare function xf:DateValidation($date as xs:string)
        as element(Error) {
    <Error>
    {if ((fn:concat(fn:substring($date,1,4),'-',fn:substring($date,5,2),'-',fn:substring($date,7,8))) castable as xs:date)
    then
    else
            <ErrorSeq>
            <ErrorCode>97534</ErrorCode>
      <ErrorMssg></ErrorMssg>
      </ErrorSeq>
    </Error>
    declare variable $date as xs:string external;
    xf:DateValidation($date)
    But castable is not implemented in Oracle Fusion Middleware Xquery implementation and Try Catch can be used if Xquery throughs error but are implemented in xquery version "3.0" and Oracle Fusion Middleware still uses version "1.0". Please Help as its a common requirement in most of the projects i have come along.Thanks in anticipation

    Sorry, I assumed you were using 12c.  OSB 11g supports the XQuery 1.0 W3C Working Draft from 23 July 2004 and also does not include the castable expression.  OSB 12c supports the full XQuery 1.0 recommendation (including the castable expression). 

  • XQuery and Oracle XE ...

    Hi all,
    One of the major differences between "DB2 Express-C" and "Oracle XE" seems to be, support for XML and XQuery in particular. If I read this right "Oracle XE" is a purely "relational database" whereas "DB2 Express-C" is a "hybrid". (relational and XML).
    With the aggressive adoption of various XML technologies (XML, XSD, XPath/XSLT, Xquery ...) we could be seeing a whole new category of "XML rich" or "XML enabled" apps. In this environment, I would like to see Oracle take a leadership position and release a small-footprint, free edition with support for XQuery. It would be helpfull for the "innovators" and would certainly help Oracle sell their bigger DB's down, the line.
    Oracle's current position w.r.t "Oracle XE" is certainly baffling. Hopefully someone at Oracle can reply.
    Regards
    /rk

    >
    Your suggestion of trying XQuery commands in sql*plus or isql*plus would make sense if there was fundamental support for XQuery in the targetted instance of "Oracle XE". The "datasheet" on "Oracle XE" has absolutely no mention of XQuery.
    >
    My question was: Are we talking about a documentation bug or is the XQuery feature really missing in the XE edition?
    >
    On the other hand IBM's "DB2 Express-C" is an aggressive, uptodate "hybrid" DB with builtin support for XML (XMLType, XQuery ...) in addition to the proven "relational" model.
    >
    That's nice - now if IBM would finally include basic stuff like MVCC or a SP/Trigger/Application-Language like PL/SQL, DB2 Express-C would really become attractive for developers like me. Until then, I think I'll stick with the limits of XE or consider a switch to SE1 if I get the required funding.
    C.

  • Using XQuery and XPath in Java

    Hi,
    I want to execute my XQuery Expression using Java. Jdk6.0 currently have the API for evaluating XPath Expressions. How do I do for the execution of my XQuery. If Jdk6.0 not having the support for XQuery what other things do I do for that. Give me some information regarding my problem.
    Thanks.
    Phani

    You can use Saxon to execute XQuery expressions.

  • OSB: How to recreate reusable XQuery functions

    OSB's XQuery implementation does not support the XQuery "module" which allows the creation of a function library so how can OSB provide function re-use?
    I know you can create XQuery transformations that can be called but these always need a "body" that makes a specific call so I'm finiding I have to copy useful XQuery functions from one transformation to another. Ideally I should be able to call an XQuery function external to the transformation.
    Does anyone have any pointers on this or is it a fundamental limitation of the OSB XQuery implementation?
    regards

    What we did is creating a seperate project in which we use most of XQuery stuff, using SaxonSA library to run and validate the queries.
    This project adds the following possibilities for xqueries:
    - Schema validation of XPath used in XQueries (including namespaces)
    - XQuery syntax validation (with errors at the exact line and position where it fails.
    - Allows the use of modules
    - Reqression testing XQueries
    Regrettably we can not do Java callout's from XQueries as this is not supported on the ESB.
    We also build a simple 'flattener' that takes a module based, schema enriched XQuery and then generates the XQuery that can be used on the ESB itself. The flattened query is also regression tested.
    Although it was quite some work to make it, it already has paid back the initial costs of the project in the second or third project we did. We since then have enhanced the project so it also can do regression message flow validation on the OSB (we already had valid input and output messages).
    The tool also greatly improves the stability of the code on the OSB, and reduces development time as we can build the XQuery from a unit test environment that will point out typos and other xpath related problems.
    We do have some fairly complex xqueries on the OSB, the number of xqueries in the project at the moment is 187 with 250 unittests.
    So, if Oracle is not going to include it in the OSB itself (which seems lilkely at the moment), you can build such a system yourself !
    Wim Veldhuis,
    PharmaPartners BV

  • ODSI xquery types

    Hi Mike,
    I used to develop in ALDSP 2.5 but I am now on the new platform 10gR3 and I noticed with the new platform the type item() is no longer supported. I didn't use it much in 2.5 but there were a couple cases where it made sense. I did find that instead of item() I can use element() which seems to have the same effect as item() did in 2.5. I tried searching and could not find information about the supported ODSI xquery types. Is there a document that lists all the supported ODSI xquery types?
    Mike

    Thanks for the link, I have read through that before and I was looking for something more than RDBMS xquery mappings. Anyway here is my example:
    In ALDSP 2.5 sequence $input was defined as item() but when converted to ODSI an error gets triggered "type item() not supported". So I switched item() with element() and it seems to work fine. The reason I want to do this is because I have multiple version of a service running and getItemsV1 and getItemsV2 return the same shape but have different rules applied to them. I can't get rid of V1 because of consumer dependencies and I don't want to duplicate data services or functions that are typically doing the same thing. I rarely use element() as an input parameter but do you see any issue with this down the line?
    declare function tns:dummyFunction($input as element()) as element(ns:foo)* {
         let $items:=
                                  typeswitch($input)
                                       case $request as element(ns1:bar) return
                                                 ns11:getItemsV1($request)
                                       case $request as element(ns2:baz) return
                                                 ns22:getItemsV2($request)
                                       default return
    return ns3:doSomethingWithItemsFromEitherV1orV2($items)
    };

  • Xquery problems

    hi,
    i'm using xquery.jar and have encountered some problems while checking the xquery-use-cases (http://www.w3.org/TR/xmlquery-use-cases/).
    currently i do not use a DBConnection but read data from a file.
    while some of the first queries work, most don't:
    XMP Q4,Q6,Q7,Q8,Q9,Q10,Q12 do fail for different reasons.
    ('distinct-value', 'local-name', XQueryException: 1, ..)
    is there a list which features are supported by xquery.jar?
    is there any date or version when xquery will be implemented into the ORACLE DB?
    best regards
    peter
    ps: sorry for crossposting. but i'm quite sure it fit's into both forums.

    Hi Mathias,
    That was a good suggestion.
    I have already tried it and OSB gives the following error (same for element(*, xs:base64Binary) selector) :
    *{bea-err}SYS001: This functionality has not been implemented (sorry)*
    I see this error message every time i do an xquery operation that does a comparison or selection on the base xsd type of elements.
    But "instance of" does not give this error it just doesent seem to work.
    This seems to indicate that Oracle OSB doesnt support these kind of operations, even though their documentation seems to indicate otherwise.
    Regards
    Timm

  • What before, BluePrints or javaee5-samples-1.0-installer.jar

    Hi,
    I find myself in a particular situation. I want to install the javaee5-samples-1.0-installer.jar, but I need to have installed Java BluePrints. I use NetBeans 6.5 and glassfish v2ur2 all integrated in the IDE on Windows Vista
    When I go to the directory samples I find that I have not the bp-project directory.
    They say you must set up Application Server environment and follow the basic steps in the Common Build Instructions for Sample Applications to configure your environment. When I get there they say the sample applications use the Java BluePrints build system that employs a set of Ant build scripts (XML files) in the samples/bp-project directory that I have not.
    Following, in Procedure (Common Build Instructions for Sample Applications), step 2:
    Edit the file <javaee.home>/samples/bp-project/build.properties and set the value of javaee.server.passwordfile (see below). Note: the Java EE 5 SDK installer automatically sets default values for some of these properties.
    I have no any build.properties. That is the reason I have to download BluePrints, but at this point I feel completely lost because to install BluePrints I need have installed the samples.
    Will you help me with this?
    Thanking in advance,
    Jose Alvarez de Lara

    Cool. Thanks. XmlBeans has been proposed to Apache and is looking promising right
    now to go into the xml.apach.org incubator (although some work still ahead here).
    If this happens then you should definitely get what you are looking for. If
    for some reason it does not we still plan on providing this type of access. Your
    help in forming a community would be great.
    We are figuring out how best to proceed on the XQuery side of things. Your emphasis
    is duly noted ;)
    "Arek Stryjski" <[email protected]> wrote:
    >
    Thank you for invitation,
    I found it great that you decide to release XMLBaen as open source.
    First I would like to fix address you sanded. You placed a dot at the
    end of URL,
    which should be removed in order to get to this page. :)
    But more seriously yes I think there is a lot people who would lie to
    be involved
    in creation of XMLBeans (me included). As you probably have already team
    which
    made current version I don’t think core development will be possible
    for people
    from outside in the beginning.
    I think we could more contribute in testing. It will be great if you
    could make
    system for downloading latest code (similar to nightly builds in Apache)
    or access
    to CVS. This I think will speed up testing for you, and on the other
    hand give
    access to newest code for developers which required new functionality.
    It will be nice to here from you then you plan to publish support for
    XQuery.
    It will be also nice to here from you if you ever planed to add support
    of XML
    update in XQuery like in Patrick Lehti proposal http://www.lehti.de/beruf/diplomarbeit.pdf
    or any other form. This could be a really cool functionality, and it
    will be possible
    to treat XMLBean as embedded database.
    Best regards
    Arek
    PS
    On page http://workshop.bea.com/xmlbeans/schemaandperf.jsp the link “XmlBeans
    Schema Testbed” (http://workshop.bea.com/xmlbeans/XmlBeans-schemas-xstc.zip)
    is
    probably broken.

  • Full-text, extensions

    Hello DB XML users,
    I've been using BDB XML for a little while and I'm getting on all right with it so far. Mainly, I've used the Python API with my XML web publishing framework[1].
    I'm working on some basic computational linguistics projects and was wondering if there are plans for an implementation of the W3C (currently working draft) XQuery Full-text extensions[2]?
    One thing that I think it seems to lack is the ability to work well with loosely structured, textual content. However, this perception may be because most tutorials and articles seem to demonstrate the use of essentially tabular, relational data. It seems to me that using a native XML database for this sort of data is quite pointless. Why not just use a relational DBMS?
    An implementation of the XQuery Full-text extensions along with related index optimizations would make BDB XML a really useful tool.
    I'd also be interested to know if there are any tutorials/examples of extending the DB XML code itself (rather than just using the C++ API in other applications)? And if Sleepycat are interested in other people's extensions to their products?
    Cheers
    [1] http://code.google.com/p/pycoon
    [2] http://www.w3.org/TR/xquery-full-text/

    I have been using Berkeley DB XML for (1) dictionary data and (2) supporting databases of quotations illustrating language usage. The two kinds of data are published together in some kinds of dictionaries. Almost all of the data are quite tightly structured, but the actual text of the illustrative quotations can be comparatively long and contain inline markup. Given all the other factors influencing the choice of a database system where I work, I've been happy with DB XML for many of the reasons which must have attracted other DB XML users so I won't repeat all that here, and there are a few basic reasons why I have felt the "but why don't you just use a SQL database" argument isn't strong enough in our particular context for these specific datasets.
    Still, I needed to offer users full-text search access, and while I could do this with a bit of legwork, and the performance ranges from very good to acceptable with our datasets, it's not as sophisticated as I'd like it to be. Basically one seems to be tied to substring searching with some help using regexes to simulate word-boundary matches. Possibly one could do word stemming before populating the DB, create a more sophisticated query parser, etc. but I haven't got to trying that (suggestions along similar lines welcome BTW).
    The fairly recently-added case-insensitive contains() has been a great help, but I'd just like to chime in with Richard's post and say that support for XQuery Full-text would represent a significant advance in functionality and usability for my organisation. It would mean that, when we come to publish our next dictionary project online (currently this is in progress and the data is visible only to editors), it would be feasible to retain the existing DB XML setup rather than having to move the data to another system supporting more sophisticated full-text searching mopre easily. So I'm glad this is on the roadmap but I admit I am also surprised that so few people using an XML database seem to have been concerned about this question. Or perhaps I just haven't been exposed to enough of other people's data...
    Tim

  • Does OSB support XQuery import module feature ?

    In OSB version 11.1 and Oracle Weblogic Server Version: 10.3.6.0
    I need to create library of XQuery functions (reusable components), to achieve this, I need to use XQuery import module feature.
    When I tried to use it, I got this error message ‘Module feature not supported (sorry)’ …
    Does OSB support XQuery import module feature ?

    You may like to refer Eric's blogpost -
    http://www.xenta.nl/blog/2011/10/19/oracle-service-bus-the-number-of-parameters-for-registered-xquery-resource-system1_to_fault-does-not-match-that-given-to-it-at-runtime/
    Basically, if you are not using a parameter in XQuery then it will not be registered.
    Regards,
    Anuj

  • Support for DbXml specific functionality in XQuery vs. Shell or API

    Is / will there be any support for doing common commands in pure XQuery rather than just programmatically or through the shell? For example, in the shell I can create / list / delete indexes on a container, output query plans, etc. Are the same functions that are called through the shell available as XQuery functions? possibly in a dbxml function namespace?
    In a related question, but possibly deserving of a new thread if it doesn't already have one - I know XQuilla has the ability to call registered external functions from parsed XQuery, is there a way to tell DbXml to register a function with XQuilla's static context before using it? that would make it possible for me to add the functionality described above myself without disturbing your distributed code.

    Not so handy with C++ (my everday languages are PHP and Java), but if you say it can be done then I'll take a hack at it. If you happen to have examples of how other people have done it and you could point me at them it would be marvelous.
    To answer your second question: "bingo." It mostly means less interface work and brings it closer to what SQL can do in relational databases.
    The project allows the end user to define their own document structures (schema definitions more or less) and then create instances of these documents in a XML editing interface. For each document type, the end user is also able to define a set of named queries (abstracted function declarations) which lets us captures business rules without customizing our PHP code. Because the structure and queries that will be used against the documents are user defined its fairly impossible for me to automatically setup adequate indexes for the container of each set of documents. So I need an interface to allow the user to create / review / delete the indexes themselves.
    We've already created an interface that allows the user to execute arbitrary queries against a selected document. In the future we'd also like this same interface to do result set based content updates (through the XmlModify class) and whole document addition / replacement. So inclusion of index control makes sense as well. We can find ways to use the APIs, it just seems like this could benefit more than just our project.
    Placing the functionality from the shell into xquery extension functions seems analogous to having the UPDATE, DELETE and CREATE syntaxes of SQL.

  • ALSB (OSB) xquery support for fn:error

    Hi all,
    I've got a function which performs a check and eventually raise a fn:error
    In my IDE works fine and stop the transformation reporting the error, in Workshop it doesn't and complete the transformation anyway.
    Is there anything to enable? Is it supported? What other options I have?
    Thanks in advance

    Please refer -
    Re: XQuery fn:error function Issue
    Regards,
    Anuj

  • XQuery debugger/profiler support in Oxygen XML Editor

    Starting with version 11, Oxygen XML Editor (http://www.oxygenxml.com) added support for debugging and profiling XQuery interrogations on Oracle Berkeley DB XML database.
    Please check the video presentation at: http://www.oxygenxml.com/demo/BerkeleyDebugger/BerkeleyDemo.html
    A description of the Oracle Berkeley DB XML database support can be found at: http://www.oxygenxml.com/Berkeley_support.html
    Best Regards,
    Stefan
    Stefan Vasile
    <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
    http://www.oxygenxml.com

    No, it is not built on top of Netbeans. The plugin framework is JPF(http://jpf.sourceforge.net) and the docking framework is vldocking(http://www.vlsolutions.com/en/products/docking/).
    XPontus XML Editor is a standalone Java Swing application for now. The integration with Netbeans and Eclipse is planned for future releases. That will depends on the team's knowledge of Netbeans Platform and SWT.
    Thank you for your interest in XPontus XML Editor
    Yves Zoundi
    http://yveszoundi.blogspot.com

Maybe you are looking for

  • ITunes 7.0 does not allow selection of speakers for express.

    The drop down menu for speaker selection is no longer at the bottom of the window for iTunes. Now instead there is a button that says Burn Data Disc. This new release of iTunes is really amateurish. Don't you guys test your apps anymore?

  • How to know the Performance effect when swapping or changing  Containers ??

    Hi , As part of Custom Item Renderer to a DataGridColumn , i am having this code below : <mx:HBox id="jai">         <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>         <mx:Label id="kkk"  text="Pavan"/>         <m

  • How do I save personalised survey answers in CRM

    Hi experts: In SAP Help I found this statement: ...When the recipient enters this URL in a Web browser, a survey is displayed. The recipient completes the survey and sends it (by pressing the u2018Saveu2019 button) to the companyu2019s SAP CRM system

  • Actual costs after settlement

    Logically should actual costs be displayed in cost reports after settlement? In my case line item actuals shows the costs as zero as PRE settlement done to cost center. But in that case should the value be still displayed as actual costs. In other sy

  • Mixed (Java & ABAP w/different sources) System Copy Failed- NW 7.0 SR3/SP14

    Hello SAP Friends! Our NW admin did a dual stack system copy where the ABAP server came from system 1 and the Java server came from system 2. This worked fine for ABAP (duh it was installed first), but the Java system copy was a disaster. the server