Crosstab with multiple rowset xml content
I have multiple rowsets (xml files) which I want to calculate subtotals from. Each xml data set has identical columns. If I union all the files together, the xml content contains multiple rowsets and the Crosstab function does not give me a summed value of each column, but instead it creates a column for each column in each rowset.
The Normalize and the rowset combiner transform both combine rowsets by appending the second dataset into new columns, is there any way to append the data into new rows instead?
Because my final file is going to have something over 30,000 rows (14Mb), I am reluctant to use a repeater on each row of each file to combine it into a new rowset. Is there an efficient way to handle this calculation?
Sue,
I believe that we are off on the wrong foot here...all things aside...
Join will work for your scenario when combined with other actions for your calculation and it will be easier to maintain than a stylesheet which will be beneficial to you in the end. Please do not be too quick to judge the solution
As for the error message that's one for support, what was the error in the logs?
-Sam
Similar Messages
-
Can I specify "place" options with auto-replicating XML content images?
I'm importing content into an IDCS2 publication using XML, letting ID automatically flow the content into the publication. One issue I have is that there are many images in .ai format which have crop areas specified in them (getting AI to "crop" the vector graphic nautical charts I've been given is not easily done, but that's another thread I have going in the AI forum--which is why I've resorted to establishing a crop area in .ai).
If I manually place the images, I can use the "place" dialogue box to tell ID I want it to "crop to: crop" and it works fine. But in the automatic XML workflow, ID just places the whole gigantic .ai file in the frame.
So is there some way to tell ID I want it to "crop to: crop" when importing XML content?
Thanks.lisavs12686 wrote:
Whould it also be possible to send the sender the submited data (looking like the filled in form or so)?
not really nessecary but whould be a nice jextra
You can but you would need to send it as an html email which is much more complicated.
What you would do is build a page/table construction like below. You would need to use the php variables to echo out the information in the <td></td> cells (example below).
$reply = $_POST['email'];
$from = '[email protected]';
$replysubject = "Auto-Reply: Website Name";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $from\r\nReply-to: $reply";
$replymessage = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Comments from Website</title>
</head>
<body>
<table>
<tr>
<td bgcolor="#ffffff" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; padding: 10px 15px;">Name: </strong>'.$name.'
</td>
</tr>
</table>
</body>
</html>';
mail($reply, $replysubject, $replymessage, $headers); -
Count with multiple conditions (XML publisher)
I'm trying to only count an EMPLID if multiple conditions have been met in an RTF.
This works for 1 condition: <?count(xdoxslt:distinct_values(EMPLID[../FIRSTYEARFRESHMAN=1]))?>
But how do I do multiple conditions? I've tried <?count(xdoxslt:distinct_values(EMPLID[../FIRSTYEARFRESHMAN=1] AND [../APPLIED_FOR_NEED_B=1]))?> and <?count(xdoxslt:distinct_values(EMPLID[../FIRSTYEARFRESHMAN=1 AND ../APPLIED_FOR_NEED_B=1]))?> but those both don't work.
Thanks!similar problem for xdoxslt:distinct_values(EMPLID[condition1 and/or condition2])
How to calculate count distinct (by xdoxslt:distinct_values) with a condition expression -
How to use For-Each Structure with Multiple node XML structure
Hi,
How to use for-each (BPEL 2.0) construct for Multinode XML structure.
Here is the easy case: I have list of suppliers specified by supplier
<supplierList>
<supplier>1</supplier>
<supplier>2</supplier>
<supplier>3</supplier>
</supplierList>
Now there is a web service http://hostname/getsupplierdetails/wsdl which accepts one supplier at a time.
like
<supplier>1</supplier>
reponse object is
<message> notfound/found </message>
But how can I use for each of XML node to call this service and collect the result like
<supplierList1>
<Suppinfo>
<supplier>1</supplier>
<message> not found</message>
</suppinfo>
<suppinfo>
<supplier>1</supplier>
<message> not found</message>
</suppinfo>
</supplierlist1>
ThanksFor looping you use foreach loop and , loop for the number of occurences and when constructing response, adding a new element you have to use bpelx:append. Good sample at Enterprise Integration: Oracle SOA Suite 11g: Populating a list or an array in BPEL without using XSLT.
-
Crosstab with multiple benchmarks to score
Does a cross tab in Design Studio allow you to compare a KPI across multiple benchmarks in a row where each intersection would display a visual indicator as to how we are performing against that benchmark? I can't find anything that shows we can easily do this on universe based data. Nor can i find anything that shows the product can easily do this.
Can someone point me in the right direction if this is possible? Thanks!I missed that part; sorry
I don't know if that can be done against a universe as the example in the learning hub uses the BEx Exceptions
Once I try it I will document and let you know.
I haven't recently read the Design Studio 1.3 features -so Mustafa may be right about more alerting features coming in 1.3 -
Cross tab with multiple repeating columns
Hi All,
I'm developing a cross tab report.. my sample xml file is
<?xml version="1.0" encoding="UTF-8"?>
<ROWSET>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Back Office</DD_CODE>
<NOTE_DATE>12</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Back Office</DD_CODE>
<NOTE_DATE>11</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Back Office</DD_CODE>
<NOTE_DATE>14</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Back Office</DD_CODE>
<NOTE_DATE>112</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Monitoring</DD_CODE>
<NOTE_DATE>121</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Monitoring</DD_CODE>
<NOTE_DATE>122</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Monitoring</DD_CODE>
<NOTE_DATE>131</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Call - Monitoring</DD_CODE>
<NOTE_DATE>111</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Back Office</DD_CODE>
<NOTE_DATE>11</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Back Office</DD_CODE>
<NOTE_DATE>143</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Back Office</DD_CODE>
<NOTE_DATE>122</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Back Office</DD_CODE>
<NOTE_DATE>111</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Monitoring</DD_CODE>
<NOTE_DATE>1432</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Monitoring</DD_CODE>
<NOTE_DATE>112</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Monitoring</DD_CODE>
<NOTE_DATE>121</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Site Visit - Monitoring</DD_CODE>
<NOTE_DATE>123</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Visit - WDE Office</DD_CODE>
<NOTE_DATE>123</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Visit - WDE Office</DD_CODE>
<NOTE_DATE>1321</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Visit - WDE Office</DD_CODE>
<NOTE_DATE>1312</NOTE_DATE>
</ROW>
<ROW>
<NAME>Product</NAME>
<DATE>2008-05-01T00:00:00.000-05:00</DATE>
<TYPE_CODE></TYPE_CODE>
<MOST_RECENT_NOTE_DATE>1</MOST_RECENT_NOTE_DATE>
<DD_CODE>Visit - WDE Office</DD_CODE>
<NOTE_DATE>211</NOTE_DATE>
</ROW>
</ROWSET>
If I use the cross tab wizard ...I'm get the following output..
-------------Call - Back Office-------Call - Monitoring-------Site Visit - Back Office-------Site Visit -Monitoring-----Visit - WDE Office
product 12 121 11 1432 123
but I'm looking for output like...
-------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211The numbers under each column are dynamic ..I might be getting 2,3,4..(In this case all are four)...I looked at the below link but it had static 2 repeating columns..but in my case the repeating columns are unknown...
http://winrichman.blogspot.com/2008/09/crosstab-with-multiple-repeating.html
Is is possible to build a cross tab like that..?
Thanks in Advance..Hi..
Thanks alot for your time..
can I e-mail you my actual xml file..? becuase if there are multiple rows(multiple <?NAME?>)...the column headers(DD_CODE) are repeating for every row(<?NAME?>)..also is it possible to get each NOTE_DATE in a cell(here all the NOTE_DATE are displaying in a table)....
present output...
-------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
-------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
product1-------11 15 13 12-----------00 111 132 444----------12 434 123 171------------------1832 162 221 124 ---------143 1231 1311 241
looking for output like..
-------------Call - Back Office-----Call - Monitoring------Site Visit - Back Office------Site Visit -Monitoring-------Visit - WDE Office
product-------12 11 14 112-----------121 122 131 111----------11 143 122 111------------------1432 112 121 123 ---------123 1321 1312 211
product1-------11 15 13 12-----------00 111 132 444----------12 434 123 171------------------1832 162 221 124 ---------143 1231 1311 241Thanks in Advance... -
Itunes Library sharing with multiple ipods and 2 pc's
Hi, I have a new Ipod nano and want to use my wifes itunes library with my ipod. Which according to the tech stuff I can share the content by enabling on wifes pc. Done that, which I can now see library on my Acer laptop. However, I can't sync my playlist from her pc to my itunes. I want to download my own podcasts etc.. not clutter her itunes pc. When I transfer the ipod back to my pc it then wants to delete and re-sync.
We have 3 ipods in the house and 2 pc's.
Whats the best way of using the ipods and getting the most out of itunes?
ThanksIf you want to connect and use an iPod on more than one computer or with more than one library you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. The content of iTunes and the iPod are not syncronised in this mode so the two can be different. You can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library:
Using iPod with Multiple computers
Managing content manually on iPod and iPhone
Syncing Music to iPod
Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod
There are several different ways to use two iPods with one computer, have a look at this help page for suggestions: How to use multiple iPods with one computer -
Family with multiple iPods and multiple iTunes - can we share songs?
I am sure I am not the only one in this situation. There are 4 computers in our house, and 3 individuals with there own iPods. Can one iPod owner who has her own library on her PC go to my son's PC and connect to his iTunes Library to get just one song that he purchased? She tried to "drag" a song from his library onto her iPod, but it wouldn't allow her to. She got some message saying her iPod already has it's own library. Are you saying she can't get one song that I paid for? How are we able to share songs on multiple PCs?
If you want to connect and use an iPod on more than one computer or with more than one library you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. The content of iTunes and the iPod are not syncronised in this mode so the two can be different. You can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library:.
Using iPod with Multiple computers
Managing content manually on iPod and iPhone
Syncing Music to iPod
Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod
You might also want to look at this article: iTunes: How to Share Your Music -
How to synch IPOD Nano with multiple pc's
I will like to add 200 extra tracks from my sister's laptop ITUNES library onto my own very IPOD nano. Anyone can advise how to synch it so that it can add those audio files WITHOUT erasing those already stored on the IPOD?
Do i simply click on CTRL and SHIFT keys to prevent it from auto synching and add the other files manually?If you want to connect and use an iPod on more than one computer or with more than one library you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. The content of iTunes and the iPod are not syncronised in this mode so the two can be different. You can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library. Even when manually managing an iPhone, you can only add content from one iTunes library.
Using iPod with Multiple computers
Managing content manually on iPod and iPhone
Syncing Music to iPod
Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod -
PIVOT with multiple columns to add and multiple levels of grouping
Hi friends,
I got a table with the columns in the form of:
CRITERIA_A,
CRITERIA_B,
CRITERIA_C,
AMOUNT_A,
AMOUNT_B,
AMOUNT_C,
AMOUNT_D
Any way to design a pivot to present the table reflecting:
Sums of Amount_A, Amount_B, Amount_C, Amount_D
For Rows reflecting grouping levels on:
Criteria_B, Criteria_C
and Columns breakup for:
Criteria_A?
An example like:
Criteria_A1
Criteria_A2
Criteria_A3
Criteria_A4
Row Labels
Sum of Amount_A
Sum of Amount_B
Sum of Amount_C
Sum of Amount_D
Sum of Amount_A
Sum of Amount_B
Sum of Amount_C
Sum of Amount_D
Sum of Amount_A
Sum of Amount_B
Sum of Amount_C
Sum of Amount_D
Sum of Amount_A
Criteria_B3
94
107
36
127
84
132
41
176
24
16
67
29
38
Criteria_C1
24
25
5
49
14
66
5
49
24
16
67
29
Criteria_C2
70
82
31
78
38
Criteria_C3
38
41
31
78
Criteria_C4
32
25
5
49
Criteria_B1
56
142
78
26
32
25
67
8
24
Criteria_C2
24
66
26
8
32
25
67
8
Criteria_C3
32
76
52
18
Criteria_C4
24
Criteria_B2
162
309
264
81
132
230
155
124
14
25
52
8
38
Criteria_C1
38
76
26
8
62
98
98
66
14
25
52
8
38
Criteria_C2
86
157
186
44
70
132
57
58
Criteria_C3
38
76
52
29
Criteria_B4
100
148
130
116
56
142
93
57
46
Criteria_C1
24
66
67
49
32
Criteria_C2
32
76
26
8
14
Criteria_C3
76
82
78
67
Criteria_C4
24
66
52
49
Grand Total
312
558
378
234
348
535
393
424
94
183
212
94
146
Thanx in advance, Best Regards, Faraz A QureshiSounds like this to me if in T-SQL query
(best guess based on what you posted)
SELECT
CRITERIA_B,
CRITERIA_C,
SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A1_AMOUNT_A,
SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A1_AMOUNT_B,
SUM(CASE WHEN CRITERIA_A = 'Critera_A1' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A1_AMOUNT_C,
SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_A2_AMOUNT_A,
SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_A2_AMOUNT_B,
SUM(CASE WHEN CRITERIA_A = 'Critera_A2' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_A2_AMOUNT_C,
SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_A ELSE 0 END) AS CRITERIA_AN_AMOUNT_A,
SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_B ELSE 0 END) AS CRITERIA_AN_AMOUNT_B,
SUM(CASE WHEN CRITERIA_A = 'Critera_AN' THEN AMOUNT_C ELSE 0 END) AS CRITERIA_AN_AMOUNT_C,
FROM Table
GROUP BY CRITERIA_B,
CRITERIA_C
to make it dynamic see
http://beyondrelational.com/modules/2/blogs/70/posts/10791/dynamic-crosstab-with-multiple-pivot-columns.aspx
However it would be much easier to build this in SSRS reports using matrix if you can use it.
In that case just bring data as is
then add a matrix to report
Add column grouping on Criteria A and Row grouping on Criteria B and then Criteria C .
In data portion add three columns with expressions as
=SUM(Fields!Amount_A.Value)
=SUM(Fields!Amount_B.Value)
=SUM(Fields!Amount_C.Value)
then you will get exact format what you're asking for
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Polulate Text frames with XML content - PLEASE help me.
Hi guys,
I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
1- create new document
2- create master page
3- create empty text fields in the master to be tagged
4- import tags from xml
5- import xml
then it simply don't auto populate the text fields wiith the xml content.
I've already spent about 10 hours trying to figure out what can be the problem...
My structure in indesign (BEFORE importing XML):
businesscards
Card
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
My structure in indesign (AFTER importing XML):
businesscards
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
Card <!-- has dropdown arrow with xml content inside -->
employeeName
employeePosition
employeeAddressln1
employeeAddressln2
employeePhone
employeeEmail
But it doesn't populate the text frames...
I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<businesscards>
<Card>
<!-- contents of Suzan Reed -->
<employeeName>Suzan Reed</employeeName>
<employeePosition>Director of Marketing</employeePosition>
<employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
<employeePhone>503-481-5858 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Gabriel Powell -->
<employeeName>Gabriel Powell</employeeName>
<employeePosition>Senior Training Director</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-5404 direct</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Dale Erwing -->
<employeeName>Dale Erwing</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
<employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
<employeePhone>310-795-8943 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
<Card>
<!-- contents of Jim Conner -->
<employeeName>Jim Conner</employeeName>
<employeePosition>Trainer</employeePosition>
<employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
<employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
<employeePhone>503-515-2376 cell</employeePhone>
<employeeEmail>[email protected]</employeeEmail>
</Card>
</businesscards>
Thanks in advanceIt worked! thanks ... But...
But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
I don't want to drag the elements one by one to every single card (they are so many...)
Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
thanks for any kind of advice. -
Multiple Domains with oc4j-ra.xml
Hi, I am using the oc4j-ra.xml file in the /oracle/app/10Gias/j2ee/OC4J_BPEL/application-deployments/default/DbAdapter/ directory to my database connection. I have now created a second domain for a TEST environment and want to use a seperate oc4j-ra.xml file for it. Is this possible? Should'nt there be a seperate oc4j-ra.xml file for each domain? Or is there another way to handle this with multiple domains?
ThanksHi,
I am sorry it is not oc4j-ra.xml rather it is OraHome_1\j2ee\OC4J_BPEL\config\data-sources.xml where we have jndi location of all datasources.
i think here we can define multiple datasource elements pointing to diffrent databases say one for Development and one for Testing like:
for Development:
<data-source class="com.evermind.sql.DriverManagerDataSource"
name="BPELServerDataSource"
location="jdbc/BPELServerDataSourceWorkflowDev"
xa-location="BPELServerDataSource"
ejb-location="jdbc/BPELServerDataSource"
connection-driver="oracle.jdbc.OracleDriver"
max-connections="50"
min-connections="10"
connection-retry-interval="30"
max-connect-attempts="10"
username="orabpel"
password="->pwForOrabpel"
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=101.11.50.51)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=esb)))"/>
for Testing:
<data-source class="com.evermind.sql.DriverManagerDataSource"
name="BPELServerDataSource"
location="jdbc/BPELServerDataSourceWorkflowTest"
xa-location="BPELServerDataSource"
ejb-location="jdbc/BPELServerDataSource"
connection-driver="oracle.jdbc.OracleDriver"
max-connections="50"
min-connections="10"
connection-retry-interval="30"
max-connect-attempts="10"
username="orabpel"
password="->pwForOrabpel"
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=101.11.50.52)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=esb)))"/>
after that, modify the domain.xml in Development domain to point
<property id="datasourceJndi">
<name>Domain datasource JNDI</name>
<value>jdbc/BPELServerDataSourceWorkflowDev</value>
<comment><![CDATA[
The JNDI name for the domain datasource. This datasource may refer to any datasource (JTA not required).
]]></comment>
</property>
and modify the domain.xml in Testing domain to point
<property id="datasourceJndi">
<name>Domain datasource JNDI</name>
<value>jdbc/BPELServerDataSourceWorkflowTest</value>
<comment><![CDATA[
The JNDI name for the domain datasource. This datasource may refer to any datasource (JTA not required).
]]></comment>
</property>
I hope this will help you.
Thanks,
-Vidya -
Catch all error information while validating xml content with xsd schema
Hi experts,
I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below is a part of my java mapping.
XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
parser.setFeature( "http://xml.org/sax/features/validation" , true);
parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); // schema is my schema name
parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends DefaultHandler
parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
// In error handler, I comment all code so as not to throw any exception
public class ParseErrorHandler extends DefaultHandler
public void error(SAXParseException e) throws SAXException
// sSystem.out.println("Error" + e.getMessage());
// throw e;
public void fatalError(SAXParseException e)
// throw e;
// System.out.println("SAP Fatal Error" + e.getMessage());
Unfortunately the program always stopped while catching the first error. Check the below log.
com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
ERRORS :
cvc-simple-type : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
cvc-data : information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is is not valid with respoct to the corresponding simple type definition.
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' is associated with invalid data.
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]/:Header[1]/:To[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]/:Header[1]' is not valid with respect to it's complex type definition..
cvc-element : element information item '/:ShipNotice[1]' is not valid with respect to it's complex type definition..
-> com.sap.engine.lib.xml.parser.ParserException:
I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error handler logic? Is there any body can make me get out of this?
Thanks.<h6>Hi experts,
<h6>
<h6>I created a java mapping to validating the input xml content with xsd schema (schema validation). What I want is to catch all <h6>error message to the xml not just the first error. I used SAXParser in sapxmltoolkit.jar to do the schema validation. The below <h6>is a part of my java mapping.
<h6>XMLReader parser = XMLReaderFactory.createXMLReader("com.sap.engine.lib.xml.parser.SAXParser");
<h6>parser.setFeature( "http://xml.org/sax/features/validation" , true);
<h6>parser.setFeature( "http://apache.org/xml/features/validation/schema" , true);
<h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema"); <h6>parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",this.getClass().getClassLoader().getResourceAsStream(schema)); <h6>// schema is my schema name
<h6>parser.setErrorHandler(new ParseErrorHandler()); // ParseErrorHandler is my own ErrorHandler which extends Default Handler
<h6>parser.parse(new InputSource(new ByteArrayInputStream(sinput.getBytes())));
<h6>
<h6>// In error handler, I comment all code so as not to throw any exception
<h6>public class ParseErrorHandler extends DefaultHandler
<h6>{
<h6> public void error(SAXParseException e) throws SAXException
<h6> {
<h6> // sSystem.out.println("Error" + e.getMessage());
<h6> // throw e;
<h6> }
<h6>
<h6> public void fatalError(SAXParseException e)
<h6> {
<h6> // throw e;
<h6> // System.out.println("SAP Fatal Error" + e.getMessage());
<h6>
<h6> }
<h6>
<h6>}
<h6>
<h6>Unfortunately the program always stopped while catching the first error. Check the below log.
<h6>
<h6>com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
<h6>ERRORS :
<h6>cvc-simple-type : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is not valid, because it's value does not satisfy the constraints of facet 'minLength' with value '1'.
<h6>cvc-data : information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is is not valid with respoct to the corresponding simple type definition.
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]/:CityName[1]' <h6>is associated with invalid data.
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]/:AddressInformation[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]/:PartnerInformation[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]/:To[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item <h6>'/:ShipNotice[1]/:Header[1]' <h6>is not valid with respect to it's complex type definition..
<h6>cvc-element : element information item '/:ShipNotice[1]' is not valid with <h6>respect to it's complex type definition..
<h6> -> com.sap.engine.lib.xml.parser.ParserException:
<h6>
<h6>
<h6>I tried using Xerces and JAXP to do validation, the same error happened. I have no idea on this. Does xi has its own error <h6>handler logic? Is there any body can make me get out of this?
<h6>Thanks. -
Performance question on small XML content but with large volume
Hi all,
I am new to Berkeley XML DB.
I have the following simple XML content:
<s:scxml xmlns:s="http://www.w3.org/2005/07/scxml">
<s:state id="a"/>
<s:state id="b"/>
<s:state id="c"/>
</s:scxml>
about 1.5K bytes each but the total number of such content is large (5 million+ records).
This is a typical query:
query 'count(collection("test.dbxml")/s:scxml/s:state[@id="a"]/following-sibling::s:state[@id="e"])'
where the id attribute is used heavily.
I've tested with about 10000 records with the following indexes:
Index: edge-attribute-equality-string for node {}:id
Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
Index: edge-element-presence-none for node {}:scxml
Index: edge-element-presence-none for node {}:state
but the query took just under one minute to complete. Is this the expected performance? It seems slow. Is there anyway to speed it up?
In addition, the total size of the XML content is about 12M but ~100M of data is generated with the log.xxxxxxxxxx files. Is this expected?
Thanks.Hi Ron,
Yes, I've noticed the URI issue after sending the post and changed them to:
dbxml> listindex
Default Index: none
Index: edge-attribute-equality-string for node {http://www.w3.org/2005/07/scxml}
:id
Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2
002/dbxml}:name
Index: edge-element-presence-none for node {http://www.w3.org/2005/07/scxml}:scx
ml
Index: edge-element-presence-none for node {http://www.w3.org/2005/07/scxml}:sta
te
5 indexes found.
I added more records (total ~30000) but the query still took ~1 minute and 20 seconds to run. Here is the query plan:
dbxml> queryplan 'count(collection("test.dbxml")/s:scxml/s:state[@id="start"]/fo
llowing-sibling::s:state[@id="TryToTransfer"])'
<XQuery>
<Function name="{http://www.w3.org/2005/xpath-functions}:count">
<DocumentOrder>
<DbXmlNav>
<QueryPlanFunction result="collection" container="test.dbxml">
<OQPlan>n(P(edge-element-presence-none,=,root:http://www.sleepycat.com
/2002/dbxml.scxml:http://www.w3.org/2005/07/scxml),P(edge-element-presence-none,
=,scxml:http://www.w3.org/2005/07/scxml.state:http://www.w3.org/2005/07/scxml))<
/OQPlan>
</QueryPlanFunction>
<DbXmlStep axis="child" prefix="s" uri="http://www.w3.org/2005/07/scxml"
name="scxml" nodeType="element"/>
<DbXmlStep axis="child" prefix="s" uri="http://www.w3.org/2005/07/scxml"
name="state" nodeType="element"/>
<DbXmlFilter>
<DbXmlCompare name="equal" join="attribute" name="id" nodeType="attrib
ute">
<Sequence>
<AnyAtomicTypeConstructor value="start" typeuri="http://www.w3.org
/2001/XMLSchema" typename="string"/>
</Sequence>
</DbXmlCompare>
</DbXmlFilter>
<DbXmlStep axis="following-sibling" prefix="s" uri="http://www.w3.org/20
05/07/scxml" name="state" nodeType="element"/>
<DbXmlFilter>
<DbXmlCompare name="equal" join="attribute" name="id" nodeType="attrib
ute">
<Sequence>
<AnyAtomicTypeConstructor value="TryToTransfer" typeuri="http://ww
w.w3.org/2001/XMLSchema" typename="string"/>
</Sequence>
</DbXmlCompare>
</DbXmlFilter>
</DbXmlNav>
</DocumentOrder>
</Function>
</XQuery>
I've noticed the indexes with URI were not used so I added back the indexes without URI:
dbxml> listindex
Default Index: none
Index: edge-attribute-equality-string for node {}:id
Index: edge-attribute-equality-string for node {http://www.w3.org/2005/07/scxml}
:id
Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2
002/dbxml}:name
Index: edge-element-presence-none for node {}:scxml
Index: edge-element-presence-none for node {http://www.w3.org/2005/07/scxml}:scx
ml
Index: edge-element-presence-none for node {}:state
Index: edge-element-presence-none for node {http://www.w3.org/2005/07/scxml}:sta
te
8 indexes found.
Here is the query plan with the above indexes:
dbxml> queryplan 'count(collection("test.dbxml")/s:scxml/s:state[@id="start"]/fo
llowing-sibling::s:state[@id="TryToTransfer"])'
<XQuery>
<Function name="{http://www.w3.org/2005/xpath-functions}:count">
<DocumentOrder>
<DbXmlNav>
<QueryPlanFunction result="collection" container="test.dbxml">
<OQPlan>n(P(edge-element-presence-none,=,root:http://www.sleepycat.com
/2002/dbxml.scxml:http://www.w3.org/2005/07/scxml),P(edge-element-presence-none,
=,scxml:http://www.w3.org/2005/07/scxml.state:http://www.w3.org/2005/07/scxml),V
(edge-attribute-equality-string,state:http://www.w3.org/2005/07/scxml.@id,=,'sta
rt'),V(edge-attribute-equality-string,state:http://www.w3.org/2005/07/scxml.@id,
=,'TryToTransfer'))</OQPlan>
</QueryPlanFunction>
<DbXmlStep axis="child" prefix="s" uri="http://www.w3.org/2005/07/scxml"
name="scxml" nodeType="element"/>
<DbXmlStep axis="child" prefix="s" uri="http://www.w3.org/2005/07/scxml"
name="state" nodeType="element"/>
<DbXmlFilter>
<DbXmlCompare name="equal" join="attribute" name="id" nodeType="attrib
ute">
<Sequence>
<AnyAtomicTypeConstructor value="start" typeuri="http://www.w3.org
/2001/XMLSchema" typename="string"/>
</Sequence>
</DbXmlCompare>
</DbXmlFilter>
<DbXmlStep axis="following-sibling" prefix="s" uri="http://www.w3.org/20
05/07/scxml" name="state" nodeType="element"/>
<DbXmlFilter>
<DbXmlCompare name="equal" join="attribute" name="id" nodeType="attrib
ute">
<Sequence>
<AnyAtomicTypeConstructor value="TryToTransfer" typeuri="http://ww
w.w3.org/2001/XMLSchema" typename="string"/>
</Sequence>
</DbXmlCompare>
</DbXmlFilter>
</DbXmlNav>
</DocumentOrder>
</Function>
</XQuery>
The indexes are used in this case and the execution time was reduced to about 40 seconds. I set the namespace with setNamespace when the session is created. Is this the reason why the indexes without URI are used?
Any other performance improvement hints?
Thanks,
Ken -
Loading xml file with multiple rows
I am loading data from xml files using xsl for transformation. I have created xsl's and loaded some of the data. In an xml file with multiple row, it's only loading one (the first) row. Any idea how I can get it to read and load all the records in the file???
Could some please help me with the above. I desparately need to move forward.
Maybe you are looking for
-
Hello, I am having a strange problem with Tomcat and axis. I have a webservice that uses axis2 for wsdl2java class generation. When I compile my project in maven a Test is performed. During the test a glassfish server is established and the project i
-
Once and for all: force spotlight to find ALL files, from the DROPDOWN
this is maddening. I want to be able to see ALL my files in the spotlight dropdown that pops down when I invoke spotlight. I know there are lots of posts on here on this, but none seem to help me much. here's what I want: when I click the little magn
-
Cannot open pdf files in Outlook 2007
I always get the following error message: "There was an error opening this document. The file is damage d and could not be repaired".
-
Hi I have a C6180 on a Vista PC, and need to convert scanned document to text with OCR, is there a "how to" available for this function. Thanks Daniel This question was solved. View Solution.
-
Arraylist.toString (need to count amount of a specific character in a list)
hi I have a sql query that im using to populate a ArrayList<String>. I need to count the amount of "+" symbols in the all of the list. My first idea was to use Arraylist.toString and then run the resulting string through this method public static int