XSL Processing Instructions

I have a simple XML to HTML conversion task, using XSL. I would like IE 5.0 to find processing instructions
(i.e., <?xml-stylesheet type="text/xsl" href="mystyle.xsl"?>) incorporated into all of my XML instances submitted to Oracle via iFS. How do I configure my schema so that I get the PI to follow the "<?xml version="1.0" standalone="yes" ?>" declaration?

Can you post a complete example 'instance' file, and the corresponding 'Type Definition' file so we can fully understand you requirement and investigate this issue further

Similar Messages

  • Help needed on processing-instruction

    Hi,
    I need to "relay" a processing-instruction from the source-message to the target-message. In the transformation-file, I've added the code
    <xsl:processing-instruction name="integration">
    <xsl:value-of select="/processing-instruction('integration')" />
    </xsl:processing-instruction>
    When I test the map from within JDeveloper, and when I run oracle.xml.parser.v2.oraxsl from the commandprompt, it works fine, but when I deploy the project to my esb-server, the processing-instruction is lost during the transformation.
    We run the standalone esb-installation.
    Regards
    Thomas

    I tried compling servlet, but it is raising error
    that coul not find package javax.servletWhat I did not mention... you need to add those JARs in the Classpath explicitly. You will find them in %TOMCAT_HOME%\common\lib. You atleast need to add servlet-api.jar to your Classpath. :)

  • Updating a XML document with a processing instruction

    Greetings Guru's
    I have a fully functional XML database solution for our new system. The only thing left is for me to update a xml document in the database with a processing instruction to find the style sheet (JAXB strips it out when the XML must go back into the database).
    I can update complete nodes and node elements in the xml document using updateXML in a regular update statement, but I do not know how to add the following processing instruction to my documents.
    <?xml-stylesheet type="text/xsl" href="/RASWEB/JIT_REPORT.xslt"?>
    [pre]
    Thanks in advance
    Derrick                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    SQL> var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmlText := '<Hello>World</Hello>';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> drop table t
      2  /
    drop table t
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> create table t of xmltype
      2  /
    Table created.
    SQL> set long 10000
    SQL> --
    SQL> insert into t values (xmltype(:xmltext))
      2  /
    1 row created.
    SQL> select *
      2    from t
      3  /
    SYS_NC_ROWINFO$
    <Hello>World</Hello>
    SQL> update t set object_value = updateXML
      2                              (
      3                                object_value,
      4                                '/',
      5                                xmlconcat
      6                                (
      7                                  xmlpi("xml-stylesheet",'type="text/xsl" href="/RASWEB/JIT_REPORT.xslt"'),
      8                                  object_value
      9                                )
    10                              )
    11  /
    1 row updated.
    SQL> select * from t
      2  /
    SYS_NC_ROWINFO$
    <?xml-stylesheet type="text/xsl" href="/RASWEB/JIT_REPORT.xslt"?>
    <Hello>World</Hello>
    SQL>

  • XSL-process in C XML-parser

    L.S.
    I get a memory-leak when executing xslprocess in a loop without initiating my input-xml and xsl-contexts.:
    xctx=xmlinit( ) /* (xml invoer initialiseren) */
    xslctx=xmlinit( ) /* (xsl invoer initialiseren) */
    for (i=0;i<10;i++) {
    resctx=xmlinit( ) /* (xml uitvoer initialiseren) */
    free(result);
    xslprocess(xctx, xslctx, resctx, &result))
    xmlterm(resctx);
    xmlterm(xctx);
    xmlterm(xslctx);
    There is no leak, when I initiate both contexts within the loop like this:
    for (i=0;i<10;i++) {
    xctx=xmlinit( ) /* (xml invoer initialiseren) */
    xslctx=xmlinit( ) /* (xsl invoer initialiseren) */
    resctx=xmlinit( ) /* (xml uitvoer initialiseren) */
    free(result);
    xslprocess(xctx, xslctx, resctx, &result))
    xmlterm(xctx);
    xmlterm(xslctx);
    xmlterm(resctx);
    Is this a bug ? Or is there an explanation ??
    Regards,
    Rik

    The xml- and xsl-source look normal (there is no import or include). When I look in the process-table I see the size of the process increasing.
    XML:
    <body>
    <addCustomer>
    <CustomerDetail>
    <CustomerName>
    <Name>Diederik Lakerveld</Name>
    </CustomerName>
    <MobielNummer>
    <telephoneNumber>31123456789</telephoneNumber>
    </MobielNummer>
    </CustomerDetail>
    </addCustomer>
    </body>
    XSL:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="*|@*|comment()|processing-instruction()|text()">
    <xsl:copy>
    <xsl:apply-templates
    select="*|@*|comment()|processing-instruction()|text()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="telephoneNumber">
    <xsl:copy>
    <xsl:variable name="d" select="."/>
    <xsl:value-of select="concat('06-', substring(string($d),3,9))"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    Regards,
    Rik

  • XSLT processing instructions ignored, and namespaces excluded

    Hi folks,
    I am developing a BPEL process and created the following XSLT:
    &lt;xsl:stylesheet version="1.0"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    <strong> xmlns:agrlib="http://services.agresso.com/schema/ABWSchemaLib/2005/05/13"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    </strong> exclude-result-prefixes="xsl xp20 bpws ora ehdr orcl ids hwf"&gt;
    <strong> &lt;xsl:output omit-xml-declaration="no"/&gt;
    &lt;xsl:output standalone="yes"/&gt;
    </strong> &lt;xsl:template match="*[not(node())]"/&gt;
    &lt;xsl:template match="node()"&gt;
    &lt;xsl:copy&gt;
    &lt;xsl:apply-templates select="node()"/&gt;
    &lt;/xsl:copy&gt;
    &lt;/xsl:template&gt;
    &lt;/xsl:stylesheet&gt;
    The transform activity is:
    &lt;copy&gt;
    &lt;from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('Variable_1'))"/&gt;
    &lt;to variable="Variable_2"/&gt;
    &lt;/copy&gt;
    This XSLT has been tested in Oxygen and produces the required result with the required namespaces included...i.e.
    <p>
    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    </p>
    <p>
    &lt;ABWSupplierCustomer xmlns="http://services.agresso.com/schema/ABWSupplierCustomer/2005/05/13" xmlns:agrlib="http://services.agresso.com/schema/ABWSchemaLib/2005/05/13" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    </p>
    <p>
    ...rest of file...
    But when the BPEL process executes, it outputs this:
    </p>
    <p>
    &lt;ABWSupplierCustomer xmlns="http://services.agresso.com/schema/ABWSupplierCustomer/2005/05/13"&gt;
    </p>
    Anyone any ideas?

    This is how I create my DOM...
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    org.w3c.dom.Document doc = builder.newDocument();
    Element docElement = doc.createElement("Document");
    docElement.setAttribute("Title", "Home");
    org.w3c.dom.ProcessingInstruction pi = doc.createProcessingInstruction("xml", "type=\"xslt\"");
    doc.appendChild( pi );
    doc.appendChild( docElement );
    And this is the output I get...
    <?xml version="1.0"?>
    <Document Title="Home"/>
    I dont get it, Im using jdk1.4.0, and you get the processing instruction coming through, but I dont...?

  • JAXB: How do I add a processing instruction?

    Hi there
    I am using XML with JAXB in a client/server environment. On the response of from the server to the client, I want to include a processing instruction in the XML response to indicate a stylesheet associated for example:
    <?xml-stylesheet type="text/xsl" href="test.xsl"?>
    Does anybody have any ideas on how to include a stylesheet while constructing the jaxb object? Or must this declaration be included in the building schema???
    Please help?
    Thanks
    Glen

    this is how I do it in jwsdp 1.4:
    marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml-stylesheet type=\"text/xsl\" href=\"checker.xslt\"?>");
    This constant is defined as private in the generated marshal class.
    as of now this looks like an undocumented feature.

  • Firefox xslt processing instruction

    Hi
    It's strange, i don't know...
    When my processing instruction looks like this
    <?xml-stylesheet type="text/xsl" href="xml40_reminder.xsl"?>
    i get the transformated xml in both browsers (IE6.0 and Firefox1.5).
    On the other side, when the href-attribute beginns with a FQDN i only get the transformation with IE6.0 and not with Firefox1.5.
    Example:
    <?xml-stylesheet type="text/xsl" href="http://core.mycompany.ch/xsl/xml40_reminder.xsl"?>
    Any ideas?
    Kind regards
    Michael

    Yes, the core-server is an intranet-server where we hold our schemas and stylesheets in a centralized place. In contrast the XML's are stored on an other machine. So it would be nice if we could use URL's to link the XML's with the stylesheets.
    Kind regards
    Michael

  • Bug when copying processing-instruction() nodes via XSLT

    Hi,
    Database version :
    BANNER
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE     11.2.0.2.0     Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - ProductionTest case (XSLT identity transform) :
    SELECT XMLSerialize(document
             XMLTransform(
               XMLParse(document '<test><?abc?></test>')
             , XMLParse(document
    '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml"/>
      <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>')
           ) as result
    FROM dual;produces :
    RESULT
    <?xml version="1.0" encoding="utf-8"?>
    <?abc ?><test></test>
    instead of the expected output, with the processing-instruction() node at the right place, in document order :
    <?xml version = "1.0" encoding = "UTF-8"?>
    <test><?abc ?></test>Any ideas or workarounds?
    Thanks.

    Yep, same on 11.2.0.3 :
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL>
    SQL> SELECT XMLSerialize(document
      2           XMLTransform(
      3             XMLParse(document '<test><?abc?></test>')
      4           , XMLParse(document
      5  '<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      6    <xsl:output method="xml"/>
      7    <xsl:template match="@*|node()">
      8      <xsl:copy>
      9        <xsl:apply-templates select="@*|node()"/>
    10      </xsl:copy>
    11    </xsl:template>
    12  </xsl:stylesheet>')
    13           )
    14         ) as result
    15  FROM dual;
    RESULT
    <?xml version="1.0" encoding="utf-8"?>
    <?abc ?><test></test>

  • Error while creating process instruction sheet in COR2

    While creating Process instruction sheet, the following error is occuring. Please guide me to resolve the issue.
    Define variable QTYPRODUCED for default value
    Message no. CPOC110
    Diagnosis
    In the process instruction, variable QTYPRODUCED is defined for the value that you want the system to propose when data is entered in the PI sheet. This value does, however, not exist because it has not yet been defined as a variable.
    If you want to use a variable in a process instruction, however, you must first have defined it in a preceding process instruction or in the same process instruction.
    Procedure
    Define variable QTYPRODUCED in one of the preceding process instructions or in the same process instruction.
    Define Variable
    Regards
    Kumar

    1.  Assign characteristic PPPI_VARIABLE to the process instruction before the message characteristic to which the variable is to refer
    2.  Assign the required variable name to characteristic PPPI_VARIABLE.

  • How to print process instruction in process order.

    Hi dudes,
    ,y client is not having Process management interface, but they want to maintain process instruction for phases in recipe and want to take print of process instructions  in process order after release process order.
    Please explain the path for printing process instructions copied into process order.
    if some one assign PIs to phase in recipe, will control recipes be created after release of process order.
    Regards
    Daniel

    The easiest way to do what you want is to actually create the PI sheet and then print it off from the view PI sheet transaction (CO60).  This is then all standard functionality.
    to do this you will need to set the configuration to create the control recipe when the process order is released and send it to a recipe destination.
    Regards
    Laurence

  • Process instructions for particular process order.

    Hi SAP gurus,
    How can I find table level data of process instructions (Like READ 1 , READ2 , INSTR ) maintain  for particular process order.
    If should not with respect to recipe but it should be respect to process order.
    Can any Plz buddy explain me the chain of  tables starting  from order number?
    Best Regards,
    Parag Save

    Hi...
    i could not find the table for the relationship u r looking for... but i would suggest the following...
    Go to SE16.. press F4 in the table list...go to the application help... their you will find tables for each module... even for PP you will find table specific to process industry... this you can search ur own what can be relevant for ur requirement... finally u can use SAP query to join some table to the get the information u want....
    Try this...hopw it should work for u...
    Neeraj

  • Process Instruction (PI) Sheet text (Browser version)

    Our Process Instruction (PI) Sheet information is stored in the text tables (STXH/STXL) under TDOBJECT = 'COPOC' and TDID = '0001', but has a cryptic TDNAME key value.  We use the 'browser' PI Sheet display version, not the ABAP base display version which stores the PI data on tables COCHP (Header data) and COFTP (PI Sheet: Process Instructions).  Function Module COP0_DISPLAY_PI_SHEET would be used to display the ABAP PI Sheet information.  During debug of tcode CO60 (Find PI Sheet), it appears that the Control Recipe (CRID) value is used to create the TDNAME key value via Classes/Methods.  Unfortunately, accessing the text thru the different Classes does not seem straight forward.  Does anyone have code/logic to extract the PI Sheet text directly using the CRID in a more simpler procedure?
    Thank you in advance for your assistance.
    jm

    Hi,
    use this Function module to get the text.
    <b>COCB_CONTROL_RECIPE_GET_DETAIL</b> pass the control recipe ID.
    try this also..
    COCB_CONTROL_RECIPE_GET_TEXTS
    regards
    vijay
    Message was edited by: Vijay Babu Dudla

  • Process instruction characteristics and process messages

    Hi,
    Can anyone tell me why process instruction characteristics is required when only process message characteristics are displayed in PI sheets (input or output).
    Regards
    Joe

    Hi,
    Answer is already there in your question.
    and that is
    (input or output)
    Now you creates the one Process Message characteristic let's it is Temperature.But how it's value comes in the PI Sheet (As Ouput or Input manually by user) that is decided by that Process Instruction Characteristic.
    Now when you creates the Process Instruction Category (O12C) except type 0 you have choice of creates it by using help of Process Assistant.This Assistant assigns the Process Instruction Characteristic to the process Massage Characteristic automatically when you select the specific radio button or Activate the check box during that PI category creation.
    For Example when you creates the PI category Type 2 using Assistant.Here after naming first screen comes to you is to define type of Process data Request.Here when you select the radio Button for Simple process data request then indirectly you assign the process Instruction characteristic PPPI_DATA_REQUEST_TYPE and its Value comes as Simple.
    But when you create the PI category type 0 you have to assign this PI Characteristic manually because its Universal Category and there is no assistant which helps you.
    Regards,
    Dhaval

  • Automatic Process Instructions - config trnx O10C

    Automatic process instructions and messages are generated when the control recipe is created. These created instructions have an associated field "Line Number of Process Instruction" (field AFFTD-FTRNR). This field should designate the "sequence of process instructions within a phase".
    I get only 2 values in this field, 0000 and 9999.
    This works for PI Sheets. Internally SAP has a way to manage it.
    Send to a control system ten times, phase 0020, instruction "9999 ACONS_1" ... The external system will get lost.
    Is there a way to control the sequence of this number?
    Thanks in advance.

    Automatic process instructions and messages are generated when the control recipe is created. These created instructions have an associated field "Line Number of Process Instruction" (field AFFTD-FTRNR). This field should designate the "sequence of process instructions within a phase".
    I get only 2 values in this field, 0000 and 9999.
    This works for PI Sheets. Internally SAP has a way to manage it.
    Send to a control system ten times, phase 0020, instruction "9999 ACONS_1" ... The external system will get lost.
    Is there a way to control the sequence of this number?
    Thanks in advance.

  • Seeking for API to deal with XML processing instructions

    Hi all,
    I have a requirement to list all the processing instructions inside a xml document.
    E.g. For the document
    <?xml version="1.0" encoding="utf-8"?>
    <?AAA att1="att 1"?>
    <?BBB?>
    <?CCC?>
    <body>
      <empty>True</empty>
    </body>
    I need to print out PIs AAA, BBB, CCC.
    Two solutions i can find are:
    1. to treat the doc as a string and do a pattern search for <?*?>.
    2. use IF_IXML_DOCUMENT to traverse all the nodes and check their node types against IF_IXML_NODE=>CO_NODE_PI_PARSED and TYPE = IF_IXML_NODE=>CO_NODE_PI_UNPARSED.
    However, I am wondering if there's any xml API to deal with XML PIs.
    During my research on this, i got IF_IXML_DOCUMENT. It provides two creation APIs for XML PI: CREATE_PI_PARSED and CREATE_PI_UNPARSED. However, there is no corresponding getter API found.
    Does anybody know if there is such one?
    Thanks in advance.

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

Maybe you are looking for

  • Graphs in ABAP Report

    Hi All, My requirement is to get a graph (which includes both bar graph and a sine graph, in one single shot). Though I had gone through the various demo programs given by SAP in trxn 'GRAL', I could not find one, which can give me both kinds of grap

  • Try to print a coupon using the coupon printer and it doesn't respond. I have to force quit firefox.

    Up until recently I have been able to print coupons using Firefox. Now when I try to using the coupon printer Firefox becomes unresponsive and so I have to force quit Firefox. I have a Mac OSX version 10.5.8 desktop with Firefox 8.0 beta.

  • E4200 router, wmp600n wireless adapters and mapped drives with wpa2 don't work!

    Sigh I have a file server running windows 2003 and five computers (1 windows 7, 4 windows xp-sp3). There are two shares on the server. When the router is setup with wpa2, three of the windows xp machines will have problems with mapped drives. Directl

  • How to use window.confirm in a JavaScript with unknown variables

    On my delete category page the user can pick the category it wishes to delete from a dropdown list (which is generated by rows in my database). When the user hits the "Delete" button ths OnClick runs a JavaScript that sends the delete request to a .j

  • I need a replacement Phone

    The touch screen on my husband's Droid 3 stopped working. I have done a hard reset with the buttons, but that did not fix the issue. He took my phone with him to work, so all I have available right now is the internet to get him a replacement. I know