Xslt copy-of creates a xml which returns empty while trying to access elements using XPATH

Hi
I am trying to do a copy-of function using the XSLT in jdev. This is what I do
    <xsl:param name="appdataDO"/>
    <xsl:template match="/">
    <ns1:applicationData>
      <ns1:applicationId>
        <xsl:value-of select="$appdataDO/ns1:applicationData/ns1:applicationId"/>
      </ns1:applicationId>
      <xsl:copy-of select="/fslo:ExternalapplicationData/fslo:ApplicationsHDRAddInfo">
      </xsl:copy-of>
    </ns1:applicationData>
    </xsl:template>
    </xsl:stylesheet>
After this I can see the document created in the process flow as this :
    <ns1:applicationData>
    <ns1:applicationId>MMMM</ns1:applicationId>
    <ns2:ApplicationsHDRAddInfo>
    <ns3:genericFromBasePrimitive>iuoui</ns3:genericFromBasePrimitive>
    <ns4:EstimatedMarketValue>77</ns4:EstimatedMarketValue>
    <ns4:PropertyInsuranceFee>jih</ns4:PropertyInsuranceFee>
    <ns4:LoanOriginationFee>hjh</ns4:LoanOriginationFee>
    <ns4:RegistrarFee>kkkkk</ns4:RegistrarFee>
    <ns4:LoanCashInFee>hjh</ns4:LoanCashInFee>
    <ns4:LoanPaidInCashFlag>cddffgd</ns4:LoanPaidInCashFlag>
    </ns2:ApplicationsHDRAddInfo>
    </ns1:applicationData>
But whenever I am trying to extract any of the output nodes I am getting an empty result. I can copy the whole dataset into similar kind of variable.
But I am unable to get individual elements using XPATH.
I tried using exslt function for node set and xslt 2.0 without avail.
The namespaces might be the culprit here . The test method in the jdev is able to output a result but at runtime the xpath returns empty .
I have created another transform where I try to copy data from the precious dataobject to a simple string in another data object .
This is the test sample source xml for the transform created by jdev while testing with all namespaces, where I try to copy the data in a simple string in another data object.
    <applicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/bpmpa/fs/ulo/types file:/C:/JDeveloper/NewAPP/Xfrm/xsd/ApplicationData.xsd" xmlns="http://xmlns.oracle.com/bpmpa/fs/ulo/types">
       <applicationId>applicationId289</applicationId>
       <ApplicationsHDRAddInfo>
          <genericFromBasePrimitive xmlns="http://xmlns.oracle.com/bpm/pa/extn/types/BasePrimitive">genericFromBasePrimitive290</genericFromBasePrimitive>
          <EstimatedMarketValue xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">291</EstimatedMarketValue>
          <PropertyInsuranceFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">PropertyInsuranceFee292</PropertyInsuranceFee>
          <LoanOriginationFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">LoanOriginationFee293</LoanOriginationFee>
          <RegistrarFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">RegistrarFee294</RegistrarFee>
          <LoanCashInFee xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">LoanCashInFee295</LoanCashInFee>
          <LoanPaidInCashFlag xmlns="http://xmlns.oracle.com/bpm/pa/extn/headerCategories/">LoanPaidInCashFlag296</LoanPaidInCashFlag>
       </ApplicationsHDRAddInfo>
    </applicationData>
And the xslt
    <xsl:template match="/">
        <ns1:DefaultOutput>
          <ns1:attribute1>
            <xsl:value-of select="/fslo:applicationData/fslo:ApplicationsHDRAddInfo/custom:LoanOriginationFee"/>
          </ns1:attribute1>
        </ns1:DefaultOutput>
      </xsl:template>
This results in a empty attribute1. Any help will be appreciated .

Please delete attributeFormDefault="qualified" elementFormDefault="qualified" from your XSD
Please check the next link:
http://www.oraclefromguatemala.com.gt/?p=34

