[xsl] perfomance question about selecting from child-node

Subject: [xsl] perfomance question about selecting from child-node
From: "Braumüller, Hans" <H.Braumueller@xxxxxxxxxxxx>
Date: Thu, 22 May 2003 16:36:25 +0200
Hello friends,

a short perfomance question about selecting from child-node

XML (... = etc)
    <row num="16">
      <geschart ztp="true"/>
      <DARKONTRAKT num="16">
	<DARKONTRAKT num="17">
    <row num="17">
XSLT (... = etc)

What is better for getting a faster transformation in general?
When i am transcurring node-set "DARLEHEN" doing an applying template for "row"
with rule
  <xsl:template match="row">
    <xsl:apply-templates select="DARKONTRAKT">
      <xsl:with-param name="tannr" select="tannr"/>
      <xsl:with-param name="tscreate" select="tscreate"/>
      <xsl:with-param name="tsupdate" select="tsupdate"/>
      <!-- §_010 -->
      <xsl:with-param name="geschartZTP" select="geschart/@ztp"/>

then putting  the values of the parameters on the node-set DARKONTRAKT out

Or make a direct applying template DARKONTRAKT and from there
getting the tree one step up, like
 	<xsl:value-of select="../tannr"/></xsl:attribute>
      <xsl:value-of select="../tscreate"/>
   	<xsl:value-of select="../tsupdate"/>
     	<xsl:value-of select="../geschart/@ztp"/>

Imagine hundreds of rows in the xml-source!


Hans Braumüller 
Systementwickler Web-Design 
Hanse Orga AG
Oldesloer Straße 63
D-22457 Hamburg 
Telefon: (+49) 040 51 48 08-62 
Telefax: (+49) 040 51 48 08-88 
E-Mail: h.braumueller@xxxxxxxxxxxx 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread