XQuery in XSL

Hi,
I am using 11g. I need to perform complex transformation logic on my incoming message to transform it to outgoing message. I have been trying to do this via the XSL mapper without success. I was reading about Xquery and I have the following questions based on my understanding:
1) Is it possible to call Xquery from XSL?
2) Is it possible for Xquery to query XML A type and return the data in XML B type ?
3) Are there any alternative approaches to achieve the complex transformation within SOA suite?

Yes you can, what I do is use eclipse to implement the xquery as it has quite nice tooling. But you can you an IDE of your choice. JDev has limited support.
In BPEL you us an Assign activity and use the expression ora:processXQuery(template,context?), the template = the xquery file, e.g. test.xq and the context is the source variable.
cheers
James

Similar Messages

  • Stylesheet skipped with XQuery

    HI Gentlemen,
    I have a small XML project in JDeveloper with one XSQL page, a simple XQuery, an XSL stylesheet and two XML lookup tables. When I execute the XSQL page, I always get the following:
    <gnr xmlns="urn:ehd/go/001" V="01700V" USE="46" USE-DOMAIN="1.2.276.0.76.5.233" VT="2006-05-03"> <!-- Sektion allgemein --> <allgemein> <gueltigkeit> <service_tmr V="2006-07-01.."/> <effective_tmr V="2006-07-01.."/> </gueltigkeit> <legende> <kap_bez V="1.7" DN=
    ...with the source text being like
    &lt;gnr xmlns="urn:ehd/go/001" V="01700V" USE="46" USE-DOMAIN="1.2.276.0.76.5.233" VT="2006-05-03"&gt;
      &lt;!-- Sektion allgemein --&gt;
      &lt;allgemein&gt;
        &lt;gueltigkeit&gt;
          &lt;service_tmr V="2006-07-01.."/&gt;
          &lt;effective_tmr V="2006-07-01.."/&gt;
    ...The XQuery returns a pure subtree from an XMLTYPE table, and the two processing instructions are placed at the top of the XSQL page. Could you please tell me where am I wrong?
    Thank you very much, kind regards
    Miklos HERBOLY

    I found that error is coming from this line.
    <b><xsl:variable name="can-modify" select="/dashboard/@can-save|/dashboard/@can-saveas" /></b>
    can somebody suggest why this happening, same code works is weblogic 8.1 & give error in 9.1.
    -Rahul

  • How can an user defined Transaction type in Inventory be configured in IB?

    Need to know how to make an user defined transaction to update the status in IB automatically. i.e. suppose there is an user defined transaction "XYZ". I need to update the instance stause of an item to "CANCELLED" once that transaction happens on the item.
    Edited by: user13340970 on Aug 13, 2010 7:14 AM

    Hi Atheek,
    I was looking at doing the transform manually, but my challenge is how to parse the inbound String into XML Elements with their properties. For example:
    Example Message:
    <abd:TypedDocument>
    <abd:someElement>
    <abd:aString><jkl:embeddedMessage jkl:attributeABc="Hello There"><jkl:someOtherElement>OSB Rules!<jkl:someOtherElement><jkl:aNumber>123456</jkl:aNumber></jkl:embeddedMessage>
    </abd:aString>
    </abd:someElement>
    </abd:TypedDocument>
    If I get the value of the embedded XML as a string, how can I parse our or address the various elements and attributes in the embedded XML? I was hoping to use:
    $aString cast as jkl:embeddedMessage
    But on OSB10g this fails. Is there another way with XQuery or XSL to convert an embedded XML that comes in as a string, into a complex User-Defined type?
    Thanks,
    David.

  • SOA Suite 11g - Email with attachments (Attachment from SOAP attachment)

    Hello,
    Can any one please help as to how I can do the following in Oracle SOA 11g:
    Using a BPEL process how can I send an Email with attachments where the attachment itself is coming from a SOAP attachment.
    The back ground is that we have portal sites from where the users can upload a document and then from their a SOA service is invoked and the attachment would be passed as (SOAP attachments) and then emails have to be send to users containing this uploaded document as the attachment.
    Thanks.
    feel free to email me [email protected]

    Yes, I need all supported standards and their version of SOA Suite 11g because my customer wants to upgrade from 10g to 11g, especially all supported standards and version number of OBPM 11g and OBPM 10g.
    A people has pasted all support standards and version number of OBPM 10g. I get a standard list of OSB.
    OBPM 11g supports:
    BPEL
    xml 1.0
    Servlet 2.3\JSP1.2 (J2EE 1.2),
    Servlet 2.4\JSP2.0(J2EE 1.4),
    Servlet 2.5\JSP2.1(Java EE 1.5)
    UDDI
    SOAP
    WSDL
    WS-BPEL for People
    XML Schema
    XPDL
    SOAP
    XQuery
    XLIFF
    XSL map
    XSLT
    UML
    Ant
    EJB 2.1, JPA/EJB 3.0
    JAAS
    Spring
    JAXB 1.0, JAXB 2.0
    XHTML
    HTML
    JSP
    JSF
    JSR-168
    XSQL
    WS-Policy
    But I cannot find the document about version number of the above standards

  • Xquery ora:processXQuery() in XSL transformation

    Can we use Xquery ora:processXQuery() in XSL transformation?
    Thanks,
    Vivek

    <assign>
    <copy>
    <from expression="ora:processXQuery(query.xq',
    bpws:getVariableData('EmployeeTravelStatusRequest',
    'employee'))"/>
    <to variable="EmployeeTravelStatusResponse" part="employee"/>
    </copy>
    </assign>
    query.xq = the query code itself
    bpws:getVariableData('EmployeeTravelStatusRequest','employee') = the root element for the source payload
    EmployeeTravelStatusResponse" part="employee" = target root element.
    cheers
    James

  • OSB 11G xsl/xquery question in Proxy

    OSB 11G
    In Proxy, I have to invoke a business service which has 3 operations
    I need to use response of first 2 operations,as request to third operation along with some input xml to OSB Proxy.
    customer, group, severity are hard coded.(which will be input to OSB)
    How do I add/insert response from op1 after <string>customer</string> ??
    and response from op2 after <string>group</string> . ??
    <InvokecreateRequest_InputVariable>
    <part name="parameters" >
    <createRequest>
    <sid>1959439747</sid> // is resp from operation1, which is request to operations3
    <creatorHandle/>
    *<attrVals>* // this is array of string
    <string>customer</string>
    <string>cnt:08DF89FC07516A41B228587DBE75B6A7</string> //resp from op1, that has to be request to op3
    <string>group</string>
    <string>B79AAF63D870F845980A</string> //input to OSB
    <string>severity</string>
    <string>2</string> //input to OSB
    *</attrVals>*
    <propertyValues>
    <string/>
    </propertyValues>
    <template/>
    <attributes>
    <string>persistent_id</string>
    </attributes>
    </createRequest>
    </part>
    </InvokecreateRequest_InputVariable>
    Also, should I use assign or insert in Proxy ??

    Not sure exactly what you need, but here is a basic layout of what you need to do.
    Make a service callout to the first operation and save the response in a variable, for ex $resOne
    Then make a service callout to the second operation ans save the response in a variable for ex $resTwo.
    Now use a replace or assign action to create the request for the third operation:
    If you are using a Route action on Route node to call the third operation, you should use a replace action and replace the contents of $body with the XML content as needed. If you are going to use another service callout, then you should use an assign to create a request variable.
    In either case, this is what your XQuery should look like:
    <InvokecreateRequest_InputVariable>
    <part name="parameters" >
    <createRequest>
    <sid>{$resOne/ns:ElementName/ns:SID/text()}</sid>     // Here you will populate value from $resOne using a correct XPath
    <creatorHandle/>
    <attrVals>
    <string>customer</string>
    <string>cnt:08DF89FC07516A41B228587DBE75B6A7</string>
    {$resOne}    // here you are inserting the complete response from Operation one
    <string>group</string>
    {{$resTwo}    // here you are inserting the complete response from Operation Two, You can choose to populate these values separately inside variables like for SID above.
    <string>B79AAF63D870F845980A</string>
    <string>severity</string>
    <string>2</string> //input to OSB
    </attrVals>
    <propertyValues>
    <string/>
    </propertyValues>
    <template/>
    <attributes>
    <string>persistent_id</string>
    </attributes>
    </createRequest>
    </part>
    </InvokecreateRequest_InputVariable>

  • XSL transformation in OSB

    Hi all,
    I am new to OSB. I am having trouble to understand how to do XSL transformation in OSB.
    I have created a business service which targets wsdl with a particular schema for the input message. I have created a separate wsdl for the proxy service with another schema the input message.
    I have to invoke the business service from proxy service. For this, I have added a route node and then a routing activity. In the request line of the routing activity i have used an assign where i will use XSLT to map input message of the proxy wsdl to the input message of the business service.
    How do we access other variables when creating an XSLT?
    Is my approach to the problem correct?
    John

    Hi,
    I am doing that in an replace action.
    In my flow I have the proxy service, then a pipeline, then I have the route.
    In the pipeline I have replaced the input request using a XQuery transformation. When I test it, I see the input is coming till the route.
    But the same pay load is valid and workin if I pass it when I invoke the route service independently. when i use it in the flow its not working.
    Simply it says the system error
    Below is the complete trace data
    (receiving request)
    Initial Message Context
    added $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <proj:alertReportDataRequestMessage xmlns:proj="http://www.projgis.org/PROJGISMessageSchema">
    <proj:header>
    <proj:RequestId>3333</proj:RequestId>
    <proj:ReqTransactionId>333</proj:ReqTransactionId>
    <proj:ConsumerId>string</proj:ConsumerId>
    <proj:ReqTimestamp>2008-09-29T07:19:45</proj:ReqTimestamp>
    </proj:header>
    <proj:NameOfTenant>string</proj:NameOfTenant>
    <proj:AddressOfTenant>string</proj:AddressOfTenant>
    <proj:RentalAmount>string</proj:RentalAmount>
    <proj:StartDateOfRent>2014-09-19T04:48:33</proj:StartDateOfRent>
    <proj:EndDateOfRent>2006-08-19T22:57:14+05:30</proj:EndDateOfRent>
    <proj:SalesOfOrder>string</proj:SalesOfOrder>
    </proj:alertReportDataRequestMessage>
    </soapenv:Body>
    added $header
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    added $inbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsData" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insertClientReport</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsData
    </con:uri>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>
    "http://xmlns.bodhtree.com/GetRentalExpiryAlertsData/insertClientReport"
    </http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username><anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    added $messageID
    2570677769696620240-29ef401f.12cef26de6e.-7ef1
    PipelinePairNode1
    stage2
    Message Context Changes
    changed $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ins:ClientReportCollection xmlns:ins="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertClientReportTable">
    <ins:ClientReport>
    <ins:alertNo>1</ins:alertNo>
    <ins:tenentName>string</ins:tenentName>
    <ins:address>string</ins:address>
    <ins:rentalAmt>string</ins:rentalAmt>
    <ins:startDate>2014-09-19T04:48:33</ins:startDate>
    <ins:endDate>2006-08-19T22:57:14+05:30</ins:endDate>
    <ins:salesDocument>string</ins:salesDocument>
    <ins:transId>333</ins:transId>
    </ins:ClientReport>
    </ins:ClientReportCollection>
    </soapenv:Body>
    changed $inbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsData" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insert</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsDataPush
    </con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>
    "http://xmlns.bodhtree.com/GetRentalExpiryAlertsData/insertClientReport"
    </http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username><anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    changed $header
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    RouteNode1
    Routed Service
    Route to: "GetRentalExpiryAlertsDataPush"
    $outbound:
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsDataPush" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insertClientReport</con:operation>
    </con:service>
    <con:transport>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    </con:request>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>
    $body (request):
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ins:ClientReportCollection xmlns:ins="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertClientReportTable">
    <ins:ClientReport>
    <ins:alertNo>1</ins:alertNo>
    <ins:tenentName>string</ins:tenentName>
    <ins:address>string</ins:address>
    <ins:rentalAmt>string</ins:rentalAmt>
    <ins:startDate>2014-09-19T04:48:33</ins:startDate>
    <ins:endDate>2006-08-19T22:57:14+05:30</ins:endDate>
    <ins:salesDocument>string</ins:salesDocument>
    <ins:transId>333</ins:transId>
    </ins:ClientReport>
    </ins:ClientReportCollection>
    </soapenv:Body>
    $header (request):
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    $attachments (request):
    <con:attachments xmlns:con="http://www.bea.com/wli/sb/context"/>
    Message Context Changes
    added $outbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsDataPush" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insertClientReport</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsDataPush
    </con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">1</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>
    changed $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ins:ClientReportCollection xmlns:ins="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertClientReportTable">
    <ins:ClientReport>
    <ins:alertNo>1</ins:alertNo>
    <ins:tenentName>string</ins:tenentName>
    <ins:address>string</ins:address>
    <ins:rentalAmt>string</ins:rentalAmt>
    <ins:startDate>2014-09-19T04:48:33</ins:startDate>
    <ins:endDate>2006-08-19T22:57:14+05:30</ins:endDate>
    <ins:salesDocument>string</ins:salesDocument>
    <ins:transId>333</ins:transId>
    </ins:ClientReport>
    </ins:ClientReportCollection>
    </soapenv:Body>
    changed $inbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsData" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insert</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsDataPush
    </con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>
    "http://xmlns.bodhtree.com/GetRentalExpiryAlertsData/insertClientReport"
    </http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username><anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    changed $header
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    Service Error Handler
    $fault: <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380000</con:errorCode>
    <con:location>
    <con:node>RouteNode1</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    System Error Handler
    $fault: <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380000</con:errorCode>
    <con:location>
    <con:node>RouteNode1</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    Is there any place where I can refer how to work with passing data from current flow to the next flow.
    Do i need to do the transformation before invoking the route, or inside the route service request pipeline?
    Do I need to change the method, URI etc as wells? before invoking the routing?
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to get Database functions into xquery/XSLT in OSB 12c

    Hello All,
    How to make use of  functions orcl:sequence-next-val and orcl:query-database in xslt/xquery in OSB 12c.
    I need to do the below logic in xslt/xquery and used it in replace activity . But in OSB 12c I don't see these function. Request to provide me the solution to do it in OSB.
    XSLT in SOA
    <xsl:when test="/ns0:CreateEvent/ns0:Header/header:SourceName != &quot;&quot;">
                <ns1:googleEventSourceId>
                  <xsl:value-of select="orcl:query-database(concat(&quot;select google_event_source_id from enterprise.google_event_source where google_event_source=&quot;,&quot;'&quot;,/ns0:CreateEvent/ns0:Header/header:SourceName,&quot;'&quot;),false(),false(),&quot;jdbc/PRDatasource&quot;)"/>
                </ns1:googleEventSourceId>
              </xsl:when>
    <ns1:googleMapEventId>
              <xsl:value-of select="orcl:sequence-next-val(&quot;enterprise.google_map_event_seq&quot;,&quot;jdbc/PRDatasource&quot;)"/>
            </ns1:googleMapEventId>
    please see below code is just part of my transformation.
    Regards,
    TJ.

    bump

  • Xsl/stylesheet transformation problem in soap response(usinf xmlx-tags.tld)

    Hi,
    I have problem in transforming the soap response using xmlx-tags.tld.....
    I was not able to read the <EmpName> value from the returned xml...
    The stylesheet / xsl does not return any elements if I use other then "/" in match
    attribute : <xsl:template match="/">
    here is my soap call and stylesheet in JSP:
    <x:xslt media="html">
    <x:xml>
    <ws:soap ttl="360000">
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    ... making soap call here...
    </soap:Body>
    </soap:Envelope>
    </ws:soap>
    </x:xml>
    <x:stylesheet media="html">
    <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
    <xsl:output method="xmll" omit-xml-declaration="no"
    doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" indent="yes" />
    <xsl:template match="GetEmpResult">
    <html>
    <body>
    Result: <B>Symbol <xsl:value-of select="EmpName"/></B>
    </body
    </html>
    </xsl:stylesheet>
    </x:stylesheet>
    </x:xslt>
    the SOAP response looks like this:
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetEmpResponse xmlns="http://ws.cdyne.com/">
    <GetEmpResult>
    <EmpID>string</EmpID>
    <EmpName>string</EmpName>
    <SalAmount>decimal</SalAmount>
    <Error>boolean</Error>
    </GetEmpResult>
    </GetEmpResponse>
    </soap:Body>
    </soap:Envelope>
    I tried all the possibilities of template matches, but not succeeded....
    Can somebody help me the correct <xsl:template> to access EmpName from the above
    SOAP responses...
    regards
    Vijay

    Hi,
    Dynamic xslt are not quite supported in OSB, there are some approaches that may be helpful for your case though...
    Have a look at these...
    http://atheek.wordpress.com/2011/12/21/using-xalanevaluate-to-parametrize-xpath/
    http://beatechnologies.wordpress.com/2010/12/01/dynamic-xquery-in-oracle-service-bus/
    Let me know how you go...
    Cheers,
    Vlad

  • Using xsl document function in transform xsl

    I'm trying to use an external xml document in an xsl transform that's used in a Transform activity in an 11g BPEL process:
    <xsl:variable name="plants" select="document('plantTransposeLookup.xml')/plants"/>
    I need to load up the document to use it in a lookup to get replacement values for a key.
    This works fine in JDev, but not when I deploy it to the server.
    The error I get when I run it is:
    The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: XML-22021: (Error) Error parsing external document: 'no protocol: plantTransposeLookup.xml'.. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    I've also gotten:
    The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: XML-22021: (Error) Error parsing external document: 'Unsupported feature: 'document(''), when stylesheet built using InputStream, Reader'.
    I've also tried using the ora:doc function:
    <xsl:variable name="plants" select="ora:doc('plantTransposeLookup.xml', 'plants')"/>
    ......but this doesn't work in JDev and is also erroring off on the server with:
    The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: XML-22016: (Error) Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    Does anyone know how to actually import an xml doc into a mapper??? I must be doing something stupid.
    Thanks for any help.

    In OSB, document() function needs absolute path of the XML file. So if you want to access the XML document for lookup, you need to put the XML file on the server itself and use the path of the XML file.
    Although this is not a correct approach for managing lookups in OSB. The resource of XML Document type are not to be used for such use cases. What you can do is create a XQuery which can server as DVM.
    Here is an example on how to use DVMs in OSB:
    https://blogs.oracle.com/christomkins/entry/domain_value_maps_in_oracle_se
    If you dont want to use XQuery and want to rely only on XSLT, then within the same XSLT document create a separate template which can store all the lookup data.

  • 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

  • Strip empty namesapces from XML using Xquery/Xslt- xmlns=""

    Hi,
    Can you please tell me what is the xquery/xslt snippet to remove empty namespaces exist in an xml file.
    <date xmlns="">20111006</date>
    to
    <date>20111006</date>
    Thanks.
    Edited by: user12679330 on 05-Oct-2011 23:32
    Edited by: user12679330 on 06-Oct-2011 00:06

    here is the xsl snippet, after struggling for more time, did it.. Thanks All
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="@* | node()">
    <xsl:if test="name()!='date'">
    <xsl:copy>
    <xsl:apply-templates select="@* | node()" />
    </xsl:copy>
    </xsl:if>
    <xsl:if test="name()='date'">
    <date>
    <xsl:value-of select="."/>
    </date>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>

  • 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

  • Accessing lookup table from XSL stylesheet

    HI Gentlemen,
    Given two XMLTYPE tables: a Master and a Lookup. The Lookup table consists merely of {key, value} pairs. I am about to display Master table contents--subtrees selected from one big XMLTYPE column. The display process is governed by an appropriate XSL stylesheet. Master table elements have data only in their attributes. For example: <time U="2"/> which means that the value of the Unit attribute is 2, meaning "Minute" according to the Lookup table.
    My question is: Does anybody of you know a fast and safe method to SELECT from the Master AND Lookup (inner join, as in a pure relational environment), thereby REPLACING the key value with its MEANING (textual interpretation). This would be extremely important as numeric codes do not have meaning to the user. User-friendly behavior requires that all important information be displayed at once. (Note that I have nothing against modifying my stylesheet to query the Lookup table as well, if no straightforward master-detail querying technique exists.)
    Please give me an idea if you have.
    Thank you in advance, kind regards:
    Miklos HERBOLY

    HI odie,
    Here is the stuff you requested. I admit, it is fairly abundant, but you will see the structure and the main points. Some of the elements are multiple-occurrence, hence the XMLTABLE() solution was no good because of the large number of generated rows. The stylesheet would be ideal to display embedded "nested collections".
    Please let me know if you have anything for me.
    Thanks, regards
    Miklos
    HERE ARE THE XMLTYPE MASTER TABLE CONTENTS. TABLE IS NON-SCHEMA-BASED.
    =====================================================================
    SQL> select * from z;
    XML_DOCUMENT
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <?xml-stylesheet type="text/xsl" href="file://c:/XSL/ziffer.xsl"?>
    <ehd:ehd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ehd/go/001" xmlns:ehd="urn:ehd/001" ehd_versio
    n="1.20">
    <ehd:header>
    <ehd:id EX="E7F454A3-0F6E-460e-A495-BBBBBBBBBBB3" RT="1.2.276.0.76.3.1.1"/>
    <ehd:version_nbr V="1"/>
    <ehd:document_type_cd V="851"/>
    <ehd:service_tmr V="2006-07-01..2007-12-31"/>
    <ehd:origination_dttm V="2006-05-03"/>
    <ehd:provider>
    <ehd:provider.type_cd V="KV" S="1.2.276.0.76.5.104" SV="1.0"/>
    <ehd:person>
    <ehd:id EX="3223" RT="2.3.5.3.T.e.s.t" RTV="1.10"/>
    <ehd:person_name>
    <ehd:nm>
    <ehd:GIV V="Hans"/>
    <ehd:PFX V="von"/>
    <ehd:FAM V="Mustermann"/>
    </ehd:nm>
    </ehd:person_name>
    <ehd:organization.nm V="KV Hessen"/>
    <ehd:addr>
    <ehd:STR V="Ottostr."/>
    <ehd:HNR V="12"/>
    <ehd:ZIP V="50859"/>
    <ehd:CTY V="Köln"/>
    </ehd:addr>
    <ehd:telecom V="tel:030-4005-2121 begin_of_the_skype_highlighting              030-4005-2121      end_of_the_skype_highlighting begin_of_the_skype_highlighting              030-4005-2121      end_of_the_skype_highlighting"/>
    </ehd:person>
    <ehd:organization>
    <ehd:id EX="46" RT="1.2.276.0.76.5.233"/>
    </ehd:organization>
    </ehd:provider>
    <ehd:interface>
    <ehd:id EX="SDEBM" RT="1.2.276.0.76.5.109" RTV="1.0"/>
    <ehd:interface.nm V="Gebührenordnungsstammdatei / Satzart 851"/>
    <ehd:version V="01.30"/>
    </ehd:interface>
    </ehd:header>
    <ehd:body>
    <gnr_liste>
    <gnr V="01700V" USE="46" USE-DOMAIN="1.2.276.0.76.5.233" VT="2006-05-03">
    <allgemein>
    <gueltigkeit>
    <service_tmr V="2006-07-01.."/>
    <effective_tmr V="2006-07-01.."/>
    </gueltigkeit>
    <legende>
    <kap_bez V="1.7" DN="Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregelun
    g und Schwangerschaftsabbruch (vormals Sonstige Hilfen)">
    <bereich V="II" DN="Arztgruppenübergreifende allgemeine Leistungen"/>
    <kapitel V="1" DN="Allgemeine Leistungen"/>
    <abschnitt V="7" DN="Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregel
    ung und Schwangerschaftsabbruch (vormals Sonstige Hilfen)"/>
    </kap_bez>
    <kurztext V="Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a."/>
    <langtext V="Grundpauschale für Fachärzte für Laboratoriumsmedizin, Mikrobiologie und Infektionsepidemiologi
    e, Transfusionsmedizin und ermächtigte Fachwissenschaftler der Medizin für die Erbringung von Laborleistungen gemäß den
    Richtlinien des Gemeinsamen Bundesausschusses über die ärztliche Betreuung während der Schwangerschaft und nach der En
    tb indung (Mutterschafts-Richtlinien) und/oder der Richtlinien des Gemeinsamen Bundesausschusses zur Empfängnisregelung
    und zum Schwangerschaftsabbruch bei Probeneinsendung, "/>
    <quittungstext V="Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a."/>
    </legende>
    <anmerkungen_liste>
    <anmerkung V="Die Leistung nach der Nr. 01100 ist nicht berechnungsfähig, wenn Sprechstunden vor 07:00 Uhr o
    der nach 19:00 Uhr stattfinden oder Patienten zu diesen Zeiten bestellt werden."/>
    <anmerkung V="Im Rahmen der unvorhergesehenen Inanspruchnahme des Vertragsarztes ist die Leistung nach der N
    r. 01100 auch dann nur einmal berechnungsfähig, wenn es sich um eine Gruppenbehandlung handelt."/>
    <anmerkung V="Die Leistung nach der Nr. 01100 ist ausschließlich bei kurativer Behandlung berechnungsfähig."
    />
    </anmerkungen_liste>
    <leistungsinhalt>
    <komplex V="OBLIGAT">
    <leistung V="Persönlicher Arzt-Patienten-Kontakt im organisierten Not(fall)dienst"/>
    </komplex>
    <komplex V="FAKULTATIV">
    <leistung V="Beratung und Behandlung bis zu 10 Minuten Dauer,"/>
    <leistung V="2...Beratung und Behandlung bis zu 10 Minuten Dauer,"/>
    <leistung V="3...Beratung und Behandlung bis zu 10 Minuten Dauer,"/>
    </komplex>
    <komplex V="FAKULTATIV">
    <leistung V="In Anhang 1 aufgeführte Leistungen,"/>
    </komplex>
    </leistungsinhalt>
    <bewertung_liste>
    <bewertung V="5595" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="1" S="1.2.276.0.76.5.234" SV="1.02"/>
    <leistung_typ V="GL"/>
    </bewertung>
    <bewertung V="2797.5" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="2" S="1.2.276.0.76.5.234" SV="1.02"/>
    <leistung_typ V="GL"/>
    </bewertung>
    </bewertung_liste>
    <zeitbedarf_liste>
    <zeit V="21" U="2" U-DOMAIN="1.2.276.0.76.5.238">
    <leistung_typ V="AL"/>
    </zeit>
    </zeitbedarf_liste>
    <pruefzeit V="1" U="2" U-DOMAIN="1.2.276.0.76.5.238">
    <zeitprofilart V="3" S="1.2.276.0.76.5.228" SV="1.00"/>
    </pruefzeit>
    <rlv V="0" S="1.2.276.0.76.5.241" SV="1.00"/>
    <leistungsgruppe V="10" S="1.2.276.0.76.5.227" SV="1.00"/>
    </allgemein>
    <bedingung>
    <fachgruppe_liste V="true">
    <versorgungsbereich V="2" S="1.2.276.0.76.5.237" SV="1.01">
    <fachgruppe V="110" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="111" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="112" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="303" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="357" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="501" S="1.2.276.0.76.5.114" SV="1.00"/>
    <fachgruppe V="532" S="1.2.276.0.76.5.114" SV="1.00"/>
    </versorgungsbereich>
    </fachgruppe_liste>
    <anzahlbedingung_liste>
    <bezugsraum V="1" U="7" U-DOMAIN="1.2.276.0.76.5.226">
    <anzahl V="1"/>
    </bezugsraum>
    </anzahlbedingung_liste>
    <abr_best V="je Behandlungsfall mit Auftragsleistung(en) der Abschnitte 1.7.4 und/oder 1.7.5"/>
    </bedingung>
    <regel>
    <ausschluss_liste>
    <bezugsraum V="1" U="7" U-DOMAIN="1.2.276.0.76.5.226">
    <gnr_liste V="false">
    <gnr V="12220" DN="Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a."/>
    <gnr V="12225" DN="Grundpauschale für Vertragsärzte aus nicht in der Nr. 12220 aufgeführten Arztgruppen
    bei Probeneinsendung"/>
    </gnr_liste>
    </bezugsraum>
    </ausschluss_liste>
    </regel>
    <kv V="46" S="1.2.276.0.76.5.233" SV="1.01">
    <kennzeichen>
    <arztpraxis V="1"/>
    </kennzeichen>
    <kv_bewertung_liste>
    <kv_bewertung V="100" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="2" S="1.2.276.0.76.5.234" SV="1.02"/>
    </kv_bewertung>
    <kv_bewertung V="150" U="1" U-DOMAIN="1.2.276.0.76.5.236">
    <leistungserbringerart V="1" S="1.2.276.0.76.5.234" SV="1.02"/>
    </kv_bewertung>
    </kv_bewertung_liste>
    </kv>
    <vdx>
    <gkv_kontenart_liste>
    <gkv_kontenart V="530" S="1.2.276.0.76.5.258"/>
    <gkv_kontenart V="463" S="1.2.276.0.76.5.258"/>
    </gkv_kontenart_liste>
    </vdx>
    </gnr>
    </gnr_liste>
    </ehd:body>
    </ehd:ehd>
    1 Zeile wurde ausgewählt.
    SQL> spool off
    ==========================
    HERE IS THE XQUERY COMMAND
    ==========================
    <?xml version="1.0" encoding='windows-1252'?>
    <!--
    | Uncomment the following processing instruction and replace
    | the stylesheet name to transform output of your XSQL Page using XSLT
    <?xml-stylesheet type="text/xsl" href="YourStylesheet.xsl" ?>
    -->
    <page xmlns:xsql="urn:oracle-xsql" connection="gksconnection">
    <xsql:query xmlns:xsql="urn:oracle-xsql">
    SELECT XMLQuery('xquery version "1.0";
    declare namespace n1="urn:ehd/001";
    declare namespace n2="urn:ehd/go/001";
    let $i := /n1:ehd/n1:body/n2:gnr_liste/n2:gnr
    where $i[@n2:V = "01700V"]
    return $i'
    PASSING xml_document
    RETURNING CONTENT)
    FROM z
    </xsql:query>
    </page>
    ======================
    HERE IS THE STYLESHEET - relevant part only
    ======================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ehd="urn:ehd/001" xmlns:pe="urn:ehd/go/001">
    <xsl:output method="html"/>
    <xsl:template match="pe:gnr">
    <html>
    <head>
    <title>EBM Ziffer</title>
    <style type="text/css">
    table
    border-collapse:collapse;
    table, td, th
    border:1px solid black;
    </style>
    </head>
    <body style="font-family:verdana;color:black">
    <h2><xsl:text>Ziffer: </xsl:text>
    <xsl:value-of select="@V"/>
    </h2>
    <table border="1">
    <tr>
    <td><xsl:text>KV</xsl:text></td>
    <td><xsl:value-of select="@USE"/></td>
    </tr>
    <tr>
    <td><xsl:text>Gültigkeit</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:gueltigkeit/pe:service_tmr/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bezeichnung Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bereich</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Abschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:abschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Unterabschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:uabschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Block</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:block/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kurztext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kurztext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext (Fortsetzung)</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext_continued/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Quittungstext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:quittungstext/@V"/></td>
    </tr>
    </table>
    <!-- Anmerkungen-Liste -->
    <h4><xsl:text>Anmerkungen</xsl:text></h4>
    <table border="1">
    <xsl:for-each select="pe:allgemein/pe:anmerkungen_liste/pe:anmerkung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Leistungsinhalt-->
    <h4><xsl:text>Leistungsinhalt</xsl:text></h4>
    <table border="1" >
    <tr>
    <th><xsl:text>Komplex</xsl:text></th>
    <th><xsl:text>Leistung</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:leistungsinhalt/pe:komplex">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td>
    <xsl:for-each select="pe:leistung">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Bewertungsliste -->
    <h4><xsl:text>Bewertungen</xsl:text></h4>
    <table border="1">
    <tr>
    <th><xsl:text>Bewertung</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Gebührenordnung</xsl:text></th>
    <th><xsl:text>Leistungserbringerart</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    <th><xsl:text>Versorgungsgebiet</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:bewertung_liste/pe:bewertung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
         <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:gebuehrenordnung/@V"/></td>
    <td><xsl:value-of select="pe:leistungserbringerart/@V"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    <td><xsl:value-of select="pe:versorgungsgebiet/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Zeitbedarfliste -->
    <h4><xsl:text>Zeitbedarfliste</xsl:text></h4>
    <table border="1">
    <tr>
    <th><xsl:text>Zeit</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:zeitbedarf_liste/pe:zeit">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    =====================================
    THE REQUESTED SAMPLE LOOKUP TABLE FOR TIME UNITS
    =====================================
    <keytabs>

    <keytab S="1.2.276.0.76.5.238" SN="S_KBV_ZEITEINHEIT" SV="1.00">
    <key V="1" DN="Sekunde" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="2" DN="Minute" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="3" DN="Stunde" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="4" DN="Tag" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="5" DN="Woche" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="6" DN="Monat" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="7" DN="Quartal" S="1.2.276.0.76.5.238" SV="1.00"/>
    <key V="8" DN="Jahr" S="1.2.276.0.76.5.238" SV="1.00"/>
    </keytab>
    </keytabs>
    ==================================================================================================
    And this is, from an earlier trial with XMLTABLE() what I become when stylesheet is commented out. Only for your information here!
    Due to the three "Anmerkung" three rows were generated. What is this notation? I got it when
    executing the XSQL sheet without stylesheet. Produced by the browser.
    I can not find any info in the whole web.
    ==================================================================================================
    <!--
    <?xml-stylesheet type="text/xsl" href="untitled1.xsl" ?>
    -->
    <page>
    <ROWSET>
    <ROW num="1">
    <ZIFFER>01700V</ZIFFER>
    <GUELTIGKEIT>2006-07-01..</GUELTIGKEIT>
    <KAP_NR>1.7</KAP_NR>
    <KAP_BEZ>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregelun g und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </KAP_BEZ>
    <BEREICH_NR>II</BEREICH_NR>
    <BEREICH>Arztgruppenübergreifende allgemeine Leistungen</BEREICH>
    <KAPITEL_NR>1</KAPITEL_NR>
    <KAPITEL>Allgemeine Leistungen</KAPITEL>
    <ABSCHNITT>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregel ung und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </ABSCHNITT>
    <KURZTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </KURZTEXT>
    <LANGTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin, Mikrobiologie und Infektionsepidemiologi e, Transfusionsmedizin und ermächtigte Fachwissenschaftler der Medizin für die Erbringung von Laborleistungen gemäß den Richtlinien des Gemeinsamen Bundesauss
    </LANGTEXT>
    <QUITTUNGSTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </QUITTUNGSTEXT>
    <ANMERKUNG>
    Die Leistung nach der Nr. 01100 ist nicht berechnungsfähig, wenn Sprechstunden vor 07:00 Uhr oder nach 19:00 Uhr stattfinden oder Patienten zu diesen Zeiten bestellt werden.
    </ANMERKUNG>
    </ROW>
    <ROW num="2">
    <ZIFFER>01700V</ZIFFER>
    </ROW>
    </ROWSET>
    </page>

  • Xquery vs XSLT

    Hi!
    I am new in ALSb 2.6 And I have a a question: wich language for do the transformations is better? Xquery or XSLT?

    For xsl development you could also use the xsl mapper from jdeveloper, but then you will be using 2 ide's for a small part of of development.
    Both the xquery mapper from workshop studio and the xsl mapper from jdeveloper are really easy to use.
    In xquery you can easily add more functions in your xquery, you can put more functionality in it if you ask me

Maybe you are looking for

  • Questions on punch in and mix down

    i've been using vers 1.5 and it seems a lot simpler to use. after punching in and want to keep the take- how do you put it in the track. another question i would like to mix my vocal to another track in multi track that i have added a fx to, i don't

  • Question about initial installation: WRT54GS

    Greetings! I am trying to install a WRT54GS... I have a Motorola SBV4200 Cable Modem (using RoadRunner) hooked into my desk-top PC... Here's what I'm finding: I plug everything in, and hit the "Secure Easy Setup" button on the Linksys, and then my la

  • Dark outline of pixels around images in PDF

    When saving a pdf from Illustrator,  close cropped PSD images have a dark edge of pixels in the final PDF. It looks like a black outline when viewed in Acrobat. I have since found if I flatten the transparency before saving as a PDF , it displays fin

  • Cannot generate accounting doc when creating billing doc

    When creating billing doc, no accounting document is generated, the posting status is "Error in accounting interface". I have checked and there is no problem in account determination. Does anyone get idea on this problem? Thanks!

  • JTabbed Pane close icon help

    Hi I am trying to create a close icon on my JTabbedPane tabs, so i wrote an closeiconTab class extedning Icon and implements MouseListener, whenever a click is observered, i kill the a tab. But this method gives me an arrayoutofbound exception error,