Node Set Expressions

Does Oracle implement node set expressions like count( node set ) in it's xpath syntax? If so, can you give me an example indicating how the count( node set ) expression would be used? This function would be extremely useful when iterating through a node set.
Kevin Tyson

select count(*) from purchaseorder
where existsNode(object_value,'/PurchaseOrder[User="SBELL"]') = 1
/

Similar Messages

  • Xslt error: the expression does not evaluate to a node-set

    hi guys - i'm really down because i cannot find / understand my xsl error and i have to finish my work very very soon
    the error message (by using xalan to create from the xml file my html output) is the following:
    xslt error: the expression does not evaluate to a node-set
    and the code fragement is:
    <xsl:template name="getNext">
    <xsl:param name="currentKnoten" />
    <xsl:for-each select="$currentKnoten"> //error is in this line
    </xsl:for-each>
    </xsl:template>please... help me....

    ok thanks!!! this saved me some time ;-)
    now i go back to the origin problem... my main idea is the following xsl code... may u can see here the problem with the node site.. but i think u need the xml file or?
    however this is my relevant xsl code:
    <xsl:template match="DATA">
              <xsl:element name="process">
                   <xsl:attribute name="name">
                        <xsl:value-of select="@name" />
                   </xsl:attribute>
                   <xsl:apply-templates select="INSTANCE"/>
              </xsl:element>
         </xsl:template>
    <xsl:template match="INSTANCE[@class='Data']">
              <xsl:element name="node">
                   <xsl:attribute name="name">
                        <xsl:value-of select="@name" />
                   </xsl:attribute>
                   <xsl:attribute name="class">
                        <xsl:value-of select="@class" />
                   </xsl:attribute>
                   <xsl:call-template name="copyAttributes" />
                   <xsl:variable name="nextNodes">
                        <xsl:value-of select="key('keyGetData', key('keyFrom', @name)/../TO/@instance)" />
                   </xsl:variable>
                   <xsl:call-template name="getNext">
                        <xsl:with-param name="currentNode" select="$nextNodes" />
                   </xsl:call-template>
              </xsl:element>
    </xsl:template>     
    <xsl:template name="getNext">
              <xsl:param name="currentNode"/>
              <xsl:for-each select="$currentNode">
                   <xsl:element name="node">
                        <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
                        <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
                        <xsl:variable name="nextNodes">
                             <xsl:value-of select="key('keyGetData', key('keyFrom', @name)/../TO/@instance)"/>
                        </xsl:variable>
                        <xsl:call-template name="copyAttributes"/>
                        <xsl:call-template name="getNext">
                             <xsl:with-param name="currentNode" select="$nextNodes"/>
                        </xsl:call-template>
                   </xsl:element>
              </xsl:for-each>
         </xsl:template>
         <xsl:template name="copyAttributes">
              <xsl:for-each select="descendant::*">
                   <xsl:copy>
                        <xsl:copy-of select="@*|node()"/>
                   </xsl:copy>
              </xsl:for-each>
         </xsl:template>
         <xsl:template match="@*|node()">
              <xsl:apply-templates/>
         </xsl:template>

  • Using msxsl:node-set as a function to a field in InfoPath 2010

    I have been trying to query a node set (from a web service - managed metadata web service infact) without success.  I received a GetTermSetsResult that I am trying to parse as an xml using msxsl:node-set().    Currently I am just throwing
    up messages about the expression result in a form load rule.   I just get empty node sets.  Note that I have even tried querying the xml string directly like in the examples below but the behavior is always the same.
    some examples of what I have tried that give empty nodesets:
     msxsl:node-set('<Container><TermStore>...'))/Container/TermStore
     msxsl:node-set('<Container><TermStore>...'))/Container
     msxsl:node-set('<Container><TermStore>...'))/*
    These give the following results:
     count(msxsl:node-set('<Container><TermStore>...')))  ---> reports "1"
    count(msxsl:node-set('<test>...</test><test>...</test>')))  ---> reports "1" when it should say "2"
    msxsl:node-set('<Container><TermStore>...'))/node()   ---> returns what looks like the entire xml document
    Ultimately I want to populate a listbox with managed metadata (taxonomy/folksonomy) terms in a "codeless" way.  I know it is a no brainer to use code behind but where I work they like to see minimum code.

    Hello mohrr,
    The PCIe-6321 doesn't have internal triggers you you have to export the signals to a PFI line ant the use the signal as external trigger.
    If you are not very familiar about how to do that, here you can find two documents that can give you an idea about how does it work.
    http://digital.ni.com/public.nsf/allkb/A099C37789A​ACEE386256E35007338E6?OpenDocument
    http://digital.ni.com/public.nsf/allkb/3A7F1402B2A​1CE7686256E93007E66C0?OpenDocument
    Mr.O
    Applications Engineer
    National Instruments

  • Document(object, node-set)

    Using xsql 1.0.4.1, I'm having some trouble using the document(object, node-set) function defined in the XSLT 1.0 recommendation, sect 12.1:
    http://www.w3.org/TR/xslt#function-document
    I have a tag in my source xml document which contains a reference to another xml document. I want to construct an XPath expression for this other xml document. The path to the other xml document is specified relative to the source document.
    I'm doing something like this:
    Source Document:
    <blah>
    <some-tag redirect="answer.xml" />
    </blah>XSL:
    <xsl:template match="blah/some-tag">
    <xsl:variable name="redir" select="document(@redirect, / )" />
    <xsl:apply-templates select="$redir//somepath" />
    </xsl:template>
    ...However, Oracle XSLT always comes back with the following error:
    XSL-1013: Error in expression 'document(@redirect, / )'.I also get this error if I try
    document(@redirect, document(''))which is given as an example on pg 446 of Steve's book (but not what I want, since it resolves relative to the stylesheet).
    document(@redirect)works fine, but again is not what I want.
    Am I doing something wrong?
    Brian

    This is Oracle Bug# 1722555, hopefully which will be fixed in the 9.0.1.0.0 release. Currently the two-argument version of the document() function is not recognized properly.

  • Document() not returning a useable node set?

    If I open another document during a transform, I can dump out the file using
    xsl:message, but can't match any tags in the loaded file. If I replace the Sun
    implementation with the apache implementation of xalan with -Xbootclasspath/p,
    the code runs fine.
    Example fragment:
    <xsl:variable name="user_type">
    <xsl:for-each select="//include/@file_name">
    <xsl:variable name="xmlFile">
    <xsl:value-of select="$xml_dir"/>/<xsl:value-of select="."/>
    </xsl:variable>
    <xsl:for-each select="document($xmlFile)" >
    <xsl:value-of select="key('type_def_key',$datatype)//datatype" />
    </xsl:for-each>
    </xsl:for-each>
    </xsl:variable>
    <xsl:message>
    User type <xsl:value-of select="$user_type" /> for <xsl:value-of select="$datatype" />
    </xsl:message>
    I believe the problem is with the document function not returning a useable
    node set , or all of the matches are going back to the original document rather
    than the one that was just open. With in the context of the new document
    select="." appears to work, but nothing else seems to.
    Output using Sun's xml implementation (JDK 5.0, 6.0 snapshot)
    User type for Gms_User_Id
    Output using the Apache xml implmentation (Xalan 2.6)
    User type numeric for Gms_User_Id
    The code and xml files are the same in both cases, just changed the runtime
    class path with

    This is behaving as designed.
    Configuring a view object so expect certain entity subtypes does not automatically restrict the rows it queries. If the view object's query returns any row that has a discriminator value that does not match the design-time configured entity subtypes expected, it is not added to the result rowset.
    If you have limited the number of fetched rows to 1, and if that row had a discriminator attribute value that does not match that/those of the expected entity subtypes, then the single row returned by the query will not be added to the result rowset. The result is that the row set has zero rows in it.

  • Error in Invoke Node-Set Control Value

    I've a trouble with a VI: the error cluster warns ERR(7) when I try to pass the output of the "FLATTEN TO STRING" function to an Invoke Node-Set Control Value.
    In the file attachments there's the upmentioned VI. Thank you
    Attachments:
    Cambia_i_valori_di_default.vi ‏147 KB

    Error 7 is file not found. I would think that this error is generated by one of your Open VI References and not any of the Set Control Values. Check your paths and verify that they're correct. Also, you haven't included two subVIs or the VIs that you're trying to modify so it's impossible for anyone to try and recreate your problem. Save them into an LLB and attach that if you still have problems and want some help.

  • Xml result fragment to node-set

    I wrote a stylesheet that transforms data into a html table and dedupes all consecutive identical elements.
    The consecutive duplicates obviously depend on the sorting of the data, which is also a variable of the stylesheet.
    I ended up using the msxml:node-set function that allowed me to convert a sorted result fragment (in a variable) back into a node-set. Is there anything equivalent in oracle's parser? or a workarround to pre-sort the data?
    I would like to avoid multi-step transforms if possible...
    thanks for any help.
    null

    never mind... found ora:node-set()
    must have been blind I guess....
    null

  • Oracle xsl parser equivalent to msxsl:node-set()?

    Hello
    I am looking for an equivalent to the msxsl:node-set() that I can use with the Oracle xsl parser.
    Any sugestions?
    Ade

    We have ora:node-set()
    Use http://www.oracle.com/XSL/Transform/java
    as the namespace URI for the "ora" prefix.

  • MDX - function expects a string or numeric expression for the 1 argument. A tuple set expression was used.

    why this query
    select [Measures].[F Events Count] on 0,
    Filter([D Actor Player].[Actor].children,
    ([Measures].[F Events Count],
    {([D Date].[Hierarchy].[Season].[2012 - 2013]),([D Date].[Hierarchy].[Season].[2013 - 2014])},
    [D Result].[Result].&[Goal])
    >=5) on 1
    from [FBA Cube]
    gives this error:
    Query (3, 3) The >= function expects a string or numeric expression for the 1 argument. A tuple set expression was used.
    while the following query works fine
    select [Measures].[F Events Count] on 0,
    Filter([D Actor Player].[Actor].children,
    ([Measures].[F Events Count],
    [D Date].[Hierarchy].[Season].[2012 - 2013],
    [D Result].[Result].&[Goal])
    >=5) on 1
    from [FBA Cube]
    why having set inside Filter's boolean expression generates that error? how can we
    keep the set inside the Filter's boolean expression but
    solve the problem? please explain the reason and solution

    Hi Butmah ,
    I think you should use an aggregation function with the set and the tuple ... adding an AdventureWorks snippet :
    select [Measures].[Order Count] on 0,
    Filter([Product].[Category].children,
    SUM({[Date].[Fiscal].[Fiscal Year].&[2011],[Date].[Fiscal].[Fiscal Year].&[2009]}
    ,([Measures].[Order Count],[Geography].[Geography].[Country].&[United States])
    >=5) on 1 
    from [Adventure Works]
    Regards, David .

  • Converting xmlstring into a node-set

    Hi,
    Is there any xsl function which could take an xml string and convert into a node-set?
    Or could any function be written to achieve this kind of result?
    Thanks.

    Hi,
    Seems no one understands my need in my post yet. Let me elaborate my requirement a little more...
    Actually in my case, I used a variable to refer to a node set (in my actual implementation the conditions in the bracket [] are much much more complicated ), e.g.
    <?variable:rows;”/ROWSET/ROW[SALARY>1000]”?>
    And since the report involves a complex layout printed on pre-print forms which needs me to put the fields very precisely. I cannot use the For Each method but to extract the rows one by one, likes the following:
    <?$rows[1]/ENAME?>
    <?$rows[2]/ENAME?>
    and put them on various position on the RTF Template.
    So far so good, until I realized that the $rows node set is needed to be sorted according to ENAME.
    Currently I can build a sorted list from $rows into another variable $sorted_rows as follows:
    <xsl:variable name="sorted_rows"><xsl:for-each select="$rows"><xsl:sort select="ENAME"/><xsl:copy-of select="."/></xsl:for-each></xsl:variable>
    But in $sorted_rows, it contains only one item which is the xml fragment of the sorted data, but not a node set.
    So my question is, is there any way to convert this xml fragment into a node set so I can use the following to extract the fields?
    <?$sorted_rows[1]/ENAME?>
    <?$sorted_rows[2]/ENAME?>
    Hope anyone can share with my some solution to this.
    Thanks in advance,
    Jonathan

  • Casting a result-tree-fragment into a node set

    Hi,
    Is there anything in BI Publisher that converts a result-tree-fragment into a node set, which resembles the node-set function in as in the following link? http://www.exslt.org/exsl/functions/node-set/
    Thanks,
    Jonathan

    Hi,
    Seems no one understands my need in my post yet. Let me elaborate my requirement a little more...
    Actually in my case, I used a variable to refer to a node set (in my actual implementation the conditions in the bracket [] are much much more complicated ), e.g.
    <?variable:rows;”/ROWSET/ROW[SALARY>1000]”?>
    And since the report involves a complex layout printed on pre-print forms which needs me to put the fields very precisely. I cannot use the For Each method but to extract the rows one by one, likes the following:
    <?$rows[1]/ENAME?>
    <?$rows[2]/ENAME?>
    and put them on various position on the RTF Template.
    So far so good, until I realized that the $rows node set is needed to be sorted according to ENAME.
    Currently I can build a sorted list from $rows into another variable $sorted_rows as follows:
    <xsl:variable name="sorted_rows"><xsl:for-each select="$rows"><xsl:sort select="ENAME"/><xsl:copy-of select="."/></xsl:for-each></xsl:variable>
    But in $sorted_rows, it contains only one item which is the xml fragment of the sorted data, but not a node set.
    So my question is, is there any way to convert this xml fragment into a node set so I can use the following to extract the fields?
    <?$sorted_rows[1]/ENAME?>
    <?$sorted_rows[2]/ENAME?>
    Hope anyone can share with my some solution to this.
    Thanks in advance,
    Jonathan

  • Window doesn't close wheh Call Library Function Node set to Run in Any Thread

    This is a problem regarding Call Library Function Nodes running in the UI thread or any thread.
    I have a camera which has its own API supplied as a dll. I have created a set of VI wrappers which each call a function in the dll through a Call Library Function Node.
    Initially each CLFN was set to 'Run in the UI thread' (the default).
    To start the camera streaming images I call (through a CLFN)
    ICubeSDK_Start(int CamIndex, Hwnd, ImgHandle, bool Preview, bool callback);
    If Preview = True then the image is displayed in a preview window.
    If ImgHandle = NULL a default preview window
    is used.
    In the CLFN definition I define:
    ImgHandle as a U32
    Preview as a I32
    To stop the camera streaming images I call
        ICubeSDK_Stop(int CamIndex)
    In the actual implementation I set ImgHandle = 0 (NULL) and Preview = 1 (true).
    This all works fine, and a preview window is opened and images displayed. When I call ICubeSDK_Stop the preview window is closed.
    However, I would prefer to set the CLFN to 'Run in any thread' because
    a) when run in the UI thread the preview window randomly gets sent to the back when I switch focus between open VI windows (presumably because it is in the same thread as the VIs)
    b) I don't want to put unnecessary stuff in the UI thread
    c) my (naive?) understanding is that it is safer to run in any thread
    So I have set all CLFNs to 'Run in any thread'
    When I do this the preview window opens OK, and behaves like any other non LabVIEW controlled window in terms of focus. But when I call ICubeSDK_Stop() the preview window does not get closed properly, it just shows a blank image. I can't close it manually, there is no X in the corner and no option to close it from the taskbar. To get rid of it I have to close the LabVIEW project it is spawned from, which often results in a crash. It does appear as a separate item in task manager but if I 'end process' it, LabVIEW closes (and often crashes) as well.
    If I change only the CLFNs that call the Start and Stop functions back to 'Run in the UI thread' then it all works fine again, except that the preview window gets sent to the back randomly as before.
    So, what do I have to do to get the preview window to close properly if I set the CLFN to 'Run in any thread'.
    Alternatively, is there a way to close the window programmatically (ie force it to close) after I have called ICube_Stop.
    Thanks
    DAve

    Hi Dave,
    The "Run In UI Thread"  switches from the thread the VIs currently executing in to the user interface thread. If you select "Run in Any Thread", the Call Library Function Node continues in the currently executing thread. By default, all Call Library Function Nodes run in the User Interface thread.
    Before you configure the Call Library Function Node to run in any thread, you have to make sure that the code is thread safe. Code is thread safe when it does not store any global data (e.g. global variables, files on disks, etc.), does not access any hardware, does not make calls to any functions, libraries or drivers that are not thread safe.
    Unfortunately, since you said that your DLL accesses hardware, it is not recommended to use "Run in Any Thread." This is probably why you are seeing the crash.
    If your preview window gets sent to the back you can programmatically bring it forward. Here is an example of how this can be done: http://decibel.ni.com/content/docs/DOC-4551
    If you want to completely close the window down you can do so as described in this link: http://digital.ni.com/public.nsf/allkb/81E9C144190​0FFCE8625748F0055DBB0?OpenDocument
    I also thought you might find this useful: http://zone.ni.com/devzone/cda/tut/p/id/3009
    I hope this helps.
    Regards,
    Mahdieh G
    Applications Engineer
    National Instruments UK&Ireland

  • Set expression's variable in the same step

    I probably asking a rhetorical question, but does it exist a way to set an expression's variable (say for load sequence dynamically) in the same step (sequence call)?
    I have a situation where I need to read a sequence path from the database and then call this sequence. If I try to do that in pre-step it doesn't work, TestStand tries to evaluate the sequence file path expression when call the step and before the pre-step is executed.
    So, what I doing now, do this in two steps, read database first and then do sequence call.
    Similar problem is for Message Popup, I need to read the message to display from the database.
    Two steps works fine but are not convenient to use. We create our test sequences from custom step types and it would be easier to drop just one step instead of pair of steps in order. Or, is it a way to bind two step types together and always drop two if one is selected?
    Sergey Kolbunov
    CLA, CTD

    Dah! I didn't know about the OnNewStep when I posted this.
    Juergen, thank you, this is interesting example but not related to my question.
    My concern is mostly cosmetical. I can do the job in two steps, but because these two steps will always come together I'd like to combine them in one step in the sequence. This is not possible because the second step depends of the first step output.
    Looks like my second example for Message Popup is not true, at least it works if I set the message in the step's Pre-expression. But take a look to my Sequence Call.seq. How to obtain Sequence Path specified by expression in the same SequenceCall step?
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    Message Popup.seq ‏6 KB
    Sequence Call.seq ‏5 KB
    Dummy.seq ‏6 KB

  • Hi i need help from the experts in node set up

    i just both the logic pro upgrade from logic express and I have a g5 and g4 can somboody help my to use the node sistem to put them together. i am in mexico and is not easy to find that kind of help, i dont have a clear idea because the manual instructions are not clear enough how to install the node sistem, they send you to on line help... welll thank you verry much
    kosming

    This is not strictly true... The G4 will work as a Node, though the benefit of it will be minimised.
    It wirks pretty simply and you won't do any harm (especially your wallet), giving it a try.
    Make sure you install the equivalent version (extremely important) of the Logic Node application on your G4 and run it.
    Launch Logic on your G5, open preferences/ Audio / Nodes. Provided you have your computers networked correctly (I am assuming you have done this), the Node computer will be listed there. You can then activate it, if listed.
    Assigning a track to a Node is done in the arrange window (view / Node buttons, needs to be enabled) .. Click the Node button and voila!!
    It is important to note that only Logic plugins (with the exception of EXS24 and, I think, Ultrabeat) can be processed by a Node.

  • Event trigger start node setting

    HI, All,
    I tried to set up an event triggered start node within BPM 7. Weblogic console
    recorded the JMS text message received for com.bea.wli.bpm.EventQueue. But somehow
    the workflow failed to start. Does anybody know what might go wrong here? I already
    made sure it's using the correct organization. Thanks!
    Simon Chen

    It finally works! I was using admin account and somehow it doesn't have enough
    priviledge to monitor the workflow. After I log in using wlisystem, and make sure
    it has enough priviledge, it all works. BTW, I'm using TextMessage type.
    Simon Chen
    "Simon Chen" <[email protected]> wrote:
    >
    >
    HI, All,
    I tried to set up an event triggered start node within BPM 7. Weblogic
    console
    recorded the JMS text message received for com.bea.wli.bpm.EventQueue.
    But somehow
    the workflow failed to start. Does anybody know what might go wrong here?
    I already
    made sure it's using the correct organization. Thanks!
    Simon Chen

Maybe you are looking for

  • What is the motherboar​d part number for hp dv6-3037tx​?

    I have a bricked laptop and would like to buy a replacement motherboard What is the motherboard part number for hp dv6-3037tx notebook PC? Laptop product number is WY285PA. And also, will the replacement motherboard be identical to the old one (i.e.

  • Host Builtin Not Working in Linux

    I'm trying to convert a file using the linux command dos2unix through forms HOST builtin. I've set the path variable in the environment file to /usr/bin, where the dos2unix command resides. I've had no luck converting this file. I've also tried: host

  • OID and LDAP

    Im investigating the implementation of LDAP or OID. Can anyone tell me wht aditional finctionality does OID have above the standard LDAP schema. I am particularly interested in the customization of entities and if OID support relationships other than

  • Flash not working in Safari Mac OS 1-/9/4

    Guys Anybody having issues with Safari flash player I am facing this issue after the Mac OS update to 10.9.4, I have tried many methods as suggested in other forms like uninstall and reinstall. After i putting in my user passw while it pops up during

  • Editing in 24p, not 24p advanced

    I shot a feature with a Panasonic AG-DVX100A and used the standard 24p setting instead of 24p advanced, not realizing that the latter would be preferable for editing. Is there a way to avoid the flicker and jitter that seems to accompany 24p footage