Not able to convert the element of type xs: date DateTime in XSLT 2.0

Hello

I'm trying to subtract 2 dates and get the difference in months between the two using XSLT 2.0

That's what I did

< name of xsl: variable = "monthDiff" >
< xsl: Call-template name = "monthDifference" >
< xsl: with-param name = 'date1' select = "/ tns:StartDate" / >
< xsl: with-param name = "date2" select = "xp20:current - dateTime ()" / >
< / xsl: Call-template >

Model
< xsl: template name = "monthDifference" >
< xsl: param name = "date1" / >
< xsl: param name = "date2" / >
< xsl: value - of select = "(xsd:dateTime ($date1) - xsd:dateTime ($date2))" / >
< / xsl: template >

Problem I am facing is

1. If the value of tns:StartDate is in below format, then this transformation works successfully
2012-08-31 T 10: 00:37 + 05:30

2 but I'm tns:StartDate as input in the format because of which the transformation fails below
2012-08-31-04:00

I tried to format the date in the required format, but still the transformation fails

Can someone please help with this problem...

Thanks in advance.


Thank you
Anju

Published by: Anju on 29 August 2012 23:10

Hi Anju,

Try this...

          
               
                    
                    
               
          

     
          
          
          
     

See you soon,.
Vlad

Tags: Fusion Middleware

