function of database in the xslt file
HelloI followed the link below
http://Neeraj-SOA-tips.blogspot.com/2011/04/getting-XML-output-from-oraextquery.html
and I'm able to get several lines of this function, but when I copy the data variable to another variable, the value is empty and I'm getting the fault of null value. Looks like it's the problem with namespace. Someone at - he already tried this before?
Thank you.
Hi OracleSOAFM,
It is possible to create a variable without namespace. I have created a new schema and creates a new variable of it after the removal of the namespace of the schema. Your variable is already created or you try again with a new scheme?
Would also be useful if you let us know what SOA version you are using.
Kind regards
Neeraj Sehgal
Tags: Fusion Middleware
Similar Questions
-
Problem using the command oraext:query-database() in the xslt file
Hello
I ask a function through the query command - database () in a certain xslt in a BPEL process as below:
< name of xsl: variable = "Company" >
< xsl: value - of select = "string ('CORPORATION')" / >
< / xsl: variable >
< name of xsl: variable = "CustAccIdFrmDB" >
< xsl: value-of select ='orext:query - database (concat ("select xx_egytrans_integration.get_xid(",$getCustAccID,",",$Corporation,") from the dual"), false (), false (), string("jdbc/otmdatasource")) "/ >"
< / xsl: variable >
But, after the deployment of the BPEL process and when running it, I get the error at run time.
Here is the error,
" < bpelFault > < faultType > 0 < / faultType > < subLanguageExecutionFault xmlns =" http://schemas.Oracle.com/BPEL/extension "> < a name ="summary"part > < summary > XPath expression cannot run." An error occurs during the processing of the XPath expression; the term is ora: OutputVariable.OutputParameters). the XPath expression cannot run; the reason was: javax.xml.transform.TransformerException: XML-22900: (Fatal Error) an internal error condition has occurred. Check the detailed origin described in the text of the exception message and verify that the XPath query is correct. < Summary / > < / part > < part name = "code" > < code > XPathExecutionError < / code > < / piece > < / subLanguageExecutionFault > < / bpelFault >
Could if it you please let me know the probable reason for the error? Please help as soon as possible.
Thank you
Imane
Hello
The problem is now solved by adding an alias for the columns like below:
Select xx_egytrans_integration.get_xid (21468, 'CORPORATION') result of double;
Now, it could be used in xsl.
Thank you
Imane.
-
Jerky mouse mouseover function for all while the menu (file, options, help) and the key back/forward/home too. More scrolling is choppy every Web site since the update to version 3.6 to 4 RC1.
Gel mouse pointer when it comes across objects that use some sort of animation or gradual highlighting when hovering on (which is basically all the Firefox 4 items menu, tabs, etc.) But also a lot of things on the Web pages as the green buttons on this page that change color when you hover over them).
After rebooting my system, however, the problem seems to have disappeared!
[, WinXP SP3 - 4 GB RAM, Core i5 M520, driver Nvidia NVS3100M 6.14.12.5738, Firefox 4.0]
-
How to find the number of days between 2 date elements in the XSLT file
Hello
I need to calculate the number of days between 2 date elements (type xs: date). Can you please direct me as to how I can do the same thing.
I work in 11g and using XSLT 1.0. I tried several options but yet to get a solution for this. I think that this can be done also using XSLT 2.0, but who has not worked for me.
Can someone please help with this problem, thanks in advance!
Thank you
AnjuHello
Have you seen this message?
Re: Get the Date difference between 2 values of date in daysYou can do in the XSLT file since the dates are in ISO 8601 format.
http://www.w3.org/TR/NOTE-datetimeHere is a sample XSLT...
The XSLT above will result in * 4 * for the next entry...
2012-01-11T00:00:00.000-05:00 2012-01-15T00:00:00.000-05:00 You can test this example here...
http://xslttest.appspot.com/I hope this helps...
See you soon,.
VladIt is considered good etiquette to the answerers rewards with points (as "useful" - 5 pts - or 'correct' - 10pts)
https://forums.Oracle.com/forums/Ann.jspa?annID=893 -
Can LabWindows libraries call function inherited from read the Datalog file?
We are currently updating some old software written in LabVIEW 6.0.3 to Java. One of the features of the original software is to create data files using the function "Write Datalog" and also remind these databases later using 'Read Datalog'. To maintain backward compatibility with old data users, we want that new software to also be able to read and display the old datalogs. I have read several posts here about how the only way to get data off datalogs uses the function 'Reading Datalog' of the same version of LabVIEW to write the paper in the first place. I have the original LabVIEW code so I don't know the structure of the data that has been written.
I want to know if there is the same function in LabWindows libraries. Specifically is there is no support for a 6.0.3% version of the function of reading Datalog to support interfacing with a call to java?
To knock out a possible solution, this software is shared with clients. We want to avoid the way of compiling an executable separated from LabVIEW to be distributed with the main Java software which batch processes all the old data files in reading them with the old function of LabVIEW and spitting out files in a new format. We would prefer for the old files to be transparent open into the new software.
WARNING: I use LabVIEW for dark days before the invention of the button cancel, but never touched LabWindows/CVI. Please enter slowly so I will understand
Thank you all!
I guess that is not a built-in library capable of reading files datalog LabVIEW simply because they do not have a fixed format... Even in LV, you will need to pass the data structure for the opening function in order to be able to read the data back.
Searching the forum I found this discussion that can give you useful to begin with.
Apparently, you need detect the beginning of the section of the data file after the initials "DTLG" and rest of the header (which is the part not documented). After this point, read the file should be simple if you know the data structure the program writer used. The data > storage section of LabVIEW help can give you information about the content of the memory of each type of data used.
A simple test, I did write the clusters with a string and an integer shows that: 1. section of data begins at offset 0x22F; 2. the cluster is poured into the file preceded an int with the length of the string; 3. documents may have a variable length according to the length of the string; 4. There are no bytes of padding between elements of the cluster; 5. records are packed in the file consecutively.
I did this test using LabVIEW2009: it is possible that older files of LV are structured differently.
An alternative to this is to generate a DLL in LabVIEW that reads files datalog and passes their content to the appellant. Since you are experienced in LV, you are certainly more comfortable than me by doing this.
-
How generations for db in the XSLT file sequence number
Hello gurus SOA,.
I have a requirement, please see below
I am using SOA 11.1.1.6
Insert a webservice to db, XSLT call, I have 10 items next to the source and 11 items next to the target.
- Source to target first 10 mappings are performed.
- Now the requirement is, for the 11th element target we must pass a sequence number to the database targeted, means-(sequence number must be generated for each execution of the XSLT execution)
How do the last point?
Can someone help me please
Hello
You can pass the sequence number in the 11th element to help. "
oraext:sequence-next-val("Sequence name as a string", "Datasource as a string") function.
Kind regards
Anshul
-
MySQL database in the swf file
When you create a flash file, you can create it by incorporating a database as msyql, but if you save the flash file in the swf file, can you incorporate or integrate with a database like mysql. Is this possible?
No, I know. You must always have the Flash works through a script server to interact with a database of the server-side.
-
Import of database with the new file format
Hello
If the dump with the format .dmp file file then we use the file userid/pwd@connectstring imp = * .dmp
But I got the database file whose extension is. The format of the exp.
How can I import data from oracle database.
File type is the EXP file.
Concerning
Sudhakar P.Sudhakar P wrote:
HelloSm1/sm1@win1ced_re7.dev file C:\oracle\oracle92>IMP = c:\sm1_lun.exp
Import: Release version 8.1.7.4.1 - Production Tue Oct 28 11:53 2010
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With partitioning, OLAP and Oracle Data Mining options
Release 9.2.0.1.0 - Production jserverIMP-00010: not a valid export file, header check failed
IMP-00000: Import terminated unsuccessfullyHe thorws a mistake
can you suggest me
Concerning
Sudhakar P.As has already been suggested, contact the person who provided the file to know what format it is. A necessary file extension does not indicate any particular format, especially when it comes to "dmp", "exp" etc. so many different applications can use them.
-
Unable to connect to the database because the log file is deleted
Greetings,
Recently I cleaned a bit unnecessary files on my PC and did not know that an oracle log file has been deleted. That's why when I try to connect to the database I get the following error:
ORA-01033: ORACLE initialization or shutting
Plu SQL, I try closing and start up the database I know what type of file that has been deleted. So, how can I solve the problem?
Kind regards
Valerie
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 18 11:46:46 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> startup ORA-01031: insufficient privileges SQL> connect firefly Enter password: ERROR: ORA-01033: ORACLE initialization or shutdown in progress SQL> connect sys/manager as sysdba Connected. SQL> shutdown immediate; ORA-01109: database not open Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 146800640 bytes Fixed Size 1286220 bytes Variable Size 92278708 bytes Database Buffers 50331648 bytes Redo Buffers 2904064 bytes Database mounted. ORA-00313: open failed for members of log group 2 of thread 1 ORA-00312: online log 2 thread 1: 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_57J0VR00_.LOG' ORA-27041: unable to open file OSD-04002: unable to open file O/S-Error: (OS 2) The system cannot find the file specified. SQL>
You must enable ARCHIVELOG mode and use the backup provided to make (or calendar) Script backups of a database of the XE.
http://download.Oracle.com/docs/CD/B25329_01/doc/admin.102/b25107/backrest.htm#i1004902
As you have not a
Directory 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE', you can check to see if the backup was created here!Hemant K Collette
Published by: Hemant K grapple on September 18, 2009 19:00
-
Can join us the tables of several databases in the PRD file?
Hello
I'm working on the POC project and try to join several databases to create a file of RPD. Lets say I have complete SH schema from Oracle and I want two or three paintings (time and products) from Sybase.
I want to put sybase TIME and product of the tables in the Oracle SH schema and create joins in the physical layer. When I try to do, it is throughing a mistake... Am I missing something here?
Is this possible?
Thank you
ShivajiYou did not mention what the error!
We can create b & w to join tables in different databases
You must select a database table and as well as another table in the database and
Right click > physical join > selected tables only...This is how to create physical joins... or else you databases and select physical joins...
It is preferable that you mention, what is the error you get... ??
Thank you & best regards
Kishore Guggilla -
Attributes of hard code in the xslt file
Hello
I try to hardcode the attributes in the XSLT using setText, but during the execution, the attributes have the value null.
Is not the right way to hardcode the attributes in the XSLT?
Thank you!
solved the problem by using the assign activity.
-
How to call a value of preference in the XSLT file
Hi all
How to call a value preference (which is defined in bpel already) in the XSLT?
Can someone help me please
Kind regards
Villeneuve ch
Get the value of preference and and check out the post below to pass as a parameter
http://www.albinsblog.com/2012/07/passing-parameter-to-XSLT-in-SOA-11g.html#.UjfqfMZmiSo
Concerning
Albin I
-
For each does not properly in the XSLT file to two loops on a single node
Hi all
I'm transforming 2 inputs to a single target using XSLT. Both of the target entry of the same pattern and have the child element.
In the XSLT, I gave this condition.
"< xsl: for each select="$Variable1.payload/ns1:BookStore/ns1:Books ">
< xsl: for-each select = "/ ns1:BookStore / ns1:Books" >
"< xsl: if test="$Variable1.payload/ns1:BookStore/ns1:Books/ns3:BookId = ns3:Books / ns3:BookId ">
My second for each does not work and in the target, I'm getting double elements. Help, please. Here are two xml source and xml desired target.
1 XML source:
< bookStore >
< book >
Name1 < name > < / name >
author1 < author > < / author >
< ID > 1 < / BookId >
< quantity > 2 < / quantity >
< price > < price / >
< status > < / status >
< book >
< book >
name2 < name > < / name >
Author2 < author > < / author >
< ID > 2 < / BookId >
< quantity > 2 < / quantity >
< price > < price / >
< status > < / status >
< book >
< book >
< name > NAME3 < / name >
author of 3 < author > < / author >
< ID > 3 < / BookId >
< quantity > 2 < / quantity >
< price > < price / >
< status > < / status >
< book >
< / book >
XML source 2:
< bookStore >
< book >
< name > < / name >
< author > < / author >
< quantity > < / quantity >
< ID > 1 < / BookId >
< price > 100 < / price >
< status > < / status >
< book >
< book >
< name > < / name >
< author > < / author >
< quantity > < / quantity >
< ID > 2 < / BookId >
< price > 200 < / price >
< status > NA < / status >
< book >
< book >
< name > < / name >
< author > < / author >
< quantity > < / quantity >
< ID > 3 < / BookId >
< price > 300 < / price >
< status > < / status >
< book >
< / book >
Desired target XML:
< bookStore >
< book >
Name1 < name > < / name >
author1 < author > < / author >
< ID > 1 < / BookId >
< quantity > 2 < / quantity >
< price > 100 < / price >
< status > < / status >
< book >
< book >
name2 < name > < / name >
Author2 < author > < / author >
< ID > 2 < / BookId >
< quantity > 2 < / quantity >
< price > 200 < / price >
< status > NA < / status >
< book >
< book >
< name > NAME3 < / name >
author of 3 < author > < / author >
< ID > 3 < / BookId >
< quantity > 2 < / quantity >
< price > 300 < / price >
< status > < / status >
< book >
< / book >
Thank youHello
It will not work like that... To do something like the following... Only one for each...
ns1:Name ns1:Author ns1:BookId $Variable1.payload/ns1:BookStore/ns1:Books[ns1:BookId = $bookId]/Quantity $Variable1.payload/ns1:BookStore/ns1:Books[ns1:BookId = $bookId]/Price $Variable1.payload/ns1:BookStore/ns1:Books[ns1:BookId = $bookId]/Status I don't have to check the syntax, but you get the idea...
I hope this helps...
See you soon,.
Vlad -
Maintaining the space between elements in the xslt file
Running on 11 GR 1 material...
Try running an xslt to output html... transformation and the transformation deletes the space between my 2 items... (the space between John and Smith is removed)
Outputs:SELECT XMLSERIALIZE ( CONTENT XMLTRANSFORM ( xmltype ( '<data><column name = "USER_FNAME">John</column><column name = "USER_LNAME">Smith</column></data>'), xmltype ( '<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <html> <body> <p> Hello <xsl:value-of select="/data/column[@name=''USER_FNAME'']"/> <xsl:value-of select="/data/column[@name=''USER_LNAME'']"/></p> </body></html> </xsl:template> </xsl:stylesheet>')) AS CLOB) FROM DUAL;
What I've read, this is the standard behavior... the only thing I could do to get this working was to add an xsl: Text with XML: Space = "preserve".<html><body><p> Hello JohnSmith</p></body></html>
Part of the problem is I am also generate the xslt of the model user seizures... user enters the code for creating simple templates, I run it through various regexes to generate an XSLT that... before you run the XSLT on xml data.SELECT XMLSERIALIZE ( CONTENT XMLTRANSFORM ( xmltype ( '<data><column name = "USER_FNAME">John</column><column name = "USER_LNAME">Smith</column></data>'), xmltype ( '<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> <xsl:template match="/"> <html> <body> <p> Hello <xsl:value-of select="/data/column[@name=''USER_FNAME'']"/><xsl:text xml:space="preserve"> </xsl:text><xsl:value-of select="/data/column[@name=''USER_LNAME'']"/></p> </body></html> </xsl:template> </xsl:stylesheet>')) AS CLOB) FROM DUAL;
Example:
This snippet is entered by a user and transformed in the xslt above... It seems to have to replace all the white spaces with xsl elements: Text empty a little problematic... I was wondering if there is a more elegant solution?<p>Hello {{USER_FNAME}} {{USER_LNAME}}</p>
Thanks for the help and advice!Hi Jason,
From what I understand, the problem is not about properly return a space in a document of XSLT (there are several way to do in fact), but rather on the creation of the XSL piece out of the model defined by the user.
OP use a search and replace on tags custom in the model, so there maybe is complicated on the mixed complex content. -
I have several XSLT stylesheets to generate PDF documents for each modules. These XSLT all use the same models (functions) for data formatting. I love having these models all in a single file to be imported / included in the specific XSLT modules. I can not the right way to import, xsl language are both located in the same folder.
So far, I have:
* & lt; xsl: import href = "file:CommonFunctions.xsl" / > * "
I used the line above with and without the file, the path and everything else I could think of.
The only way I can get this to work is to appoint the full path like this:
* & lt; ' xsl: import href="file:D:\projects\toolA\include\templates\CommonFunctions.xsl" / >. *
but this is not portable to other servers.
Can someone clarify which way I have to use?Generally speaking, relative paths for web applications are specified against the
of the web application that you use if you can try that.
Maybe you are looking for
-
Equium M50-235: which module of memory should I use?
Impossible to find a solution as module type, that I need to upgrade the amount of memory. PC world who provided the laptop say their 512 MB PC2100 DDR DIMM will do the job.What is the best compatible module for M50-235 series laptop? PS: It is a mod
-
How can I delete the emails saved is more necessary in my HP Officejet Pro
How can I delete the emails saved is more necessary in my HP Officejet Pro storage
-
I can't start anything on my computer!
Hello world! I have a problem with my HP Pavilion dv6 laptop, installed brother of new graphics card drivers for me and after that I couldn't start all programs on my computer! He managed to help me start some programs using compatibility mode, but o
-
Word stop working after you install Microsoft updates
I use MS Office Professional 2007 and Windows Vista. Some updates have been pushed to my PC yesterday morning and restarted my computer. Since then, Word has stop working. I have not seen any problem with Excel or Access, the right word. SYMPTOM:
-
Not able to install "Intel R PROSet/Wireless Software for bluetooth.
Original title: error message: there is a problem with this windows package install, a program required for this install to complete could not be run. Contct your support personal or package provider When installing R from Intel PROSet/Wireless Softw