Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSLT Element Performence

From: Robert Hansson <Robert.Hansson@------.--->
To: xml-dev@-----.---.---
Date: 7/6/2004 3:54:00 PM
<span style='font-size:10.0pt;
font-family:Arial'>Hi!<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>I have been taking over a project with thousands of lines of
XSLT code that I need to change because of performance and readability
problems. About the performance issues I <o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'>need someone to tell me which of the following two examples is
the best one for performance, what’s the differences and what to think
about.<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>Example 1:<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'><xsl:element name="div"><xsl:attribute
name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:element><o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>Example 2:<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'><div id="{@id}"></div><o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<o:p> </o:p>

Cheers,<o:p></o:p>

<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>

<span style='font-size:10.0pt;
font-family:Arial'>Robert.<o:p></o:p>






_________________________________________________________________________________________________________________________

Internet communications are not secure and therefore Oyster Partners Ltd does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Oyster Partners Ltd.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent