XQuery to retrieve items

Hi all

I want to extract the elements "book" with category starting with 'web'.
I tried the instruction xq
Let $category: = $bookstore / *: book [*: category =('web-*')]
But it does not work, looks like my regular expression ("web-*'") is incorrect, can someone help me write the regular expression to search for the string that ends in numbers

My xml is less than

< library >
< book >
Web < category > 1 < / category >
< author > James Linn < / author >
< year > 2003 < / year >
< / book >
< book >
< category > web-2 < / category >
< author > John < / author >
< year > 2005 < / year >
< / book >

< / book >

concerning

You can use matches() for this as follows:

Let $category: = $bookstore / *: book [matches(*:category,'web-[0-9]')]

Thank you
Patrick

It is considered good etiquette to the answerers rewards with points (as "useful" - 5 pts - or 'correct' - 10pts).
https://forums.Oracle.com/forums/Ann.jspa?annID=893

Tags: Fusion Middleware

Similar Questions

  • Retrieve items from the Recycle Bin?

    OK, so I'm a newbie in this thing whole smartphone?  Just got my Droid X last Friday and always try to understand everything - it's a bit overwhelming!

    I tried to drag something from one home to another screen (easier said than done) and I accidentally threw it in the trash CAN.  (I'm not sure that the app was, but it looked a little like a media player).

    Is it possible to retrieve items from the Recycle Bin?  I can't find any info on the trash anywhere.

    BTW - I tried to go to the application menu and pressing applications to reinstall, but, again, I don't know yet what app it was!

    Thanks for the help!

    BubbaCat wrote:Ok, could have been.  But how do I get it back on the home screen?  I've tried holding down on the screen until the menu pops up, select Motorola Widgets, and then select photo slide show. But it doesn't install a widget on the home screen.  It just takes me into the gallery. Maybe I'm doing something wrong, or maybe there is another way??
    

    No, it's not as intuitive as it could be. You are on the right track. When you enter in your gallery, select an image. Which end the putting in place and he must then take you back to the home screen where your widget must be loaded. Good comments!

  • retrieve item in the order form data

    Hello

    My description of the problem is as below you please help me?

    And requisition and purchase order, when I chose the item, the field description, price and category code have been filled autocrat, but now when I select the item it does not show other data.

    Hello

    Go to the main item for the item query & give description & price in the price list

    Concerning

    Shaan

  • Content selector does not retrieve items

    Short version:
    I can't get my content to be displayed in a browser when you use a content selector.

    Long version:
    I am using weblogic 10.2. I did not and special user rights. I made two small items in the administration of content management portal. I have added a start date to each and filled in some other fields such as the description and the title.
    I have create a selector in my datasync project content and added conditional instructions for articles created after a given date. The two pieces of content I created early exposure in the preview of the content.
    I then added the selector of content on a portal (which creates a portlet). I have change the JSP of the portlet so that it will show the amount of the returned items (nodes.length).
    When I run the present in a browser all that I see, is that the items returned are of length 0. So in closing my contents overview shows the amount to be returned. But when, in a browser, that Nothing is returned by the content selector.

    Any clue?

    I don't think that there is such a setting. So other than spelling / case sensitivity of your name of the rule against the value to your jsp, Im can not think of anything that could be bad.
    Can you confirm your content selector is less $datasyncProject/src/contentSelctors/GlobalContentSelectors

    Published by: deepshet on March 6, 2009 09:07

  • Is it possible to retrieve items from the Clipboard that you copied on?

    I wrote something on the Internet, and I had to close because it has not been able to record properly, so I copied it until I closed it.

    But then I accidentally copied something before I am able to put the text in a word in the document.  I really want to get the text on the back, so no one knows if there is a way to Browse your history of Council of clip or something? If this is not the case, this should be a feature for Windows.

    Or, is there a program I could get?

    Fine thank you!

    On Fri, September 12, 2014 02:36:23 + 0000, plammey wrote:

    I wrote something on the Internet, and I had to close because it has not been able to record properly, so I copied it until I closed it.

    But then I accidentally copied something before I am able to put the text in a word in the document.  I really want to get the text on the back, so no one knows if there is a way to * browse your clip board history * or something? If this is not the case, this should be a feature for Windows.

    Or, is there a program I could get?

    You can do this with the standard Windows Clipboard, but there
    several programs third-party Clipboard (especially free) that allow you to do
    what you want.

  • Get an AIArtHandle for all the selected items in the doc

    I'm doing what someone does in this other thread about the export in PNG.

    reference: http://forums.Adobe.com/thread/320685

    We have several layers (some off and locked).

    I would like to pass all the selected items to the Action of Image Optimization as a group rather than optimize each.  I use AIMatchingArt Suite to retrieve items selected, but it points to an array of AIArtHandles... any ideas?

    That's how I ended up doing and it works.  (In addition to the other code which has been referenced in the original post).

    I don't know if it would work better with an ArtSet, but it works.  Perhaps, if the images I'm flattening were somewhat more complicated, I would run in the duplication you mentioned.

    result = sAIActionManager-> PlayActionEvent (kAISelectAllAction, kDialogOff, NULL);

    result = sAIMatchingArt-> GetSelectedArt (store, & County);

    If {(result)

    Store = NULL;

    Count = 0;

    } else {}

    result = sAILayer-> InsertLayer (NULL, kPlaceAboveAll, & newLayer);

    If (newLayer &! result)

    {

    sAILayer-> SetLayerVisible (newLayer, true); See the layer

    sAILayer-> SetLayerIsTemplate (newLayer, false); Mark as NOT a model layer get exported

    sAILayer-> SetLayerEditable (newLayer, true);

    result = sAIArt-> NewArt (kGroupArt, kPlaceAboveAll, Nile, &group);)

    for (index = 0; (result == kNoErr) & (index< count="" );="" index++="" )="">

    Art AIArtHandle = (* store) [index];

    Copy of AIArtHandle;

    Add the art group

    result = sAIArt-> DuplicateArt (kPlaceInsideOnBottom, group, ©);)

    }

    }

    }

  • How to retrieve the page number of a page

    Hello

    I need to retrieve page which have been implemented with InDesign pages numbers. However, these page numbers are generated automatically based on markers (formula) created by using a master page. (Insert special characters-> markers).

    When I try to retrieve items from the page on a page, I'm not able to obtain the page number. If I try to get the pageitem corresponding to the page number of the page master, I retrieve the marker but not the page number that is on my page.

    I wonder if there is any way I can retrieve the page on a given page number using the SDK

    Thank you very much

    Sam

    Hello

    Have you tried GetPageString of IPageList?

    Concerning
    Bartek

  • How to sort items by order

    Hello

    I tried to sort the items on each page in InDesign according to their z-order using the indesign SDK. I used the "GetItemsOnPage()" API to retrieve items on each page. However, in this way, while I get sorted in order relative to each other in the same layer page elements, but the elements are not sorted in the order relative to each other through the layers.
    So, let's say I have have the following:

    3 layer on top of layer 2 on top of layer 1

    Article 1 on layer 1

    point 1.A on layer 1 (but 'delay' point 1 on plan Z-order)

    point 2 on layer 2

    point 3 of layer 3,

    then, when I use the GetItemsOnPage() API, I get the page items in the following order

    Article 3, section 2, point 1, point 1-> Note: order of point 1 and point 1 is correct, as 1a is behind 1. so in the same z-order layer is preserved

    Instead of

    item 1 a, point 1, point 2, point 3

    I wonder if there is a way where I can get the page items in the order in which they appear on the page regardless of the layer in which they are. I tried to use the 'Fix' utility to see if that can sort the UIDList but it did not help either...

    I'd appreciate any help in this

    Thank you

    Sam

    ========================================================================================== ===

    Here is an excerpt of what I use...

    Find the pages in current spread
    UIDList pageItems (currentDocumentDataBase);
    Int32 nPageCount = spread-> GetNumPages();
    for (int32 nPageIndex = 0; ((nPageIndex < nPageCount) & & (nErrorVal == 0)); nPageIndex ++)
    {
    Browse all objects on the page
    spread-> GetItemsOnPage (nPageIndex, & pageItems kFalse, kFalse);

    / / The pageItems I get using the APIs above are not sorted in the z-order on the whole of layers. (in the same layer they are returned in the correct order)


    Int32 nNumOfPageItems = pageItems.Length ();

    ....

    ...

    Use ArrangeUtils arranger.

  • Download PDF - why not intuitive?

    Hello! New Firefox user here, since I'm too bored with IE crashing. So, I often download PDFs from the Web. With IE, you get a pop-up window asking you to choose a location to save the download. I like that. But with Firefox, all I can do is to download on some 'library' that I can't find on my computer or retrieve items from. My two questions:

    1. where is the library? On my computer - where?

    2. I don't want articles on a flash drive, in a library. How can I specify to Firefox to save the article on my flash drive or an office, rather than the library?

    Thank you!

    Thank you guys so much!

  • WD My Passport Ultra 2 TB not mounting end 2009 Macbook running Yosemite

    I have a MacBook 2009 end I want to back up. I already have two former WD and Seagate external hard drives that work fine. However, I just bought WD My Passport Ultra 2 TB in February 2016 and it will not be mounted more than 15 seconds. It's the third external hard drive that I tried last year and I just get so frustrated that I have to return them. But I really need to back up my files!

    My Mac features: 13-inch late 2009, 2.26 GHz Intel Core 2 Duo processor, 8 GB 1067 MHz DDR3 Memory running Yosemite 10.10.5

    It remains not up long enough for me to format for Mac. Help, please.

    WD made great bare records, but their cases are often hostile Mac regardless of the hype on the box. Please see my comments in this thread:

    WD My Passport for Mac is not recognized

    The other poster was trying to retrieve items on the disk, so a delete/reformat was not an option for him. However, WD boxes are often better if they are are erased and reformatted for Mac. WD has an odd of industrial property on the reader that they stick in their enclosure which can cause formatting problems. Their speakers are often working very well after reformatting the drive inside.

    After struggling with a number of external hard drives 'brand', I now use only those that are sold by Other World Computing:

    http://eShop.MacSales.com/shop/hard-drives/external-enclosures

    They may cost more that those who will be on sale every weekend in the supermarkets of office, but, when I wonder what's worth my data, the cost of the OWC speakers seems quite affordable. We have them on every Mac we have and none have shown bad behavior.

  • bbUI.js and localStorage.getItem return null values

    Hello

    I build a WebWorks app with bbUI.js for BB10 and I run problems when I want to retrieve items of localStorage. Their storage is no problem. Here is my architecture:

    1. index.html which uses localStorage.getItem in a function ondomready for 1 screen (fueltracker.html), it works
    2. JS/Register.js with functions like registerUser(), registerEngine(), registerBrand(), registerModel() called when onclick in their respective screens, see below
    3. RegisterUser() calls register.html
    4. registerBrand() calls addCar.html
    5. registerModel() calls addModel.html
    6. registerEngine() calls addEngine.html
    7. fueltracker.html which has a few buttons that the label should be changed to values from localStorage

    The register() functions make a call to localStorage.setItem (), working (i.e. the values are defined). However, in some cases parts of objects stored in localStorage it update, so this object must be recovered first, updated and then stored again. Unfortunately the calls localStorage.getItem () does not return the value that is stored in the localStorage.

    So how does it do?

    Yes Chad, variables have been established.

    It's the same problem as this one: http://stackoverflow.com/questions/2010892/storing-objects-in-html5-localstorage (objects cannot be stored in LocalStorage, single key-value pairs, so items must be chained before putting them in the LocalStorage). The getObject() en index.html setObject methods and their use instead of getItem() and setItem() solved the problem.

  • Import files in AVCHD camera Sony PRE14-Mac

    My AVCHD camera files contain MTS files in FLOW with the video file and the ICC files in the CLIPINF, nothing surprising here folder. iMovie and the soft Sony recognize these files and view the clip as the date and time properties, PRE only matter the MTS video files, but displays an error message on the CLI files, so no clip information is available. The video content itself is available.

    So my question is this: is it possible to have the PRE to read the complete structure of AVCHD and retrieve item data?

    The elements Organizer, which comes with Premiere Elements, is able to read and display the metadata about your media files. The program even comes with an import of catalogue iMovie tool which will import all the media that is in your library of iMovie with all associated metadata.

    I spend three chapters discussing the organizer and all its amazing tools in my book an Amazon, if you are interested.

  • File Archive - part of Photoshop Elements v13 is missing

    I have ps 10 elements.  Try t upgrade to 13 and retrieves items 13 Prime Minister.  Downloaded the two files for each application.  The Prime Minister downloaded and installed without problems.

    After downloading the two files for ps s element (40 minutes), when I tried to run, gotten suite msg

    "Part of photoshop elements v13 id missing. you need the whole in the same folder to extract the Adobe Photoshop Elements v13.

    Any ideas what problem is.  as mentioned the downloaded files from the Web site.

    you have an incomplete 7z file.

    to confirm, check its file on your hard disk size and compare with the expected file size.  then redownload:

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Need help to make a search of Amazon-style box.

    5.5 using, how can I me a search engine (on a page dynamic, of course) to retrieve items from a database I set up?  I know that my recordsets and connections work because I get the correct detail page using dynamic links between it and the main.  I wish it were an Amazon-style search field that automatically full matches available in my database name of.  Any help appreciated, step by step, pls.

    The feature you are looking for is usually called 'before of type' or 'AutoComplete' there is nothing in DW which will do that for you. What scripting language on the server side are you using? Are you comfortable with Ajax?  Start searching the Web to use terms like 'database search with type ahead' or "database php with AutoComplete search".

  • empty results

    Hello

    I loaded the xml file into an XMLTYPE table. I'm using xquery to retrieve data but still iam getting null values.

    So, when I remove the tag that is xmlns = "http://xmlns.xyz.com/" to the root element it is fetching results.

    Please can someone help me what could be the problem.

    Thank you
    Kumar

    The clause 'Par' is simply a way to create a table of lower select pseudo-device that can work on... So forget this little...

    The approach here is to use XMLTABLE (see the oracle SQL and XMLDB documentation) to create a virtual table from the XML that contains the data we are interested in.

    The xmlNamespaces() clause allows you to set the namespaces we work collaboratively with

    The query led XQuery (['/ stationary/Systemconfiguration/Moduletype[@moduleName=$NAME]') indicates which nodes will be passed to the columns clause (or returned by the XMLTABLE if omit us the clause of columns).

    $NAME is the correct way to use bind variables with XMLTABLE (XMLQUERY, XMLEXISTS)

    and finally, in the columns clause, we define a column for each node, we want access and declaring his SQLTYPE and XPATH to its value, compared to the driving XQuery expression...

Maybe you are looking for