How to debug AIA XSLT transformation in Jdeveloper ?
Hi AIA forum members,
I need to Test and debug an AIA XSL transformation. Can i use Jdeveloper to do this ?
I understand that we can test by right clicking and using the "Test" option but then again it fails while processing the XSL as it is unable to execute lookupXRef, lookupDVM and also is not able to recognise the oracle xpath extension functions.
Rgds,
Vik
Hi Vik,
If you are on 10g, I suggest you run a search on Metalink for AIA Jdeveloper Patch download. Install the patch for Jdeveloper on windows and then you should be able to test the XSLs.
If its on 11g, am not sure, as I have just started looking for that patch.
Cheers,
- AR
Similar Messages
-
How to apply an XSLT transformation in OSB
Hello all ,
I tried to made a simple example - that apply a simple XSLT transformation in OSB .
I followed the http://blog.jayway.com/2010/05/07/xslt-transformations-in-oracle-service-bus/ example but still is not working in my project .
If I apply the imported xslt over the xml in testing window is working fine .
But the action to replace the content of the xml with the new one is not working.
Here is the xslt
<xsl:template match="/">
<ns0:donateToFund>
<arg0>
<xsl:value-of select="/Report/CustomerName"/>
</arg0>
<arg1>
<xsl:value-of select="/Report/CustomerNumber"/>
</arg1>
<arg2>
<xsl:value-of select="/Report/ReportName"/>
</arg2>
</ns0:donateToFund>
</xsl:template>
and here is a xml sample
- <Report>
<ReportName>Customer Report</ReportName>
<CustomerName>XXX</CustomerName>
<CustomerNumber>3423</CustomerNumber>
<GeneratedDate>2010-11-25 08:15:24.695</GeneratedDate>
- <Rowset>
- <Row>
<Quantity>100154</Quantity>
<CustomerPartNo>ee</CustomerPartNo>
<eSiliconPartNo>ee</eSiliconPartNo>
<Sector>ee</Sector>
<Location>eee</Location>
</Row>
- <Row>
In my action I put /Report as XPath ; body as variable and XSL fro transformation .
Can anyone help to fix this ?
Many thanks in advance,
StefanFollowing works for me:
XSLT
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/" xmlns:ns0="http://tempuri.org">
<ns0:donateToFund>
<arg0>
<xsl:value-of select="/Report/CustomerName"/>
</arg0>
<arg1>
<xsl:value-of select="/Report/CustomerNumber"/>
</arg1>
<arg2>
<xsl:value-of select="/Report/ReportName"/>
</arg2>
</ns0:donateToFund>
</xsl:template>
</xsl:stylesheet>Input to Proxy
<Report>
<ReportName>Customer Report</ReportName>
<CustomerName>XXX</CustomerName>
<CustomerNumber>3423</CustomerNumber>
<GeneratedDate>2010-11-25 08:15:24.695</GeneratedDate>
<Rowset>
<Row>
<Quantity>100154</Quantity>
<CustomerPartNo>ee</CustomerPartNo>
<eSiliconPartNo>ee</eSiliconPartNo>
<Sector>ee</Sector>
<Location>eee</Location>
</Row>
<Row>
<Quantity>100154</Quantity>
<CustomerPartNo>aa</CustomerPartNo>
<eSiliconPartNo>aa</eSiliconPartNo>
<Sector>aa</Sector>
<Location>aaa</Location>
</Row>
</Rowset>
</Report>Output of Proxy:
<ns0:donateToFund xmlns:ns0="http://tempuri.org">
<arg0>XXX</arg0>
<arg1>3423</arg1>
<arg2>Customer Report</arg2>
</ns0:donateToFund>I am using a single Replace action in the request pipeline.
It works for both configs below:
Replace [ entire node ] of [ ./* ] in [ body ] with [Xslt Resource: default/OTN/temp
Input Document: $body/Report
Variable Names And Bindings ]
Or
Replace [ Node Contents ] of [ . ] in [ body ] with [Xslt Resource: default/OTN/temp
Input Document: $body/Report
Variable Names And Bindings ]
You need to ensure that if you are doing replace entire node of . in body or / in body then you should replace it with an XML whose root node is soap:Body. To achieve that you will need to change the XSL and add soap:Body as root of the output. Easier solution is to use replace contents of . body or replace entire node of ./* in body. -
How to Debug a Java bean In Jdeveloper 3.2
I want to debug my java Bean in Jdeveloper Environment.
When I click on debug option Nothing happens .can some body provide me some guidance hereSameera,
You can create a "Custom Project" which is equivalent to "Generic Project".
-Arun -
How can I display XSLT transformer errors on a web page ?
Hi,
I have some JSP pages that access DB, create an XML based on DB data and then transform it into HTML through an XSLT stylesheet. Developing the XSL code it's easy to make mistakes and generate errors on trasformation, but what I receive on the web page is only a "Could not compile stylesheet" TransformerConfigurationException, while the real cause of the error is displayed only on tomcat logs. This is the code for transformation:
static public void applyXSLT(Document docXML, InputStream isXSL, PrintWriter pw) throws TransformerException, Exception {
// instantiate the TransformerFactory.
TransformerFactory tFactory = TransformerFactory.newInstance();
// creates an error listener
XslErrorListener xel = new XslErrorListener();
// sets the error listener for the factory
tFactory.setErrorListener(xel);
// generate the transformer
Transformer transformer = tFactory.newTransformer(new SAXSource(new InputSource(isXSL)));
// transforms the XML Source and sends the output to the HTTP response
transformer.transform(new DOMSource(docXML), new StreamResult(pw));
}If an exception is thrown during the execution of this code, its error message is displayed on the web page.
This is the listener class:
public class XslErrorListener implements ErrorListener {
public XslErrorListener() {
public void warning(TransformerException ex) {
// logs on error log
System.err.println("\n\nWarning on XEL: " + ex.getMessage());
public void error(TransformerException ex) throws TransformerException {
// logs on error log
System.err.println("\n\nError on XEL: " + ex.getMessage());
// and throws it
throw ex;
public void fatalError(TransformerException ex) throws TransformerException {
// logs on error log
System.err.println("\n\nFatal Error on XEL: " + ex.getMessage());
// and throws it
throw ex;
}When I have an error in the XSL stylesheet (for examples a missing closing tag), I can find on tomcat logs the real cause of the error:
[Fatal Error] :59:10: The element type "table" must be terminated by the matching end-tag "</table>".
Error on XEL: The element type "table" must be terminated by the matching end-tag "</table>".but on my web page is reported just the TransformerConfigurationException message that is:
"Could not compile stylesheet".
How can I display the real cause of the error directly on the web page?
Thanks,
AndreaThis code is part of a bigger project that let developers edit XSL stylesheets through a file upload on the system and we can't impose the use of any tool for checking the xsl. So, I need to display the transformer error on the web page.I see. This code is part of an editorial/developmental tool for developers to create and edit XSL stylesheets.
As part of the editorial process, XSL errors during editing can be considered a normal condition. In other words, it is normal to expect that the developers will generate XSL errors as they are developing stylesheets.
In this light, handling the XSL transformation errors is a business requirement that you need to handle. Using the Java Exceptions mechanisms, e.g. try / catch are inappropriate to handle business requirements, in my opinion.
I suggest that you look at how you handle the occurence of XSL errors differently than what you currently have. You need to:
(1) capture the Transformation exception on the server;
(2) extract the message from the exception and put it into a message that can be easily understood by the user;
The current error message that you have going to the web browser is not useful.
And you should not have the Transformation exception sent to the web browser either.
What you are attempting to do with the exception is not appropriate.
Handle the Transformation exception on the Business tier and use it to create a useful message that is then sent to the Presentation tier. In other words, do not send Java exceptions to web browser.
/> -
How to debug jsr 168 portlet in jdeveloper 10.1.3.4
Does anyone know how to locally debug a jsr 168 portlet in jdeveloper 10.1.3.4.
When I click on run it asked for a start page so I supply the view.jsp page.
The following error occurs on the page:
500 Internal Server Error
java.lang.NullPointerException at helloworld.html._view._jspService(_view.java:61) [helloworld/html/view.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.4.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
This is the first jsr 168 portlet I have tried.
Previously we have been created portlets using the Oracle PDK. Those portlets are easy to debug because the wizard creates an index.jsp page for the start page.
If anyone can provide some insight to my issue it would be greatly appreciated.
Thanks,Is this a portlet you built from scratch using the JSR 168 APIs, or is this a JSF Portlet using the JSF Portlet Bridge. If the latter, you can debug your JSF application. If the former, you can do remote debugging (let me know if you need information on this).
Hope this helps,
Peter -
Now I use XSLT to transform xml.I meet many problem.I can't find a best way to debug my program.
who can help me? thanks.A lot of people use XMLSpy, I hear.
-
How to perform an xslt transformation on an xml document dynamically ?
Hi all,
I'd like to perform an xslt tranformation on a dynamically generated xml code. I'm looking for a tag which can by useful for it. The tag should take both xml code and xslt code, passed as String arguments (not as names of xml and xslt files). I tried to use xtags library and jstl:transform tag but it did not work. It worked only with plain xml code passed to x-tag. When I try to perform a transformation on a tag body containing an output text tag, the transformation formats only this tag, not its content.
For example:
<xtags:style xslt="xslName.xsl">
<h:outputText value="#{beanName.stringPropertyName}"/>
</xtags:style>
Thanks in advance
Message was edited by:
opadThe issue is in the logic f your XSL mapping.
Use the same source XML and use it with XML Spy to debug why it is not working as you want it to.
Regards
Bhavesh -
Like NetBeans how to debug a BPM process in Jdeveloper with breakpoint,step by step?
As per Shay's inputs, can you post the question in BPM forums?
Business Process Management Suite
Thanks,
Navaneeth -
How to debug a BPM process In Jdeveloper10g or Jdeveloper11g
Like NetBeans how to debug a BPM process in Jdeveloper with breakpoint,step by step?
As per Shay's inputs, can you post the question in BPM forums?
Business Process Management Suite
Thanks,
Navaneeth -
Debugging a Web service with JDeveloper 902
JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
However, after deploying a Web service, even its screen output is hidden.
My problem is how to debug a Web service with JDeveloper?JDeveloper (902) is the major development tool in my project, and till now we used RMI for remote function calls. We are considering to use SAOP instead.
I've installed JWSDP and I manage to run SOAP based Web service with Tomcat.
However, after deploying a Web service, even its screen output is hidden.
My problem is how to debug a Web service with JDeveloper? -
Hello,
I am getting issue in BPEL code while executing XSLT file. If I have performed the 10 mappings in XSLT file and one of them has error in assigning source to target values. Its just mentioned that following XSLT file has error and doesn't mention the exact line where the error has been occured.
Any best way to debug XSLT so it can provide the exact error ?
ThanksYes, It is the part of BPEL. But I am using Oracle SOA 10 g. Can you please elaborate how can I debug the XSLT is BPEL using BPEL Console in 10g ?? Actually when I am getting issue in XSLT, it's hard to find out where I am having the problem. If I am performing more than 20 transformation in XSLT file it's impossible for me to highlight the exact line where I have an issue.
Thanks -
How to activate New Editor for XSLT Transformations?
Hello Everyone!
I am currentlyworking on some Simple Transformations (Txn STRANS). As I am very happy with the New Frontend Editor, I would like to use the new Editor for editing Simple Transformations, like I do, when editing usual ABAP Code.
Where can I activate the New Editor fpr XSLT Programs? I have already set the Flag to use the new editor when editing ABAP Code, but this Flag unfortunately has to influence on the editor used for XSLT programs... ;-(
Greetings
--MIKEHi all,
How to use conditions in XSLT Transformation,
Thanks
Reddy.n.l -
How to debug JSP in JDeveloper
I want to debug a JSP page in JDeveloper. I have put break point in jsp page, but when called from browser, control does not stop at break point in JSP. Please suggest, how to debug a JSP page in JDeveloper
You might use logging, log4j or standard jdk , <c:out> or even good old scriptlets <% ..%>and out.println(); to display the values of the variables that interest you.
Consult for instance chapter 14 of Beginning JSP, by Wrox, or any other equivalent.
NA
[http://nickaiva.blogspot.com/] -
How to generate XSL for an XML file to use it for XSLT transformation -SSIS?
Hi All,
Can anybody please help me to generate XSL for my attached XML file?
I need to use the XSL file for XSLT transformation.
Thanks & Regards,
SriHi Vibhav,
Thanks for the response.
I am aware of the process but not sure how to generate XSL file.
Can you please refer me to any tool which can convert XML to XSL? or please can you transform my simple XML to XSL?
Thanks & Regards,
Sri -
BI Admin Tool and XSLT transformation for XML data source - How it works ?
Hello,
There is a possibility to import data from XML data source using BI Admin Tool.
In the import window we can point XSLT file. What is the purpose of that XSLT field?
Why I am asking ?
I thought it is smth like XSLT processor, but simply it doesnt work.
What I did:
- I pointed XML data source file
- I pointed XSLT transformation file
- Click OK, and still get the message that the XML file structure is not supported
After that I transformed that XML file with some desktop XSLT processor using the same XSLT file, and I tried to connect that file directly using BI Admin tool.Then it works. So it means that the transformation is ok.
So basically one question comes to my mind in that situation:
What is the purpose of XSLT field in BI Admin Tool when it comes to XML data source ?
(it doesnt look like XSLT processor)
Greetings
/MichalHi Mariano
Why you need to use XSLT for transforming XML file into ABAP table
Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
If you have requirement like you need to read XML file and then insert the data into a SAP table
You can use
File to RFC
File to Proxy scenario using SAP PI.
Please provide more inputs on requirement to help
Thanks
Gaurav
Maybe you are looking for
-
ITunes on Windows only has the music that I purchased after the move
Hi all, I have a Mac Book Pro and I also have a Windows 7 laptop. The Windows 7 laptop already has the latest version of iTunes installed but the library is empty. I followed http://support.apple.com/kb/ht4527 to copy my files from my mac to a flas
-
Nokia Lumia 620 won't start up
Hello everyone! I'm writing you this because i have a problem with my Nokia Lumia 620. Here's the story: I received the phone from italy as a gift, the phone wasn't new because my relatives actually bought the phone for them but they didn't like it
-
802.1x Guest Vlan and Routed access layer design
Hi! For many reasons, I have to re-design my campus network in a more ISP like way. The plan is to move to a routed access layer in the next two years. I have 802.1x with guest vlan on my access ports(3750). I was reading on the subject and I found t
-
Copying from PDF and I get what?
Copying from Adobe PDF "Deviation No.2 - Gas well oxygen" This is what I get: uo8,{xo lle^{ su,; - Z'oN uollB!Ar(l Does anybody have an Idea what is happening? Opened file with Adobe Acrobat Pro 9 Thanks
-
I'm working on a project where many of the design elements and controls contain mx:Images with common source attributes. In the Flash Professional working environment I would be using these images as instances of MovieClips, which only needing to be