Generate-id not working

Within XSLT, the generate-id function is supposed to generate a unique id for each node. This does not seem to be working in Oracle. Here is the code:
PROCEDURE GENERATE_ID AS
queryCtx DBMS_XMLquery.ctxType;
xmldoc CLOB;
     xsldoc          CLOB;
myParser dbms_xmlparser.Parser;
xsltdomdoc dbms_xmldom.domdocument;
xsl dbms_xslprocessor.stylesheet;
outdomdocf dbms_xmldom.domdocumentfragment;
outnode dbms_xmldom.domnode;
proc dbms_xslprocessor.processor;
buf varchar2(200);
BEGIN
     xmldoc := '
     <ROWSET>
          <ROW><DIM_NAME>DIM_ONE</DIM_NAME></ROW>
          <ROW><DIM_NAME>DIM_TWO</DIM_NAME></ROW>
          <ROW><DIM_NAME>DIM_TWO</DIM_NAME></ROW>
          <ROW><DIM_NAME>DIM_THREE</DIM_NAME></ROW>
          <ROW><DIM_NAME>DIM_THREE</DIM_NAME></ROW>
     </ROWSET>
     xsldoc := '
     <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
          <xsl:template match="/">
               <xsl:for-each select="ROWSET/ROW"><xsl:value-of select="generate-id(.)"/>|</xsl:for-each>
          </xsl:template>
     </xsl:stylesheet>
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseBuffer(myParser, xsldoc);
xsltdomdoc := dbms_xmlparser.getDocument(myParser);
xsl := dbms_xslprocessor.newstylesheet(xsltdomdoc, '');
proc := dbms_xslprocessor.newProcessor;
outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, xmldoc);
outnode := dbms_xmldom.makenode(outdomdocf);
dbms_xmldom.writetobuffer(outnode, buf);
dbms_output.put_line(buf);
END;
The output is:
ID0|ID0|ID0|ID0|ID0|
If I try this with MSXML3 or ColdFusion, I correctly get unique id's for each node. This error makes using the standard Muenchian grouping method fail.
For example, this XSLT:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:key name="DimNameKey" match="/ROWSET/ROW" use="DIM_NAME"/>
<xsl:template match="/">
<xsl:for-each select="ROWSET/ROW[generate-id(.) = generate-id(key(''DimNameKey'',DIM_NAME)[1])]">
<xsl:value-of select="DIM_NAME"/>|</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
should generate:
DIM_ONE|DIM_TWO|DIM_THREE|
but instead it generates:
DIM_ONE|DIM_TWO|DIM_TWO|DIM_THREE|DIM_THREE|
Is there some way I can work around this?
I am running Oracle 9.2.0.3.0 - Production on Windows XP Professional.

The transformation works correctly when used with DBMS_XMLQuery.SETXSLT. So I can at least use that method instead.