Similar Questions

  • How to open GROSS of DSC_RX100M3 images?  I downloaded Adobe DNG converter 8.4, but not able to convert the images?

    How to open GROSS of DSC_RX100M3 images?  I downloaded Adobe DNG converter 8.4, but not able to convert the images?

    Minor correction to what SSprengel wrote...

    The RX100M3 is supported only by version 8.5.  Looks like you need a newer version.

    Using Photoshop | Digital Negative (DNG)

    -Christmas

  • I am not able to convert the files to PDF in my blog

    Dear team,

    I have a site sharemartket and I am not able to convert tables in pdf format, please help me how to do.  Thank you.

    SGX nifty http://www.sgxniftystock.com

    Take into account the content and answer the question. You must select one of the images that are apparently in separate frames and open the image in a new tab. Then use Acrobat either from the toolbar in Acrobat under IE or FireFox or by printing to the AdobePDF printer to get the PDF file.

  • Not able to add the selection of Types of paper taken in charge

    Hello
    I am new to Oracle B2B.
    Through the steps in the tutorial http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10229/b2b_tps.htm#BABGAJDE
    Completed up to 5.3 - task 2 (add a user in the Interface of B2B Oracle)
    And the next thing,
    I'm not able to add select support Document Types.When I click on the "Add supported document type for the selected user", I see "CUSTOM", "EDI_EDIFACT" etc., but in this form has been disabled my ' Add ' button.
    Please let me know how to proceed with this.

    Thank you
    Dembele.

    Edited by: 796969 09/27/2010 14:11

    Hi dembele,.

    To add a document, you must first create that.

    Follow link below to see that the way to create a document.

    http://download.Oracle.com/docs/CD/E14571_01/integration.1111/e10229/bb_doc_flow.htm#BABFGDBA

    Once you have created a document, then go to add it. After the name of Protocol of document in which you created the document, you will see a sign plus. Expand until you see the definition of documents, that you created. Now, select the document definition name, and add the button is activated. Click Add to add this document definition in the trading partner profile.

    Kind regards
    Anuj

  • I'm not able to use the keyboard to type negative values in the mode of developing LR6. Whenever these negative values are reset to zero. Can someone help me?

    I use LR 6/CC 2015.

    Whenever I type in a negative fashion develop it is reset to zero after entry or tab.

    I type in positive values remain and are not reset to zero.

    In older versions of Lightroom, I had no such problems.

    I have an iMac 27 with Yosemite 10.10.3.

    Hope someone knows how to fix this annoying problem.

    Your LR is configured in one language other than English?  If so, this is a known bug.  See the remark made by Simon Chen employee under this post (you need to click on see more reviews to actually see): 6 Lightroom: Bug of negative values (in German).   The comment includes a workaround solution that is to edit a text TranslatedStrings.txt.

  • Not able to manage the value 'Table Type' in my procedure, humble need help here

    Hi all

    I am facing a problem with below pl/sql block. The time I run it it works fine, but when I run the procedure only from the exact values (hardcoded), it throws error as below.

    [Error] Execution (38: 1): ORA-06550: line 2, column 1:

    PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.

    ORA-06550: line 2, column 1:

    PL/SQL: Statement ignored

    What I understand problem is, I use a Type of table herewhich works very well with my Pl/Sql block, but do not work when I run the same procedure of the value hard-coded.

    Please guide me how to handle this situation.

    Pl/Sql block [works absolutely well]:

    Declare

    lv_eff_from_dt DATE;
    lv_eff_to_date DATE;
    v_severity_codes_wl param_tbl: = param_tbl();
    lv_algo_id_wl sagedbo.alerts.algo_id%TYPE;

    Begin

    lv_eff_from_dt: = sage_utility.get_transaction_date('EFF_FROM_DATE');  -' 05-Aug-2013. '
    lv_eff_to_date: = sage_utility.get_transaction_date('EFF_TO_DATE');       -' 04-sep-2013. '

    lv_algo_id_wl: = sage_utility.get_code_values('ALERT_MODELS','GRAY_LIST');  -GLABNORMAL

    v_severity_codes_wl: = sage_utility.get_multi_parameter_value(1,'SEVERITY_CODE_WL'); -4.5

    SONARDBO.sage_generate_alert.create_abnormal_by_trader (lv_algo_id_wl, v_severity_codes_wl, lv_eff_from_dt, lv_eff_to_date, 'US');

    End;

    Pl/Sql block [does not] (by the way the same values but hard)

    Begin

    SONARDBO.sage_generate_alert.create_abnormal_by_trader ('GLABNORMAL', '4', 5, 5 August 2013 ', ' 04-Sep-2013', 'US');

    End;

    Error PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.

    I'm sorry that my question is not so generic, you cannot run on your computer. How should just guide me with the concept, I treat the values in table hardcodedly? (For testing of use)

    Thank you very much

    If your passage of type table, then you will need to run as below

    Begin

    SONARDBO.sage_generate_alert.create_abnormal_by_trader ("GLABNORMAL", param_tbl (' 4 ', ' 5'), August 5, 2013 ', ' 04-Sep-2013', 'US');

    End

    Means that you must call with the table type ("' hard coded values"). Here is the simple test. Take a look at this

    SQL > CREATE or REPLACE the TYPE nt_tab IS TABLE OF VARCHAR2 (50);

    2.

    Type of creation.

    SQL > CREATE OR REPLACE PROCEDURE test_proc (p_nttab nt_tab)

    2 AS

    3 v_nttab nt_tab: = p_nttab;

    4 BEGIN

    5 FOR me in 1.v_nttab. COUNTY

    6 LOOP

    7 DBMS_OUTPUT. Put_line (v_nttab (i));

    8 END OF LOOP;

    9 END;

    10.

    Created procedure.

    -Perform the procedure with only one value of type table

    SQL > EXEC test_proc (nt_tab ('KING'));

    KING

    PL/SQL procedure successfully completed.

    -Run procedure with the multi-value table type

    SQL > EXEC test_proc (nt_tab ('KING', 'AAAA', 'BBBB'));

    KING

    ABDELKADER

    BENAMER

    PL/SQL procedure successfully completed.

    Post edited by: 000000

    Post edited by: 000000

  • Not able to convert the region

    I have a track recorded on a microphone and I sliced off the coast of a new region. I am trying to edit the new area without affecting the rest of the track. When I right click > Convert, all options (convert to the new area, etc.) are dark and unavailable. What I am doing wrong?

    post a screenshot...

  • Not able to get the value of the type defined in the other program

    Hi all

    I have create a type in a single package spec (Globally), now I'm using the same type in another package. Simply I'm calling the first package and try to store the value in the Type and use the same type in the second package.

    But I'm not able to get the value

    Type declaration

    Declared in package Spec
    
    TYPE t_aa_derive_tbl_type IS TABLE OF xxxx%ROWTYPE;
       t_aa_derive t_aa_derive_tbl_type;
    

    Package 1

    Package1. PROCEDURE name(
    some parameters);
    is
    Cursor
    c1 is Select * from dual;
    
    begin
          OPEN c_aa_derive;
            FETCH c_aa_derive
            BULK COLLECT INTO t_aa_derive;
            CLOSE c_aa_derive;
           
         END get_aa_derive;
    

    In my second package

    I'll call you

    Package1. PROCEDURE name(
    some parameters);
    
    and then i am trying to
    
    for i in 1 .. package1.t_aa_derive.COUNT
      LOOP
    
    ....
    
    ....
    ...
    
    end loop;
    

    I can not entered the loop for some reason any.

    Could someone guide me if anything I missed.

    See you soon,.

    San

    And what did you like refcursor c_aa_derive in the call to package1.name? Is it returns all rows? If this isn't the case, COUNT will be 0.

    SY.

  • DNG Converter is not able to open the cr2 (greyed icons) files.

    DNG Converter not able to open the cr2 (greyed icons) files if they are on the disc or the office. With the help of Mac El Capitan, CC, Canon 6 d. Used to work on the earlier Mac OS. Similarly, the "get photos from camera" button in cc Bridge does not detect any photos or devices. What needs to be put in place for the DNG Converter recognise once again my cr2 files?

    It's apparently a problem with El Capitan. See this thread:

    Photo Downloader Adobe Bridge recognizing only no camera after upgrading to El captain in Mac

    Copy of the correct answer: ' discovered Adobe Bridge CC with Mac OS 10.11 (El Capitan) does not work with many USB devices to import images (including iPhone). " Apple said: "the USB stack is completely redesigned to improve stability and performance compared to Mac OS 10.10. Applications and third-party drivers for vendor-specific USB devices may require modification. "This is something APPLE has changed, that I hope that Adobe can answer, because now there is no real solution. »

  • When I try to edit a room photo in photoshop elements 12, I'm not able to use the slider or one of the drop down menus. All I have is a black circle with a line through it.

    When I try to edit a room photo in photoshop elements 12, I'm not able to use the slider or one of the drop down menus. All I have is a black circle with a line through it.

    Most likely, the images are 16-bit/channel.

    Go to Image > Mode and click on 8-bit/channel and see if that solves the problem.

  • I have Photoshop Lightroom 5 and you have downloaded Camera Raw 8.7.1 &amp; DNG Converter with success. I have a new model of Sony Alpha 7 11 ILÇE A7M2 which is supported by LR5. I'm still not able to see the RAW images. The message says not available ove

    I have Photoshop Lightroom 5 and you have downloaded Camera Raw 8.7.1 & DNG Converter with success. I have a new model of Sony Alpha 7 11 ILÇE A7M2 which is supported by LR5. I'm still not able to see the RAW images. The preview not available for this DSC - ARW file message says. Whatelse should I do to see my photos? Can anyone help?

    Anita

    Support for the camera has been added in the latest version of Lightroom, version 5.7.1. After you download Camera Raw 8.7.1 will have no effect on Lightroom because Lightroom does not use plug in Camera Raw. You must ensure that you have updated Lightroom to the latest version in order to have support for this camera.

  • How to provide values for the elements of type complex in XSD?

    Hello

    I use JDev 11.1.1.7.0 and Weblogic 10.3. I'm new on create XSD.

    How to provide the value to 'Enter' in the case below? It is a complex type element with an attribute. When I test this on EM, I'm not able to enter the value in this "entry". Only the attribute is available for entering values.

    InputInEM.JPG

    I have a XSD which looks like:

    Design:

    InputXSD.JPG

    Source:

    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns="http://www.example.org"
                targetNamespace="http://www.example.org"
                elementFormDefault="qualified">
      <xsd:element name="FormInput">
        <xsd:annotation>
          <xsd:documentation>Attribute Example</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Input">
              <xsd:complexType>
                <xsd:simpleContent>
                  <xsd:extension base="xsd:string">
                    <xsd:attribute name="InputAttribute" type="xsd:string"/>
                  </xsd:extension>
                </xsd:simpleContent>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element name="FormOutput">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="Output">
              <xsd:complexType>
                <xsd:simpleContent>
                  <xsd:extension base="xsd:string">
                    <xsd:attribute name="OutputAttribute" type="xsd:string"/>
                  </xsd:extension>
                </xsd:simpleContent>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    

    Thank you very much.

    Hi Harsha,

    As you use the "tree" in the em console to test your service, it does not correctly recognize extensions/restrictions 'simpleContent '.

    I suggest that you use the 'XML' view, but if the attribute is missing then you must add it manually to the. ( Ex: ) .

    I suggest that allows you to test your service SOAP UI and it generates properly signed your application of xml syntax.

  • Not able to perform the calculation on the data base not tabular column

    Hi all

    I have a master's degree and a tabular form of retail that has of the following requirement:

    • If I choose two feel in my element Type of trip in my master form, no. tickets in my detailed tabular form must have doubled this IE. 2 * number of tickets
    • The number of tickets is a field display text (does not state) so I'm not able to select the value of the field in jquery.

    Kindle help me with this.

    Thank you and best regards,

    Madonna

    Hello Nicolette,

    I solved by creating a function of database and used in the source region of the form of the table with the column attribute as display text (does not save the State).

    Thank you for your help.

    Kind regards

    Madonna

  • Not able to open the modal Page by a link attribute of report

    Dear all,

    Not able to open the Page modal by an attribute of report link, kindly help me...

    I use skills builders modal plugin page...

    Thank you and best regards,

    Madonna

    Here's what you have to do.

    You set up your link column as follows:

    Text link: what you want

    Link attributes: onclick = "return false;" class = "open_modal".

    Target: Page in the present application

    : The page number to open in your modal window

    You configure your dynamic action like this:

    Event: click on

    Selection type: jQuery selector

    jQuery selector: .open_modal

    (Notice the period at the beginning!)

    Action: SkillBuilders Page modal [plugin] (2.0.0)

    Scope of the event: Dynamics

    And finally, in your real Action (SkillBuilders modal Page (2.0.0)), location of the URL must be defined as an attribute of the element triggering.

    And that's about all it takes.

    I hope this helps.

  • Not able to print the message after redirection to another page of pag current

    Hi Experts,

    I'll call you a procedure (who accepts 4 parameters IN) page of the OAF by pressing a button.

    My page contains: 4 elements of text Message and the other present button.

    I enter values in the 4 message text of introduction of the elements; After clicking on the button submit, he calls with success the procedure.*After by clicking on the button submit, after the call to procedure, I would like to pass on the same page with the values parameter zero and display confirmation message *.

    But I am not able to make the parameter null values in the page.


    I have the code in my page controller below.

    REQUEST FORM PROCESS:

    OAApplicationModule oa = pageContext.getApplicationModule (webBean);


    {if (PageContext.GetParameter ("Submit")! = null)}
    CallableStatement call_proc = null;
    try {}
    call_proc = OA.getOADBTransaction () .createCallableStatement ("start oaf_test_tbl_insert_proc(:1,:2,:3,:4,:5); end; ", 5) ;
    call_proc. SetString (1, PageContext.GetParameter ("empno"));
    call_proc. SetString (2, PageContext.GetParameter ("Ename"));
    call_proc. SetString (3, PageContext.GetParameter ('Work'));
    call_proc. SetString (4, PageContext.GetParameter ("Salary"));
    call_proc.registerOutParameter(5,types.varchar);
    call_proc. Execute();
    oa.getOADBTransaction () .commit ();

    String message = call_proc.getString (5); out parameter (5) will return a message


    OAException message = new OAException (message, OAException.CONFIRMATION);
    pageContext.putDialogMessage (message);

    pageContext.forwardImmediately ("OA.jsp?page=/practice_test_prc1/oracle/apps/mfg/simplepg/webui/oaf_test_tbl_calling_proc"
    null
    OAWebBeanConstants.KEEP_MENU_CONTEXT
    null
    null
    true
    (null);

    } catch (SQLException e) {}
    call_proc. Close();
    }

    }


    Kindly help me, how to print the confirmation message and send to the same page by making the param to null values.

    Hello

    On the successful return of the procedure, you must set a session Variable * (pageContext.putSessionValue ("WFFullListPage") *.)

    Then call it.

    pageContext.forwardImmediately ("OA.jsp?page=/practice_test_prc1/oracle/apps/mfg/simplepg/webui/oaf_test_tbl_calling_proc"
    null
    OAWebBeanConstants.KEEP_MENU_CONTEXT
    null
    null
    true
    (null);

    Next, you need to check this condition on the PR of the CO and show the message as required.

    Extract the same value to the controller, as * (pageContext.getSessionValue ("WFFullListPage") *)

    Kind regards
    GYAN

Maybe you are looking for