XSLT, XPath and XQuery

Hi,
1.Can you differentiate these XSLT, XPath and XQuery.
2.How Do I Force a Rollback in a BPEL Flow.
Thanks in advance

shree wrote:
1.Can you differentiate these XSLT, XPath and XQuery.XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations.
XQuery is to XML what SQL is to database tables. XQuery was designed to query XML data.
XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions.
http://www.w3schools.com/xsl/default.asp
http://www.w3schools.com/xquery/default.asp
http://www.w3schools.com/xpath/default.asp
Cheers,
Vlad

Similar Messages

  • XPath and XQuery

    Hi all,
    What's the difference between the XPath and XQuery, can XPath has better performance than XQuery?
    Regards,
    Jane

    shree wrote:
    1.Can you differentiate these XSLT, XPath and XQuery.XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations.
    XQuery is to XML what SQL is to database tables. XQuery was designed to query XML data.
    XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions.
    http://www.w3schools.com/xsl/default.asp
    http://www.w3schools.com/xquery/default.asp
    http://www.w3schools.com/xpath/default.asp
    Cheers,
    Vlad

  • How to start learning XPATH and XQUERY

    Hello
    Please I am needing some guide to know if there is a guide that I could follow so that I can handle from the very beginning till the end an XML Document.
    Besides I need to know if with JDeveloper I can edit and update an XML document (data type XMLTYPE column) inside of a table.
    I'll appreciate your help.
    Paola.
    @}--->----->>----------

    You could have a start here http://www.w3schools.com/. also the old XMLDB manuals 9.2, 10.1 had primers on handling xml (appendix section), another source for you could be the w3c organization: http://www.w3.org/.
    AFAIK, JDeveloper doesn't have that functionality yet. AFAIK the latest toad version is able to do this...
    Message was edited by:
    Marco Gralike

  • XSLT+XPath Recursion

    I want to ask you to help me. I have problem with next task :
    Input data :
    Input data : build.xml
    <project name="name of project" default="compile" basedir=".">
    <target name="all" depends="clean,compile"
    description="Clean build and dist directories, then compile"/>
    <target name="clean"
    description="Delete old build and dist directories">
    </target>
    <target name="compile" depends="prepare"
    description="Compile Java sources">
    </target>
    <target name="dist" depends="compile,javadoc"
    description="Create binary distribution">
    </target>
    <target name="install" depends="compile"
    </target>
    <target name="javadoc" depends="compile"
    description="Create Javadoc API documentation">
    </target>
    <target name="list"
    </target>
    <target name="prepare">
    </target>
    </project>
    Me should build table of dependency using XSLT+XPath
    Target Dependencies
    clean
    list
    prepare
    all ______ clean
    ________ compile
    __________ - prepare
    compile | prepare
    dist ______ compile
    ___________ - prepare
    javadoc
    - compile
    - prepare
    install ____ compile
    __________ -prepare
    javadoc ___ compile
    ___________ -prepare
    I have read article and done example (http://www.ibm.com/developerworks/xml/library/x-xslrecur/ )
    Could you help me, please ?
    My source :
    <!-- -->
    <tr style="background-color: gray;">
    <td align="center">TARGET DEPENDENCY</td>
    </tr>
    <tr>
    <td width="100%">
    <table border="1"
    class="targetDependencyANT" align="center">
    <tr>
    <td
    style="background-color: olive">
    Target
    </td>
    <td
    style="background-color: olive">
    Dependencies
    </td>
    </tr>
    <xsl:call-template
    name="printEmptyTarget" />
    <xsl:call-template
    name="printNotEmptyTarget" />
    </table>
    </td>
    </tr>
    <xsl:template name="printEmptyTarget">
    <xsl:for-each select="project/target[not(@depends)]">
    <tr>
    <td>
    <xsl:value-of select="@name" />
    </td>
    </tr>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="printNotEmptyTarget">
    <xsl:for-each select="project/target[@depends!='']">
    <tr>
    <td>
    <xsl:value-of select="@name" />
    </td>
    <td>
    <xsl:value-of select="@depends" />
    <<<<<<<<<<<<< Start // This I have problem >>>>>>>>>>>>>>>>>>>>>>>>
    <xsl:variable name="targetName" select="@name = @depends">
    <xsl:value-of select="$targetName" />
    <<<<<<<<<<<<< End // This I have problem >>>>>>>>>>>>>>>>>>>>>>>>
    </xsl:variable>
    </td>
    </tr>
    </xsl:for-each>
    </xsl:template>
    Edited by: Sun_day on Sep 14, 2007 1:48 AM

    shree wrote:
    1.Can you differentiate these XSLT, XPath and XQuery.XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations.
    XQuery is to XML what SQL is to database tables. XQuery was designed to query XML data.
    XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions.
    http://www.w3schools.com/xsl/default.asp
    http://www.w3schools.com/xquery/default.asp
    http://www.w3schools.com/xpath/default.asp
    Cheers,
    Vlad

  • XSLT and XQuery recommendation for BPEL and OSB

    Hi,
    1. Why is XQuery recommeded for OSB and XSLT for BPEL. Are there any specific performance optimization reason behind this.
    2. Apart from OSB and BPEL, both XSLT and XQuery has xml transformation options and creating HTML. What is the difference between these two.
    Thanks in advance!

    you can create the graphical view of Xquery in Eclipse but not for XSLT
    Xquery is much faster than XSLT in OSB.
    Through XSLT however you can achieve more complex transformation.
    OSB has its historic origins in BEA Aqalogic stable and so Xquery was widely used used even though XSLT is supported. It is a matter of choice(your standards in your organization,your developer skillsets,your re-usable libraries etc )
    In Jdeveloper you can develop xslt in graphical mode though and attain complex transformation

  • XPATH and the C parser

    Can I use an 'XPATH' expression to find a node using the C parser?
    eg find '/A/B/C'
    The Oracle Java parser supports this.
    Thanks for your help.
    Doug

    Yes, we have Xpath and XSLT support in the parser.

  • Xpath and context objects

    hi expects,
        what is difference between xpath and context objects?

    Rohit,
    Check this thread for bhavesh reply for this:
    Context object
    ---Satish

  • XSLT Mapping and Graphical Message Mapping

    Hi,
    Can any one let me which is advatageous and why or let me know where I can find docs.
    Thanks In Advance.
    Yaseen

    Hi Udo,
    I have used a lot of XSLt outside and from my own experience(java/c#) we have been hit very hard with performance when using XSLT, it is an interpreted approach.
    It may look easy, fast but in time you will pay the price. Java and ABAP mappings are compiled, and only the runtime is maintained.
    Is XSLT useful, sure it is, there are many things that can be done in XSLT that is very tough to accomplish using mappings.
    Should it be the first choice of development, no its a case by case basis. 
    Most common disadvantages of XSLT are
    -Scripts rapidly explode in size
    -Quite complex
    -Hard to debug
    -Slow processing
    There is an ever ending debate on pros and cons of XSLT. It upto individual Architect to decide whatz best for the interface at hand.
    cheers,
    naveen

  • Source of xslt mapping and XSD/ XMT target structures for standard Idocs

    Hi,
    I am working on R/3 - XI - ICH scenario. I need xslt mapping and XSD/ XML target structures for standard IDoc like PROACT01,DELFOR01, DELVRY03. I tried to search it on marketplace but couldn't find it there. As per configuration document, these things are shipped with XI mapping content in live cache CD. But I don't have this CD with me. Can anybody tell me the source for these target structures and mapping program. ( Please share marketplace, site link or send me across the mail [email protected])
    Thank you in advance.
    Anand More.

    Anand the other option is to import the corresponding idocs into your integration repository and then you can view the generated XSD there.
    As regards XSLT mapping, you need to basically first identify as to what form you want to transform your source idoc into.
    For some help on XSLT mapping check the following threads,
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/topusers.jspa%3FforumID%3D44
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-6&contenttype=url&content=https://Process Integration (PI) & SOA Middleware
    Also have a look at my code samples,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic xslt mapping in sap xi, part i.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    cheers
    Sameer

  • XSLT Mapping and Namespace Issues

    I have been reading through similar threads on this topic, but have not found the right combination for my problem.  I am doing an XSLT map and it works fine in Stylus Studio.  When I take it to PI, I get a "Prefix 'ns0' is not mapped to a namespace" error.  I have a namespace that is within the XSD files I received from my partner (http://www.ups.com/XMLSchema/EBR/Billing/v1).  I also have the namespace I made in PI for the source (http://graybar.com/upsbilling/) and a different namespace in PI for the destination (http://graybar.com/cold/invoice/).
    <u><b>XSLT:</b></u>
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.ups.com/XMLSchema/EBR/Billing/v1" xmlns:ns1="http://graybar.com/cold/invoice/">
    <xsl:template match="/">
    <ns1:ColdInvoiceData>
      <Header>
      <RecordID>HDR</RecordID>
      <InvoiceDate>
      <xsl:value-of select="ns0:UPS_EBR_BILL/ns0:InvoiceDetails/ns0:Invoice/ns0:InvoiceDateCCYYMMDD"/>
      </InvoiceDate>
    <u><b>Source XML</b></u>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <UPS_EBR_BILL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ups.com/XMLSchema/EBR/Billing/v1" xsi:schemaLocation="http://www.ups.com/XMLSchema/EBR/Billing/v1 Billing_XML_Schema.xsd">
    <XMLBillFileVersion>1.0.1</XMLBillFileVersion>
    <Recipient>
    When I change the XSLT namespace from http://www.ups.com/XMLSchema/EBR/Billing/v1 to http://graybar.com/upsbilling/, the TransfromerException in PI goes away, but none of my referenced mappings work either (just my text hardcodes).
    Can someone tell me why this works in Stylus Studio, but not in PI?  Do I have too many namespaces?
    Message was edited by:
            Keith Wendel (to uncomment xsl:stylesheet line)

    > <ns1:ColdInvoiceData xmlns:ns1="http://graybar.com/cold/invoice/">
    This change did not affect anything.  Still works in Stylus Studio though.
    Did you mean to show any changes at the <xsl:value-of select> line?  I did not notice anything there.
    Can anyone explain what "not mapped to a namespace" means?  I have the declaration of ns0 at the top, so I don't see what else needs to be mapped.  Do I have to have my PI namespace where I store the partner's XSDs set as "http://www.ups.com/XMLSchema..." (partner's namespace)?

  • AquaLogic Service Bus and XQuery Mapper

    Hi all,
    I'm new about using AquaLogic Service Bus and XQuery Mapper. I'm using alsb250_wls920.
    To understand better the details I've developed two very simple EJBs stateless related to a generic CarRental scenario.
    The idea is the following:
    - EJB1 exposes a method for retrieving available cars from company A
    - EJB2 exposes a method for retrieving available cars from company B
    The method signature is the same:
    public CarVO[] getAvailableCars(Category category, Double price)
    the only difference is about the CarVO definition where one exposes more attributes than the second one (and also the package is different).
    The goal is designing a new proxy service called getAvailableCars that calls the two above services and returns a set including all available cars from both companies.
    The returned CarVO is the sum of all attributes from two above CarVOs plus a string company attribute.
    So in AquaLogic I've defined:
    - a JAR resource for importing my CarRental.jar
    - two BusinessService resources related to the two above getAvailableCars services (from company A & B), called getAVISAvailableCars & getHertzAvailableCars;
    - I've exported the two WSDLs from the two above BusinessService resources directly from AquaLogic console;
    - I've written manually the WSDL 'getAvailableCars' that I use in the next proxy service definition
    - a getAvailableCars_1 proxy service resource
    Before completing the proxy service definition, I've decided to use XQuery Mapper for defining my trasformations.
    But I got some errors when I try to import the WSDLs.
    For importing simply I've created a wsdl folder inside my project and copied into it the 3 WSDLs definitions.
    Because there are errors in 2 of these WSDLs (getHertzAvailableCars.wsdl, getAvisAvailableCars.wsdl) when I create a XQuery Transformation, I'm not able to select any source schema.
    But getHertzAvailableCars.wsdl, getAvisAvailableCars.wsdl have been generated directly from AquaLogic console and I don't understand why XQuery Mapper complains about them.
    If needed I can post also the CarRental.zip eclipse prj (that contains the above two EJBs) and CarRentalAqualogicPrj.jar AquaLogic prj (passphrase is aqualogic).
    I thank you in advance for any suggestion.
    Regards
    Patrizio

    Could you send me the WSDLS?
    My email address [email protected]

  • XPath and ERMS

    Hi gurus,
    We're creating our own Services for ERMS (CRM 6.0) and I was after a spot of advice.
    Can anyone give me some guidance as to where to find all the XPATH entries available? 
    In the ERMS Repository there are attributes defined with XPATH entries against them, but I'm sure there must be other XPATH entries available, and if we wanted to define our own attributes I was wondering where I could look to find this XPATH information?
    Thanks in advance,
    Andrew G.

    Hi !
    WSDL, XSD, Xpath and BPEL are all open standard.
    ABAP for instance, is not an open standard.
    look at the below URL's for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfab6fdd-0501-0010-bc82-f5c2414080ed
    BPEL in a Nutshell
    WS-BPEL 2.0 from OASIS - How it has progressed since BPEL 1.1
    BPEL Glossary for Developers
    Regards
    Abhishek

  • XPath and oracle parser

    Hi,
    I am using Oracle parser to parse my XML file, as i found that it is faster then IBM and sun parser, But i think it does not support XPath, so how can i use XPath and oracle parser, I can also use Sun parser , but dont know if it has XPath support,
    So please help me out

    I suppose it supports DOM or a saxHandler that can provides you a DOM
    tree. For Xpath, may I suggest you my solution : http://www.japisoft.com/jxpath
    Regards,
    A.brillant

  • Xpath and BPEL

    What is xpath and BPEL?

    Hi !
    WSDL, XSD, Xpath and BPEL are all open standard.
    ABAP for instance, is not an open standard.
    look at the below URL's for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfab6fdd-0501-0010-bc82-f5c2414080ed
    BPEL in a Nutshell
    WS-BPEL 2.0 from OASIS - How it has progressed since BPEL 1.1
    BPEL Glossary for Developers
    Regards
    Abhishek

  • Does the XMLP full or partially support the Xpath and XSLFO syntax?

    Does the XMLP full support the Xpath and FO syntax? or partially? Thanks

    Hi Robin
    OK, so hopefully you are not leading me into a trap here :o)
    There are two parts to this question:
    1. XPATH - we support as much of the XPATH spec as the Oracle XDK supports ie we rely on the XDK for our transformation engine so as long as they support what you are trying to do then we do. There are a few gaps and we have plugged those in the XMLP layer. So the short answer is yes.
    2. XSLFO - we allow you to use XSLFO in your template. The XMLP engine supports much of the standard but there are a few gaps. the next set of docs will layout exactly what we do support in the spec.
    Regards, Tim

Maybe you are looking for

  • PDF files will not open in Mozilla, they do in Safari.

    I am unable to open PDF files when working in Firefox. A message comes up indicating failure. I am able to open a PDF file is I am working in Safari. I have an Apple Macbook.

  • IPad 3 camera not working after ios7

    Camera app, FaceTime, photo booth, and tango opens up to a black screen with both front and rear cameras.

  • Changing Vendor Payable Accounts to a New Bank

    My client wants to transition over vendor payable account to a new bank. Can you tell me the required configuration, ABAP requirement and system changes to get this done?

  • Sales order costing is not possible for recursive configurable material

    User is creating cost estimate for sales order, where system is throwing above error. The diagnosis is like below The system recognized that the BOM structure being costed is a recursive production process in which configurable materials are used. Th

  • Imovie sharing issue

    Hi all, I'm using OS X 10.9.4 and iMovie 10.0.4. None sharing option is working for me. I always get this: The operation couldn't be completed. (com.apple.Compressor.CompressorKit.ErrorDomain error -1.) Tried to google for an answer but nothing. Hope