473,382 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Timeout on Xsl Transformation

Bear with me on this one because the explanation might be a bit lengthy. I
have a stored procedure which is returning three tables (using three
SELECTs).

Table 0 is a list of all bills for a job (relates to Table 1 by GB_JOB_ID)
Table 1 is a list of all jobs (relates to Table 2 by ACCOUNT_MANAGER_ID)
Table 2 is a list of all sales people

Not all jobs have bills associated with them. (I think this is where my
problem is, but read on). The stored procedure runs in about 3 seconds, so
it's not a real source of delay.

However, when I try to transform a DataSet (populated from the stored
procedure) using XSL, I get a timeout. That's strange because the stored
procedure executes very fast. So I figured out that the delay was in the
XSL, and I also figured out what was causing the timeout, but I don't know
how to fix it.

Here's a simplified version of the XSL. I took out some of the unnecessary
stuff, so the HTML might be a bit off.

<xsl:for-each select="NewDataSet/Table2">
<tr class="bodytext">
<td align="left" valign="top" colspan="10" bgcolor="bisque">
<b><xsl:value-of select="SALES_CODE" />&#xa0;-&#xa0;<xsl:value-of
select="USER_NAME" /></b>
</td>
</tr>
<tr>
<td bgcolor="#DADADA">Job Number</td>
</tr>
<xsl:for-each select="../Table1[ACCOUNT_MANAGER_ID/text() =
current()/ACCOUNT_MANAGER_ID/text()]">
<tr class="bodytext" bgcolor="#CCFFFF">
<td valign="top" class="numformat">
<xsl:value-of select="JOB_NUMBER"></xsl:value-of>
</td>
</tr>
<xsl:for-each select="../Table[GB_JOB_ID/text() =
current()/GB_JOB_ID/text()]">
<tr class="bodytext">
<td valign="top">
<xsl:value-of select="BILL_TYPE"></xsl:value-of>
</td>
<td valign="top">
<xsl:value-of select="DATE_CREATED"></xsl:value-of>
</td>
</tr>
</xsl:for-each>

</xsl:for-each>
</xsl:for-each>

If I take out the <xsl:for-each select="../Table[GB_JOB_ID/text() =
current()/GB_JOB_ID/text()]"> for each, the tranformation happens fast.

Remember I said that not all the jobs in Table 1 have bills in Table 0?
Could this be what's causing the above foreach to timeout?

Thanks for reading this far!!

Nov 18 '05 #1
0 873

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
3
by: pradeep gummi | last post by:
I have an XML FILE that is to be converted to Plain Text using an XSL file. Since I just want plain text, I do not want to set any root element during transformation.And if I do not any root...
4
by: Kevin Dean | last post by:
I'm trying to create an XSL transformation that will strip out development-specific attributes from deployment descriptors and other XML files. I have already successfully done so with web.xml but...
7
by: CK | last post by:
Hello, I have the 60 MB XML string and I am coding a program in Visual Basic to run a XSL transformation on it. Currently, I'm using the Microsoft standard MSXML 2.0 to create a DOM document, load...
8
by: Will | last post by:
I was thrust into XML about 2 weeks ago and don't know much yet. From another department in the corp I am receiving an XML file which concatenates nodes all on one line i.e....
4
by: Mike Conmackie | last post by:
Hi Folks, I've probably omitted something very basic but I have no idea what it might be. The results of my transformation _should_ be an xml file but all I get is the xml declaration...
2
by: TomekR | last post by:
Hello ! I was developing xslt sheet lately and - experimenting - I made mistake resulting in that, the effect of the transformation is not well-formed xml document. I made these tests using...
2
by: HendrikLeder | last post by:
Hello everybody :-) Next year I`ll write my diploma in computer science for business (It`s a degree in Germany) and I`ve some questions about the topic. The diploma will handle about refactoring...
1
by: newbie | last post by:
This is probably a too general question, thanks for any feedback in advance. I am trying to write a class to do transformation on a data set. I want to make it easy to maintain in the long-run...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.