Similar Messages

  • My Labview Report generator is not working with 2013 excel version

    Hi All,
    My report generator tool kit which was developpend using labview 2011 was workign with excel 2010...after that i installed 2013 excel and the code is not working..
    Do i need to enable some setting to work with excel 2013.
    Basically this generator tool will copy the charts from excel and paste in power point...Please let me know.
    Thanks,
    Hareesh

    Ah, I understand now - I had assumed you were using the NI Toolkit.
    If you're not using the report generation toolkit, did you write your own VIs for communicating with Office or are you using a different toolkit? If you're using ActiveX to communicate with Office it may be that the ActiveX API has changed for Office 2013 - you will probably need to modify your program for the new calls.
    Since it wasn't as obvious as I thought with the report generation toolkit, it would help if you posted some code to try and understand what might be happening. Are you getting any errors in your application when you try to use Office 2013?
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Help Generator is not working for sub-components

    We are using modules with sub-components. The help generator is working fine, except for sub-components.
    The HTML-generator does not generate bookmarks and html for the sub-components and their items.

    So your report sends a email to the mailing list and the list knows what to do with the attached file??
    Just confirming it is NOT a mailing list issue..
    Thank you,
    Tony Miller
    Webster, TX

  • Generated lists not working in HTML conversion

    Using FM 8.0p277
    I have been asked to convert a book to HTML for the first time. When I do this, FM crashes with an error log that I cannot locate in the Program Files folder, as indicated in the error message. I believe it is the generated files that have caused the error(s). Originally, my List of Figures seemed to be the issue, so I tried generating HTML files of just the TOC and the main document in the book. They produced files fine except the links that work in FM from the TOC to the locations in the main file seem broken. If I open the TOC HTML file and click on one of the links, it does open the main document, but always the beginning of the document. I assume that is because I didn't create the HTML from the book file, but from individual files, so I created a book of just the TOC and main document and tried to save as HTML. FM crashed again. Has anyone had a similar experience, both of FM crashes as a result of creating HTML files and of not being able to locate the error logs in the directory indicated?
    Janice

    Janice,
    The standard answer to questions about HTML export is that the feature is not very robust and likely will not produce the result that you want. It might be useful for certain rudimentary applications but generally FrameMaker users use a third-party application such as Mif2Go, RoboHelp, or a Quadralay product for this purpose. You might get lucky and receive an answer to your specific question, but I think it would be unlikely.
    Russ

  • IWeb generated RSS not working on 3rd party server regardless of efforts

    Hi,
    I have been reading various posts about how one has to upload both the folder and index.html file generated by iWeb, when one publishes an iWeb created website to a folder, and how it's important to place the domain URL into the line / space provided in the "Publish to a folder" window, and I believe I've done all that correctly without breaking any pathways.
    However, it seems my web hosting service may be incompatible, when it comes to the RSS feeds, and I was hoping someone might be able to shed some light on this.
    My server's structure is as follows when I FTP into it:
    IP address>webroot>htdocs>website
    My web hoster says the htdocs folder is the same as my domain name, www.dhdtv.ca
    If I upload just the files from my published folder, dhdtv.ca, into my htdocs folder, the entire website displays & functions properly, with the exception of the pathways from the Subscribe buttons to the RSS feeds being broken.
    Alternatively, if I upload the published folder, dhdtv.ca, along with the seperate index.html file, and place both in the htdocs folder, my website does not display.
    Nor does it display if I take the published dhdtv.ca folder and accompanying index.html file out of the htdocs folder and place them in webroot, which is one level up.
    My hosting company insists that I place my website in htdocs.
    I've tried various combinations and the only thing that works is having all the files and folders from inside my published folder, dhdtv.ca, removed from the dhdtv.ca folder and placed directly into the htdocs folder.
    Of course, no RSS feeds will work because of the broken pathways.
    Given the above, can anyone tell me if my server configuration is compatible or not with the manner in which iWeb creates its RSS pathways and needs to be placed onto a server?
    Or does anyone have a solution for this kind of configuration? My RSS feeds are video podcasts.
    Thank you for your help
    David
    iMac 24" 2.33 Ghz, 3 GB Ram, 500 GB HDD   Mac OS X (10.4.9)  
    iMac 24" 2.33 Ghz, 3 GB Ram, 500 GB HDD   Mac OS X (10.4.9)  

    Alternatively, if I upload the published folder,
    dhdtv.ca, along with the seperate index.html file,
    and place both in the htdocs folder, my website does
    not display.
    This is the right way to do it, and it should display correctly. The problem could be because you have named your first page Index. This conflicts with index.html files which iWeb produces. I suggest to change the name of your first page to Welcome or Home and republish and try reuploading the dhdtv.ca folder plus the separate index.html file again. Do put them in htdocs.
    Also you might want to change the name of your site inside iWeb to something short and simple like A or 1 before you republish.

  • Sql developer database diff - generate script not working

    Using SQL devleloper 2.1. Database diff generate script gives errors making it completely non-usable
    ORA-31600: invalid input value 0 for parameter SEGMENT_ATTRIBUTES in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 8150
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 9270
    ORA-06512: at "SYS.DBMS_METADATA", line 4757
    ORA-06512: at line 1
    and
    Illegal Lock State: executeOracleQuery requires connection lock to be held. oracle.dbtools.raptor.diff.oracle.table.DiffTableRefConstraints.setup(DiffTableRefConstraints.java:215) called oracle.dbtools.db.DBUtil.executeQuery(DBUtil.java:681) without it
    I do get the differences visually (yes, I am bugged that constraints are not smart enough to compare on content of the constraint....problem when the contstraint names are sys-nnnnnn generated). Just cannot create the script.
    Any ideas to solve this issue? Thanks in advance, Kelly

    Can reproduce same issue in 11gR1.. DIFF works fine in 10gR2.
    I noticed that 10gR2 allows something like:
    DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
    and 11GR2 returns error similar to error SQLNAVIGATOR returns while running diff:
    DBMS_METADATA.SET_TRANSFORM_PARAM(th,'SEGMENT_ATTRIBUTES',0);
    end;
    Error report:
    ORA-31600: invalid input value 0 for parameter SEGMENT_ATTRIBUTES in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 8424
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 9484
    ORA-06512: at "SYS.DBMS_METADATA", line 3950
    Its safe to assume that this is SQLDEVELOPER bug. Hope it will be addressed sometime.
    Edited by: user5420304 on Jun 15, 2010 10:29 AM

  • Generate key not working

    I forgot my old key, so i generated a new one. on clicking continue, it errors out saying cannot update key

    I also had a problem trying to do this but the following worked for me:
    If you would like to do this you will need the following:
    ? Windows 2000 or XP (SP 2)
    ? 2 Gig of memory
    ? Java 1.5 (http://www.cisco.com/cgi-bin/tablebuild.pl/java2)
    ? Firefox? browser installed, do not try to use IE it doesn?t work.
    You may also find that not many other Cisco java based apps work very well wither, so beware.
    1. Uninstall java
    2. Make sure, that you have all 'plugins-object' related uninstalled/deleted:
    3. Explorer > Internet Options > General > Settings... >
    View Objects...
    4. Reinstall java 1.5 (from above link)
    and then set the following as below in Java (-Xmx256M)
    Now try to connect to the IDS via https:// etc

  • Javascript funciton in WAD created to generated bookmark not working !

    Hi Gurus
    I have a written a javascript to get the bookmark ID  generated in child window using standard funciton module SAP_BW_URL CMD='BOOKMARK'. after that the Host URL is changed with the COporate Portal URL and the child window is closed.
    Any doubts, so far.....?
    I have also a set a delay time of 4 seconds  before i really work on the bookmark URL generated in the child window. This is because, It takes some time for BW to generate bookmark URL and the system should wait for that.....
    However, it works fne in most of our systems consistently. But  in few core persons desktop, it works for first time but fails from second time.....
    Any idea  why?

    Eric
    You need to add additional text to the command for the shortcut icon. In WAD the text probably looks something like -
    A href="<SAP_BW_URL CMD="bookmark">" + icon info.
    You can change it so it opens in a new window by adding the additional command target=_blank so that the command looks like the following:
    A href="<SAP_BW_URL CMD="bookmark">" target=_blank > + icon info.
    Hope it works.
    Glenn

  • GWPA for HTML5 in Eclipse - Generated program not working

    I have been using GWPA to create test front-ends for my GW services in HANA Studio for months.  From workflow to simple services exposing cost centers, etc.  After an update to HANA Studio everything is broken.  All I have are warnings in the JAVA code, but when I try to run the apps as a web app preview, I get nothing.
    Problem 1
    Undefined attribute name (role).                                      index.html                     /CC/WebContent            line 23   HTML Problem
    Problem 2
    The local variable dialog may not have been initialized      FormAuthentication.js    /CC/WebContent/Authentication                line 79   JavaScript Problem
    Any ideas?
    SAP HANA Studio
    Version: 1.0.68
    Build id: 201310151624 384084
        ABAP Connectivity And Integration Development Tools (Developer Edition)    1.21.1
        ABAP Core Development Tools (Developer Edition)     2.28.1
        ABAP Development Tools for SAP HANA (Developer Edition)  2.28.1
        ABAP Development Tools for Web Dynpro (Developer Edition)              1.21.1
        OData Modeler and Tools Core for SAP (GWPA, Developer Edition)     1.1.1
        OData Toolkit for Java Platform, Standard Edition (GWPA, Developer Edition) 1.1.1
        Toolkit for Android (GWPA, Developer Edition)              1.1.2
        Toolkit for HTML5 (GWPA, Developer Edition)                1.1.1
        Toolkit for Integration Gateway (GWPA, Developer Edition)    1.1.1
        Toolkit for iOS (GWPA, Developer Edition)       1.1.1
        Toolkit for PHP (GWPA, Developer Edition)      1.1.1

    I have been using GWPA to create test front-ends for my GW services in HANA Studio for months.  From workflow to simple services exposing cost centers, etc.  After an update to HANA Studio everything is broken.  All I have are warnings in the JAVA code, but when I try to run the apps as a web app preview, I get nothing.
    Problem 1
    Undefined attribute name (role).                                      index.html                     /CC/WebContent            line 23   HTML Problem
    Problem 2
    The local variable dialog may not have been initialized      FormAuthentication.js    /CC/WebContent/Authentication                line 79   JavaScript Problem
    Any ideas?
    SAP HANA Studio
    Version: 1.0.68
    Build id: 201310151624 384084
        ABAP Connectivity And Integration Development Tools (Developer Edition)    1.21.1
        ABAP Core Development Tools (Developer Edition)     2.28.1
        ABAP Development Tools for SAP HANA (Developer Edition)  2.28.1
        ABAP Development Tools for Web Dynpro (Developer Edition)              1.21.1
        OData Modeler and Tools Core for SAP (GWPA, Developer Edition)     1.1.1
        OData Toolkit for Java Platform, Standard Edition (GWPA, Developer Edition) 1.1.1
        Toolkit for Android (GWPA, Developer Edition)              1.1.2
        Toolkit for HTML5 (GWPA, Developer Edition)                1.1.1
        Toolkit for Integration Gateway (GWPA, Developer Edition)    1.1.1
        Toolkit for iOS (GWPA, Developer Edition)       1.1.1
        Toolkit for PHP (GWPA, Developer Edition)      1.1.1

  • Embedded OC4J Bindings Not Working

    I am having trouble with loading an AppModule using the 10.1.3 OC4J Embedded AS. When try creating an ADF panel binding I get the following error:
         javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: "current-workspace-app/current-workspace-app";
    However, I can get a working reference to the AppModule using:
         env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
         env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
         env.put(Context.SECURITY_CREDENTIALS, "welcome");
         env.put(Context.PROVIDER_URL, "ormi://localhost:" + RMI_PORT + "/current-workspace-app");
         Context ctx = new InitialContext(env);
         AppModuleHome ejbhome = (AppModuleHome)PortableRemoteObject.narrow(ctx.lookup("AppModuleBean"), AppModuleHome.class);
         RemoteAppModule ejb = ejbhome.create(env);
    but I cannot use that in a data binding. Why does the first one using the generated code not work?

    Hi,
    tried with JDeveloper 10.1.3.3 and this works for me. Try JDeveloper 10.1.3.3 - if it doesn't work, have a closer look at your sessionFacade
    Frank

  • Y Generate to File not working?

    Hai,
    V are facing some probelms with reports6i.
    1.we are calling the report using the command line method not
    run_product.for these reports 'Generate to File' menu is not working.It shows
    an error like Umimplemented Error (rep-0999).How to solve this problem.
    2.In one report we are using CLOB field.but when we take the print output of
    this field some of the characters are missing in print out.the problem what
    we think is that, there is no entre key padding when a word wrap is
    occuring.We have to give it manually which is not applicable in all
    cases.Please give some methods to solve these probelms.
    Please treat this as an urgent matter.
    thanking you,
    dilip

    hai,
    regarding the 1st point there is one default printer attached to my m/c.but still the same error is coming. is it bcoz v r using command line arguments.but there should not be any link how u r calling the reopt.do v need to to pass any argument for doing this operations.my generate to file menu is enabled any way.pls help me to solve this problem.
    regards,
    dilip

  • Generate to File not working

    Hai,
    we are calling the report using the command line method not
    run_product.for these reports 'Generate to File' menu is not working.It shows
    an error like Umimplemented Error (rep-0999).There is one default printer attached to m/c. and the operation system is winows nt.This is working when running the report in report builder.it is not working when called through menu.Pls help me to solve this problem.
    dilip

    Hi,
    I am not sure what do you want to convey here - "It is working with Reports builder and not working with menu". From Report builder, only way to generate the otput to file is to go through menu, there are no other shortcut or toolbar icon present. Do you want to say, it works when you run to previewer but is failing when you generate to a file. To give you a hint:
    1. Does the problem exist with only this report or with all the reports?
    2. If the problem is with all the reports, then there is a setup problem.
    3. Try running PRINTER DRIVER TEST against your printer, to check it is ok?
    4. Check that the login under which you are trying to run the report, has the priviledge to print with this default printer.
    5. Try changing the printer driver?
    If this does not solve the problem, please contact Oracle support to resolve this issue.
    Thanks,
    Rohit

  • WebHelp search generated by RoboHelp 8 not working in Safari 5.0

    Hello,
    I'm new to the forum, but have been lurking for a  while, and have benefitted greatly  from answers found here.  Thanks!
    I use RoboHelp 8 HTML - recently upgraded from X5  - to generate WebHelp for a  cross-browser compatible web app.   I generate using the DHTML > Pure HTML  option, and Safari is using the DHTML  version. I use 'traditional style (no skin),' 'Optimize speed for: Local PC or  Intranet'.
    The Help seems to work fine in Safari for Windows, but now with the recent  update to Safari 5.0, the Search functionality is not working at all. The search  tab displays properly, but upon entering text and pressing Enter, nothing  happens.  It works in all other major browsers, except Opera which gets the Pure HTML version, and there I hid the search tab all together because it's unacceptable in that state.
    The only customization I've done is swap out the  tab images, and insert a little css to  hide (display:none;) the "limit search results to __" option as it was getting  cut off in every browser, and I couldn't figure out why, or how to fix  it.
    Any ideas?  Anyone else seeing this?
    Thanks for your anticipated help!

    Hi there
    Your mention of:
    I still think this deserves attention, and would like to hear what others think.
    Seems to imply you feel I was attempting to make you shrug it off. I wasn't. I was attempting to coax you (and anyone else) to submit the Bug Report. You have no idea how critical this aspect is. I see you made no mention of doing that so I'm assuming you ignored the suggestion.
    Many folks have the grossly mistaken belief that the Bug Report/Wish Form just sends information to a circular file where it is never acted upon or seen again and as a result, you have had your say and it makes you feel better for getting it off your chest. But these things are actually reviewed by the development team. Each and every one of them. You may not get a personal response for each one you submit, but sometimes you do!
    As for changing the verbiage, click File > Project Settings > General and look at the LNG File tab of the ensuing dialog. You are able to influence all manner of verbiage in that little gem.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Java persistence: sequence generator not working in expected way.

    Hi,
    I just played around with java persistence api and found that sequence generator annotations for making new primary key value not working correctly in my code. following is part of my code related to this problem.
    in entity class:
    @SequenceGenerator(name="mySeq", sequenceName="MY_SEQ_IN_DB")
    @Id
    @GeneratedValue(strategy=SEQUENCE, generator="mySeq")
    @Column(name = "UPLOAD_ID", nullable = false)
    private Integer uploadId;
    I have a sequence called MY_SEQ_IN_DB in my oracle 9i testing db. When I ran the code to save a new entity instance to database I found that the new upload id is not the one that should be created from the MY_SEQ_IN_DB sequence, while the sequence was not increased either. It's instead something starting from 97 (in my pc), and increased just like a sequence, but every time I reran my code the sequence restarted itself again beginning with 97(of course the insert failed with primary key conflict). the behavior just looks like it's a sequence created and managed totally by the persistence api or toplink itself (I guess).
    So, my question is, is this a designed behavior or have I done something wrong to make it not using the correct sequence in the db?
    I used hibernate before, and assigning new primary key from sequence in this way works fine.
    Thanks
    JC.L

    There are some things in Java which can't be serialized. When contained within a higher-level class such as Buttons. A button can be associated with an Action Listener. Now, you can serialize a button; however you can't serialize an action listener - for what should be to you obvious reasons. This is NOT an error and so there is no need to throw an exception when serializing the button.
    Basically: Applet sends servlet button, but not listener.

  • File Generate Image Assets not working for me: no Javascript Plugin :-\

    Do I need to reinstall entire Adobe PS CC 2014 application?
    The folder /Applications/Adobe Photoshop CC 2014/Plug-ins/Generator/ is in fact empty when I check. In fact so is the Plug-ins folder more generally.

    Well I contacted Adobe Support via chat and after a long time getting them to understand the problem they conformed that there is no Adobe plug-in in the Plug-ins Folder, in spite of there being a Generator folder inside the Plug-ins folder it should be empty and the whole plug-in folder: it's default install state is empty.
    A reinstall did however fix the problem. Perhaps Javascript was not working, given the Dialog message.

Maybe you are looking for

  • How to connect my iMac to a stereo system?

    Hey guys, i know this isnt the right place to post this but im guessing ill find an answer here. Okay, i wanna connect my Imac to a stereo i have. The stereo has a yellow, white and red port and a head phones port. Is there a way i could connect my m

  • CS5 registration has disappeared from MyAccount.  How do I get it back?  I have disks.

    I haven't logged in to Adobe  for more than a year, but I'm moving the s/w to another machine.  Why does Adobe do this?

  • Browser invoke event startup order

    Hi. We have an application that gets installed with badge and also configured over badge. The badge sends some arguments with the instalation and the application generates its config file if it does not exist. This worked great, but now we had to mak

  • Need help with trigger/new at pl/sql

    I would appreciate any help as I am new to PL/SQL and have run out of ideas. I am trying to write a trigger that when a user inserts a row into a table that records an ID, a clinic, and user initials, a second table is updated with that ID in the nex

  • Can't export/share project. share halts/freezes at 5%

    My version of final cut pro does not have a share tab at the top thus I have to share > master file through the file tab. Each time I attempt to share it only reaches 5% complete before freezing. I have attempted many different variables and am think