Using Saxon Functions Within XSLT

Hi,
Please let me know how to use saxon functions within XSLT.
E.g.: If I want to implement saxon:base64Binary-to-string() function in XSLT in "xsl:value-of" function, then what will be the format for implementation.
I have selected the Processor as Saxon 8.9.0.3 (the one available) and using xmlns:saxon="http://saxon.sf.net/" in the xsl:stylesheet tag.
I am using Stylus Studio 2007 XML Enterprise Suite for XSLT.
Thanks,
Abhishek.

Hi,
Yes I intended to use the XLST mapping within PI...but now will have to change the plan...is there any other way to do it?....is this the problem with the SP?.....anybody who can put more light on this topic.....
Thanks,
Abhishek.

Similar Messages

  • Using Translate() function of XSLT ...

    Hi guys
    I have an xml document that i am converting into an html document using XSLT. I need to replace the XML new lines(&#10) with html new lines (<br>) while the xslt transform takes place on my xml document.
    For this I have found the translate function of XSLT but I need to use it on a specific tag and not all the tags in the xml document.
    <ExampleTag>
    1 first line
    2 second line
    3 third line
    </ExampleTag>
    translate(string, replaced_text, replacement_text)
    so I need to get my tags value in the variable string which is:
    1 first line
    2 second line
    3 third line
    and replaced_text: '&#10' and replacement_text: '<br>'
    but the problem is XSLT syntax is so bad that i just cant devote enough time to learn it. Any suggestions for the syntax guys?? an example would be extremely useful.
    cheers :)

    Hey
    after a bit of struggle came up with this:
    <xsl:template match="ExampleTag">
    <xsl:variable name="string" select="."> </xsl:variable>
    translate(string, "&#10", "</br>" )
    <xsl:value-of select="$string"/>
    </xsl:template>
    but its not working :(
    any suggestions??

  • Limitations in using a function within a select statement

    I have a function which retrieves various data elements from the
    database and formats it accordingly. The data (varchar2)
    returned could be in excess of 2,000 characters length.
    I need to use the returned data as part of a view. I am able to
    use the function in a "select" statement, but when I use it with
    returned data in excess of 2,000 chars, I get the following
    error:
    ORA-06502: PL/SQL: numeric or value error
    This error is occurring whenever the returned data is in excess
    of 2,000 characters.
    Is there an alternative method to what I am proposing, I have
    tried alternative data types but if I am able to use it in a
    "select" statement, I get the above error when the returned
    length exceeds 2,000 chars.
    Thanks
    Peter

    are u using oracle 7. varchar2 limit in 8 is 4000.

  • Using a function within a process flow...

    Hi,
    I'm trying to figure out a way of using a function (or something else) to return a status before attempting to run a mapping. I'd like to have a table with all my mappings, start date, end date, status, etc.
    1. SELECT status FROM table, if the mapping has already been executed do nothing, else execute the mapping, etc.
    Is there a way to accomplish that in OWB flow ?
    Thank you.
    Gaétan

    Hi,
    We had a similiar set up in my previous role where we have a Process flow for each mapping. Under that processflow, before attempting to run the mapping we called function to check whether that particular mapping has been run successfully for that date. The function would take "PF Name" as an input and returns the status as 1 (return success - the mapping was not run, so has to be run today)
    2 (return warning - the mapping is already run no need to run this time)
    3 ( any fatal errors).
    The function code is as below - _______________________________________________________
    CREATE OR REPLACE FUNCTION "PUB_CHECK_RUN_STATUS"("IN_ETL_PROCESS_FLOW_NAME" IN VARCHAR2) RETURN NUMBER IS
    --initialize variables here
    lv_Current_Load_Id NUMBER;
    lv_Last_Load_Id NUMBER;
    BEGIN
         <<Check_PF_Status>>                    -- This block is Standard for all Loads Jobs
         BEGIN
              SELECT LOAD_ID
              INTO lv_Current_Load_Id
              FROM LOAD_ADMIN.LATEST_LOAD;
              SELECT LAST_COMPLETE_LOAD_ID
              INTO lv_Last_Load_Id
              FROM LOAD_ADMIN.ETL_PROCESS_FLOW
              WHERE ETL_PROCESS_FLOW_NAME = in_ETL_Process_Flow_Name;
              IF Lv_Last_Load_Id = lv_Current_Load_Id
              THEN
                   -- This Process Flow has already been completed during this Load, so do not re-run
                   RETURN 2;          -- Returns a Warning Status
              ELSE
                   -- This Process Flow has not completed during this load, so need to run this now
                   RETURN 1;          -- Returns a Success Status
              END IF;
         END Check_PF_Status;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN 3;     -- Returns an Error Status
    RETURN NULL;
    END;
    In the above code
    LATEST_LOAD is a view which always returns one row with current load information (like load _id, start time etc)
    ETL_PROCESS_FLOW is a table containing one row for each process flow with information like (execution status, load_id when it was execute )
    You can modify to suit your requirements.
    HTH,
    Mahesh

  • Use document() function in xslt

    Hi I want to use the xslt function document() to import a data file into the transformation.
    However I don't seem to be able to import the xml file onto the osb. can this be done ?
    Basically can you use the document() function?
    I've tried googling and searching the docs but i think i'm missing something basic :-)
    Thanks in advance

    Not an answer to the particular point but i've got round the issue by adding a stage which inserts the data xml into the xml document being transformed.
    I then supress the data injected from being copied to the output tree and use a variable which references the data nodes rather than a variable referencing
    an external doc variable name="myvar" select="//injecteddatanode" /> rather than <variable name="myvar" select="document("path/doc.xml")
    The question still stands though : how do you import an xml doc which can then be used by the document function in a transform

  • Using exportAsXFDF function within a PDF

    I have created a fillable form with two buttons, a load and save.
    Both work fine in professional X, but when I enable the PDF via professional and then try to save data via reader X the functionality does not work.
    I have implemented the save as a javascript action on the button, trying both this.exportAsXFDF(); and this.exportAsXFDF(true, false, null);
    Both these work in professional X but not in the reader.
    Do I need another product to enable this feature within the PDF?
    Are there any alternative method of exporting the data from the fillable PDF?
    Am I doing something wrong?

    For this method to work in Reader you need to apply a special right to the
    file using a product called LiveCycle Extensions Server.

  • DBMS_XMLQuery behavior when using stored function within cursor select

    Consider the following SQL Statement
    select t1.id
    , t1.name
    , cursor ( select t2.id
    from tab t2
    where t2.t1_id
    = t1.id
    and validate(t2.xyz,:bd1)
    = 1
    from tab t1
    where t1.id = :bd2
    DBMS_XMLQuery is used to create a context and to bind the appropriate values. In this case 'validate' is a stored function. I get the following error message upon execution:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
    Issuing a similar statement in SQL*Plus works fine. I was wondering whether this is a known issue when using a stored function in the cursor select statement in the context of DBMS_XMLQuery or whether I'm doing something wrong.

    Hi Jan,
    This problem has been identified and fixed. The fix should be available in the next release. Thank you for bringing this up to our attention.
    visar

  • Using summation function in xslt transformation

    Hi,
    I'm new to SOA and i'm just exploring the functions in SOA suite. I couldn't add more than one parameter in summation function.
    summation function takes only one parameter as input I hope. How to use it.
    Thanks and Regards
    Karthick

    Yes. You are right.
    Nilesh

  • Error in XSLT mapping while using string functions

    Hi All,
    While using tokenize() and substring-before() functions in XSLT mapping,we are getting an error.The error message is Unexpected symbol "" So while using string functions in XSLT mapping do we have to use any header functions.
    Please through light on syntax etc.,of string functions in XSLT.
    Thanx in advance,
    Lokesh Dhulipudi
    Edited by: LOKESH DHULIPUDI on Dec 27, 2007 7:32 AM

    Hi,
    Hope you have gone thru this help:
    http://w3schools.com/xsl/default.asp
    Rgds, Moorthy

  • Date function in XSLT

    Hi All,
    I am trying to use date function in XSLT, I am using the below code, please correct me if i am wrong
    <corecom:EffectiveDate>
    <xsl:value-of select='xp20:format-dateTime(ns0:Segment-DTM/ns0:Element-373,"[YYYY][M01][D01]")'/>
    </corecom:EffectiveDate>
    Regards
    Francis

    Hi Francis,
    It doesn't seem to be anything wrong with the code itself, but what's the content of ns0:Segment-DTM/ns0:Element-373 ???
    The xp20:format-dateTime function will work if the date on the first parameter is on ISO 8601 format...
    http://www.w3.org/TR/NOTE-datetime
    Examples
    1994-11-05T08:15:30-05:00 corresponds to November 5, 1994, 8:15:30 am, US Eastern Standard Time.
    1994-11-05T13:15:30Z corresponds to the same instant.
    Cheers,
    Vlad

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • File upload from form using cf8 file functions within cfscript?

    essentially, i'm wondering if anyone can give me an example
    of a way to replicate cffile upload using cf8's native file
    manipulation functions within a cfscript tag?
    more specifically, i am wondering if anyone had any code
    examples for uploading a file specified by a user on an html form
    using cf8's file functions (fileOpen, fileCopy, fileDelete,
    fileMove, fileClose, etc....) within a cfscript tag. i've done this
    a number of times in the past using upload through cffile, but i'd
    like to take advantage of cf8's new native file functions and be
    able to deploy the code within a cfscript block.
    i've found some simple examples of the file functions within
    the docs and online, but nothing showing me how to take a file from
    an html form and upload it where i want it, as cffile will do.
    thanks in advance for any help.

    those cf8 file functions are for manipulating files on the
    server.
    you still need to upload the file in one way or another.
    as for replicating cffile action=upload in cfscript: just
    write a
    function that uses cffile tag to upload a file, and call that
    function
    from your cfscript!
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Need Help: Using Ref Cursor in ProC to call a function within a Package

    I'm calling a function within a package that is returning a REF CURSOR.
    As per the Oracle Pro*C Programmer's Guide, I did the following:
    1) declared my cursor with a: EXEC SQL BEGIN DECLARE SECTION and declared the cursor as: SQL_CURSOR my_cursor;
    2) I allocated the cursor as: EXEC SQL ALLOCATE :my_cursor;
    3) Via a EXEC SQL.....END-EXEC begin block
    I called the package function and assign the return value to my cursor
    e.g. my_cursor := package.function(:host1, :host2);
    Now, the only difference between my code and the example given in the Pro*C Programmer's Guide is that the example calls a PROCEDURE within a package that passes back the REF CURSOR as an OUT host variable.
    Whereas, since I am calling a function, the function ASSIGNS the return REF CURSOR in the return value.
    If I say my_cursor := package.function(:host1, :host2); I get a message stating, "PLS-00201: identifier MY_CURSOR" must be declared"
    If I say :my_cursor := package.function(:host1, :host2); I get a message stating, "ORA-01480: trailing null missing from STR bind value"
    I just want to call a package function and assign the return value to a REF CURSOR variable. There must be a way of doing this. I can do this easily in standard PL/SQL. How can this be done in Pro*C ???
    Thanks for any help.

    Folks, I figured it out. For those who may face this problem in the future you may want to take note for future reference.
    Oracle does not allow you to assign the return value of a REF CURSOR from a FUNCTION ( not Procedure - - there is a difference) directly to a host variable. This is the case even if that host variable is declared a CURSOR variable.
    The trick is as follows: Declare the REF CURSOR within the PL/SQL BEGIN Block, using the TYPE statement, that will contain the call to the package function. On the call, you then assign the return REF CURSOR value that the function is returning to your REF CURSOR variable declared in the DECLARE section of the EXEC SQL .... END-EXEC PL/SQL Block.
    THEN, assign the REF CURSOR variable that was populated from the function call to your HOST cursor varaible. Then fetch this HOST Cursor variable into your Host record structure variable. Then you can deference individual fields as need be within your C or C++ code.
    I hope this will help someone facing a deadline crunch. Happy computing !

  • Using utl_encode.base64_encode within decode function

    Hi, I want to use utl_encode.base64_encode within decode function. However, the result is not as expected.
    select 'a', decode('a', '1', 'EQUAL to 1',
    --'NOT EQUAL to 1'
    utl_encode.base64_encode('a')
    ) result
    from dual
    A     RESULT
    a     43673D3D
    43673D3D is not a base64 encoded value of a
    What is wrong with the sql?
    Thanks

    SQL> select 'a'
      2  ,      utl_encode.base64_encode(utl_raw.cast_to_raw('a')) raw_result
      3  ,      utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('a'))) string_result
      4  from   dual;
    ' RAW_RESULT      STRING_RESULT
    a 59513D3D        YQ==
    1 row selected.Keep in mind that utl_encode.base64_encode returns a RAW and needs RAW input.
    You'll probably need UTL_RAW to get your desired result.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_encode.htm#CACECFHF

  • Unable to use MSN Premium for the Share function within Elements 10

    I'm unable to use MSN Premium for the Share function within Elements 10 (it seems the program does not recognize MSN Premium for a valid email program for use within the Share function of Elements 10).  Is this something than can be resolved?

    No, unfortunately. You will have to either set up the adobe email or else just use the attachments button in the MSN premium instead of sending directly from PSE.