Similar Messages

  • Function which returns multiple values that can then be used in an SQL Sele

    I'd like to create a function which returns multiple values that can then be used in an SQL Select statement's IN( ) clause
    Currently, the select statement is like (well, this is a very simplified version):
    select application, clientid
    from tbl_apps, tbl_status
    where tbl_apps.statusid = tbl_status.statusid
    and tbl_status.approved > 0;
    I'd like to pull the checking of the tbl_status into a PL/SQL function so my select would look something like :
    select application, clientid
    from tbl_apps
    where tbl_apps.statusid in (myfunction);
    So my function would be running this sql:
    select statusid from tbl_status where approved > 0;
    ... will return values 1, 5, 15, 32 (and more)
    ... but I haven't been able to figure out how to return the results so they can be used in SQL.
    Thanks for any help you can give me!!
    Trisha Gorr

    Perhaps take a look at pipelined functions:
    Single column example:
    SQL> CREATE OR REPLACE TYPE split_tbl IS TABLE OF VARCHAR2(32767);
      2  /
    Type created.
    SQL> CREATE OR REPLACE FUNCTION split (p_list VARCHAR2, p_delim VARCHAR2:=' ') RETURN SPLIT_TBL PIPELINED IS
      2      l_idx    PLS_INTEGER;
      3      l_list   VARCHAR2(32767) := p_list;
      4      l_value  VARCHAR2(32767);
      5    BEGIN
      6      LOOP
      7        l_idx := INSTR(l_list, p_delim);
      8        IF l_idx > 0 THEN
      9          PIPE ROW(SUBSTR(l_list, 1, l_idx-1));
    10          l_list := SUBSTR(l_list, l_idx+LENGTH(p_delim));
    11        ELSE
    12          PIPE ROW(l_list);
    13          EXIT;
    14        END IF;
    15      END LOOP;
    16      RETURN;
    17    END SPLIT;
    18  /
    Function created.
    SQL> SELECT column_value
      2  FROM TABLE(split('FRED,JIM,BOB,TED,MARK',','));
    COLUMN_VALUE
    FRED
    JIM
    BOB
    TED
    MARK
    SQL> create table mytable (val VARCHAR2(20));
    Table created.
    SQL> insert into mytable
      2  select column_value
      3  from TABLE(split('FRED,JIM,BOB,TED,MARK',','));
    5 rows created.
    SQL> select * from mytable;
    VAL
    FRED
    JIM
    BOB
    TED
    MARK
    SQL>Multiple column example:
    SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
      2  ( col1   VARCHAR2(10),
      3    col2   VARCHAR2(10)
      4  )
      5  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
      2    v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
      3    v_obj myrec := myrec(NULL,NULL);
      4  BEGIN
      5    LOOP
      6      EXIT WHEN v_str IS NULL;
      7      v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
      8      v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
      9      IF INSTR(v_str,',')>0 THEN
    10        v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
    11        v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
    12      ELSE
    13        v_obj.col2 := v_str;
    14        v_str := NULL;
    15      END IF;
    16      PIPE ROW (v_obj);
    17    END LOOP;
    18    RETURN;
    19  END;
    20  /
    Function created.
    SQL>
    SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
    Table created.
    SQL>
    SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
    3 rows created.
    SQL>
    SQL> select * from mytab;
    COL1       COL2
    1          2
    2          3
    4          5

  • Help creating a formula which returns current date last year

    I need help creating a formula which returns the current date last year. I also need it to work during leap years.
    Any ideas?

    Hi Dagros,
    I'm lucky to be a universe designer, I have to do this only once
    The easiest way would probably be to use
    =RelativeDate(CurrentDate();-365)
    So subtractiing 365 to get the same date last year,
    but you would need some extra logic for the years with a feb 29 in those 365 days.
    =If FormatDate(RelativeDate(CurrentDate();-365);"dd") = FormatDate(CurrentDate();"dd")
    Then RelativeDate(CurrentDate();-365)
    Else RelativeDate(CurrentDate();-366)
    Another question to ask is if you really want the same date last year, or if you also want a really 'same day' so monday compared to monday etc. in this case you would just subtract 364 days and get the day 52 weeks back...
    Good luck,
    Marianne

  • Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a p

    Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a pop-up menu in the cells in time format, does it have any consequence on the formula?

    Any idea why in Numbers my COUNTIFS formula keeps breaking? For daycare purpose, I use a spreadsheet that helps me to count how many children I have at 3:15, 4:15 and 5:00. COUNTIFS works well when I create it but breaks after a while. Also I am using a pop-up menu in the cells in time format, does it have any consequence on the formula?

  • 500 error while trying to access a jsp which makes use of tiles tags

    Hi all,
    when im trying to access a jsp which makes use of tiles tags, im getting the following error.
    status 500:
    org.apache.jasper.JasperException: The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
    what might be the problem?
    Thanks in advance.

    Hi all,
    sorry...got the reason for the above error..missed to include the tld file in WEB-INF.

  • Create one function which return boolean

    I want to write one function means if the resource status is cv locked in any one of the project,then automatically the status of this resource changed to unavailble for other projects.
    Indicate that we can nominate the same resource for different projects but after cv lock that resources made unavailbale for other projects.
    Require coding
    Edited by: user12877889 on Jun 28, 2010 5:12 AM

    Hi,
    Well how to say, i suggest you to start with theses documentations:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/toc.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
    Thenyou'll probably have a better idea of what's an Oracle DB. After that comme back and describe the tools you're using and what's your requirements (what's you want to do, for what purpose...) then may be we'll be able to help you ..

  • Create a library which joins 2 tables that report painter can use.

    Hi,
    Please help in resolving following issue:
    Create a new library that joins these tables (in client system) GLPCT and ZFKHALIX that report painter could use. If we had this then we can create a P&L report that properly breaks out COGS and SGA in the same way as ou khalix feed….It would also save a lot of time in month end reconciliation between two tables.
    ZFKHALIX: SAP->Khalix Interface --- Custom Mapping Table <b><u><i>(Developned)</i></u></b>
    GLPCT : EC-PCA: Totals Table <b><u><i>(Standard Table)</i></u></b>
    Regards

    Library can be created only with reference to a single table as in GR21. If you are looking for joins of tables, ABAP Query may be the answer. There, you have the infoset where you can join two or more tables. And based on the infoset you create queries.

  • Web Service Task - XML Task - values are empty while trying to read from XPATH. Can someone help me on this ?

    Hi,
    I have to fetch Emp details (emp code, last name, first name ...etc) from a WSDL.
    for this i have created HTTP connection -> created Web Service Task -> created XML Tasks for those emp code, last name, first name ... etc for each -> set a
    breakpoint over post execution -> verified & found that the variables are blank though my
    results variable has some XML data generated.
    please see some screenshots as below & suggest me how to get is succeed & put the values in database table:

    Thanks a lot in advance !!! :) 
    best regards,
    Venkat

  • Constraint: disable validate returns error while trying to load data

    Hi,
    I may be missing something but this is what I'm facing:
    Table ttab has a primary key, let say ttab_pk, that I modified using this command: alter table ttab modify constraint ttab_pk disable validate.
    I thought I would be able to load new data with SQLLoader without any problem (sqlldr userid=myusr/mypwd control=myctl.ctl direct=TRUE), but I keep having this msg:
    SQL*Loader-951: Error calling once/load initialization
    ORA-02373: Error parsing insert statement for table MYSCHEMA.TTAB.
    ORA-25128: No insert/update/delete on table with constraint (MYSCHEMA.TTAB_PK) disabled and validated
    In what config the "disable validate" really work ?
    Thank a lot for any help.

    http://download.oracle.com/docs/cd/B10500_01/server.920/a96524/c22integ.htm
    # DISABLE NOVALIDATE is the same as DISABLE. The constraint is not checked and is not necessarily true.
    # DISABLE VALIDATE disables the constraint, drops the index on the constraint, and disallows any modification of the constrained columns. metalink
    Note <Note:69637.1> has a good discussion of DISABLE VALIDATE

  • Getmsg() return -1 while trying read /dev/arp

    Hi,
    I am working on a application that needs to maintain a cache of route entries. For that purpose I am trying to open a stream to "/dev/arp" via the 'open()' call and then start reading the route table.
    While doing so, around 1 in say 1000 attempts, the getmsg() fails while reading the 'data part'. Among the rest it works perfectly well.
    Any idea why this might be happening?
    By the way, I am using Solaris 10 07/08
    -Mounish

    HOW did you increase the heap space? As that is the only solution you have in this case really.
    It is a known fact that POI can use up a lot of memory for big spreadsheets. If at all possible, I would try to switch to plain text comma separated files / tab delimited files. If you cannot do that, I would try to put a size restriction on the sheets that your application will process to get rid of the heap space risk. A sheet can contain 20000 records, or four sheets can contain 5000 records; in both cases you process the exact same data, but at only 25% of the total memory usage.

  • Create Sequence which return only +1 and -1

    Please Help me to create a sequence which return only two values
    i.e. +1 and -1

    How about this?
    SQL> CREATE SEQUENCE test_sequence INCREMENT BY 2 START WITH -1 MINVALUE -1 MAXVALUE 1 CYCLE NOCACHE;
    Sequence created.
    SQL> SELECT test_sequence.nextval FROM DUAL;
       NEXTVAL
            -1
    SQL> SELECT test_sequence.nextval FROM DUAL;
       NEXTVAL
             1
    SQL> SELECT test_sequence.nextval FROM DUAL;
       NEXTVAL
            -1
    SQL>Here is some further reading on sequences:
    http://www.psoug.org/reference/sequences.html

  • How to use stored procedure which returns result set in OBIEE

    Hi,
    I hav one stored procedure (one parameter) which returns a result set. Can we use this stored procedure in OBIEE? If so, how we hav to use.
    I know we hav the Evaluate function but not sure whether I can use for my SP which returns result set. Is there any other way where I can use my SP?
    Pls help me in solving this.
    Thanks

    Hi Radha,
    If you want to cache the results in the Oracle BI Server, you should check that option. When you run a query the Oracle BI Server will get its results from the cache, based on the persistence time you define. If the cache is expired, the Oracle BI Server will go to the database to get the results.
    If you want to use caching, you should enable caching in the nqsconfig.ini file.
    Cheers,
    Daan Bakboord

  • PageDef.xml is not found when trying to enable MDS

    Our application uses JPA in the back end and fusion in the front end. we donot use databindings for integrating the backend object to the UI. I am trying to enable the mds by following the instructions in http://www.oracle.com/technetwork/developer-tools/jdev/metadataservices-fmw-11gr1-130345.pdf.  Initially using filebasedmetadata service to check if MDS is working in our enviroment. I have configured mds to save table and columns when i change the value for the user it stores the value for that jspx file in chartingBreakdownL1.jspx.xml but when  it is trying to access the changed setting when i log out and log back in it is not able to restore the changed value. in the logs i get this
    59db3<rootKey=StoredKey</sourceBreakdown/chartingBreakdownL1PageDef.xml>,value=null> - unlocked  count=0
    <null> <null> PDCache.getInternal() Cache hit : (/sourceBreakdown/mdssys/cust/user/test.user1/chartingBreakdownL1PageDef.xml.xml=>NOT_FOUND)
    <null> <null> PDCache.getInternal() Cache hit : (/sourceBreakdown/mdssys/cust/user/test.user1/chartingBreakdownL1PageDef.xml.xml=>NOT_FOUND)
    </oracle/mds/internal/persistence/file/FileMetadataStoreConnection/> <getDocument> ENTRY /sourceBreakdown/mdssys/cust/user/test.user1/chartingBreakdownL1PageDef.xml.xml
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
    - moRef     = /sourceBreakdown/chartingBreakdownL1PageDef.xml
    - typeQName = {http://xmlns.oracle.com/adfm/uimodel}pageDefinition
    - priorKey  = null
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       base read only = true
    <null> <null> MOKey.create() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       create MOKey
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
    - moRef     = /sourceBreakdown/chartingBreakdownL1PageDef.xml
    - typeQName = {http://xmlns.oracle.com/adfm/uimodel}pageDefinition
    - priorKey  = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
    <null> <null> oracle.mds.core.MOKey.createMOKey() - key = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       base read only from prior key = false
    <null> <null> MOKey.create() - key       = /sourceBreakdown/chartingBreakdownL1PageDef.xml~1386710950000
       create MOKey
    Can someone help me in figuring out this issue.
    Bhoopathy

    1) Yes I am using file based MDS.
    2) the changed value is stored in the respective jspx file (chartingBreakdownL1.jspx.xml) when i log out and log back in the values are not restored from this file.
    3) In the log it is looking for the pagedef file  (chartingBreakdownL1PageDef.xml.xml) in the mds repository which is not stored as part of the mds file system. i have this file in the code base and using it for compiling but it is not getting saved to mds file system. It is trying to access this file and it is not able to read the values that is why it is saying "base read only = true". If you need this file is there a way to get this in the mds file repository.
    I am running this locally as a standalone server. i dont have enterpise manager installed. i have enabled the logging in "oracle diagnostics logging configuration" . for oracle.mds i have to set to finest that is why i am able to get the logs.
    thank you for the quick response.
    Bhoopathy

  • Outputting XML carriage return in HTML via XSLT

    Hi,
    I have a scenario where I execute a View Object query in ADF to retrieve results from a particular table in the Database. I then iterate through the results in my Java managed bean and manually construct an XML file with all the appropriate tags. I then pass the XML file through a Transformer class in the Java bean based on an XSLT I have created to produce an HTML page. However I have an issue when it comes to handling carriage returns. One of the database table columns can contain carriage returns within its value but in the final HTML page the carriage returns don't have any effect and the text just displays on one line.
    In the database, the values are stored with the carriage return and in SQL Developer, Toad etc this can be seen e.g. Text1 Text2 Text3 Text4 will display on separate lines. In the XML, the carriage return seems to still be there as when I open the file my element which contains the carriage returns shows each part on a new line e.g. <textElement>Text1
                                                           Text2
                                                           Text3
                                                           Text4</textElement>     (The Text2, Text3 and Text4 all start on a new line at the beginning and there's no prior white space as shown in this post)
    The XML file in JDeveloper also shows carriage return arrow symbols where there is one.
    The HTML page just shows them as Text1 Text2 Text3 Text4 all on one line. Inspecting the source of the HTML shows that the carriage return is in fact there as it also displays as per the XML with the values on separate lines.
    Outputting the value from the View Object in Java to the log shows the value coming out like this - Text1 Text2Text3Text4, which is strange but I know the carriage returns are there so I'm not too fussed about this.
    I have tried escaping the characters in the Java by doing str.replaceAll("[\\r\\n]", ""); (but replacing the "" with &#xD; &#xA; or &x0A;) so in the XML it replaces carriage returns and line feeds with these escaped characters. However, when the XSLT parses the XML it doesn't pick these up and instead actually outputs these actual characters as they are e.g. Text1&x0A;Text2&x0A;Text3&x0A;Text4
    So I can confirm that the carriage return is carrying all the way through to the XSL but I can't help but think that maybe I need to do something in the XSL to process this somehow, e.g. doing the equivalent of the 'replace' in Java but I don't know what I need to search for in the XML and also what to actually replace it with..Do I just replace it with a </BR> in HTML?
    We also parse the XML using PDF and Excel XSL Transformer class and see the same results.
    Any help would be appreciated.
    Thanks

    That's a very commonly asked question.
    HTML doesn't preserve linefeeds, except for the <pre> tag.
    You'll have to replace those characters with <BR/> tags in the XSLT.
    Search the Internet for terms like "XSLT HTML LF", you'll find some XSLT sample templates to handle the replacement.

  • How to Create an XML document from XSQL servlet which follows a particular DTD struct

    how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.

    You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
    For example, given an XSQL page like:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
    <xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
    select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
    from site_entry
    order by id desc
    </xsql:query>and an "rss.xsl" stylesheet that looks like this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
    <xsl:template match="/">
    <xsl:for-each select="ROWSET/ROW">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    <xsl:for-each select="ITEM">
    <item>
    <title><xsl:value-of select="TITLE"/></title>
    <link><xsl:value-of select="URL"/></link>
    <description><xsl:value-of select="DESCRIPTION"/></description>
    </item>
    </xsl:for-each>
    </channel>
    </rss>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE rss SYSTEM "rss-0.91.dtd">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>

Maybe you are looking for