[xml] XSLTPROC is slow along with XSLT



Hi everyone,

i have written an XSL file an also developed a small application to convert 
XML to XSLT. There has been real performance issue with XSLT. It seems 
when the XML document is 5 MB the xsltproc hangs. The same happens 
with my program. The XSL file is below with the mail. For small file of few 
KB's it works fine. But for large files it hangs.

Thanks
Vikrant

<xsl:stylesheet version='1.0' 
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
<xsl:output method="text"/>
<xsl:template match="action_calendar_data_exchange">
<xsl:text>Hmilestone update</xsl:text><xsl:value-of 
select="@file_timestamp"/><xsl:text>                                                                          
                                                                                                              
                                                                                                              
                                                                                                              
                                                                              
                             
</xsl:text>
<xsl:for-each select="//item">
<xsl:text>D</xsl:text>
<xsl:value-of select="//job_id"/>
<xsl:value-of select="//customer_code"/>
<xsl:value-of select="//style"/>
<xsl:value-of select="//ship_date"/>
<xsl:value-of select="//vendor_name"/>
<xsl:value-of select="//template_name"/>
<xsl:value-of select="//milestone_id"/>
<xsl:value-of select="//milestone_name"/>
<xsl:value-of select="//task_item"/>
<xsl:value-of select="//colour"/>
<xsl:value-of select="//description"/>
<xsl:value-of select="//item_due_date"/>
<xsl:value-of select="//item_revised_date"/>
<xsl:value-of select="//item_arrival_date"/>
<xsl:value-of select="//logon_original_plan_date"/>
<xsl:value-of select="//review_plan_date"/>
<xsl:value-of select="//logon_acutal_date"/>
<xsl:value-of select="//milestone_status"/>
<xsl:value-of select="//logon_action_item_remarks"/>
<xsl:value-of select="//action_id"/>
<xsl:value-of select="//style_status"/><xsl:text>                                                             
                             
</xsl:text>
</xsl:for-each>
<xsl:text>Tmilestone update                                                                                   
                                                                                                              
                                                                                                              
                                                                                                              
                                                                              
                                                                                  
</xsl:text>
</xsl:template>
</xsl:stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]