Maybe you are looking for

  • No audio from flashplayer

    Hi, ever since I updated my flashplayer I have no audio. All other media players are working ok (winamp, windows media etc) and I can hear audio through them fine. I have had 3 technitions from virgin media try to remedy the problem to no avail. Have

  • Problem in writing the URL in Paging tag

    This is the part of my code which actually does paging <table width="544"> <pg:paging url="AdminPolicies.jsp?catid=${catid}"> <c:forEach var="Material" items="${mat}" varStatus="row" > <pg:item> <tr class="${row.index % 2 == 0 ? 'even' : 'odd'}"><td

  • Missing Parts check one level....can you confirm

    Simple scenario.  I have a 3 level BOM. Top level Item Mat A (make to order 82) > Mat X (make to stock strategy 40) > Component 1 (purchased). Stock: There is only stock for the Component 1 When I create an order for Mat A I get a missing part for Ma

  • Error while initializing activation agent for DBAdapter MasterDetail Demo.

    God day, following precisely the steps in Master Detail -Database Adapter sample. - configured adapter and deployed project and everything looked fine. - when start the Process Manager, always get: ( Error while initializing an activation agent for p

  • CORBA instance for OLAP Services?

    Hi All, I am new to OLAP, and I am trying to use OLAP API over a data warehouse I've created for test. I am developping on the following environement: - Windows 2000 Professional - OLAP API - Oracle 9.0.1 I am having a javax.naming.NamingNotFoundExce