Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: passing in an element as a parameter to a stylesheet

From: Joe Kesselman <keshlam-nospam@-------.--->
To: NULL
Date: 8/2/2007 10:15:00 PM

>> I believe that using generate-id() is likely to be much more expensive
>> in most processors

In Xalan, generate-id() is based on an internal "node ID" number already 
associated with the node, so it's pretty much int-to-string plus a 
concatenate (since the ID has to start with a letter). That's probably a 
bit more expensive than building a nodeset followed by checking its 
length, but not enough that you're likely to notice it unless it's in 
the innermost layer of a tight loop.

If there's a real-world use-case where it does make a real performance 
difference, I'd be interested in knowing about it. Either idiom could 
probably be special-case optimized, but I wouldn't suggest investing 
coding effort in doing so until that's shown to actually make a 
difference -- there are lots of other places to invest tuning effort.

-- 
() ASCII Ribbon Campaign  | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry


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