Subject: Re: [xsl] tag and attribute statistics attached with node sequence From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 23 Apr 2007 17:17:49 +0100 |
> can i ask a question on XSLT ? pls, if this group is > not interested in xslt, XSLT is the main subject of this list (although XSL-FO is also covered) > suppose i have the following xslt It's rather hard to comment on your code as it's rather long and full of processor-specific extensions for one particular processor (xalan?) You hint at the bottom what your intended computation is, but not very clearly I'm afraid but it would seem unlikely that any extensions were needed. You should really try to avoid doing things like this: <xsl:for-each select="@*"> <xsl:variable name="ignore" select="frequency:incrAttr($tagName,name(),auxiliary:suppressWhitespace(string(.)))"/> </xsl:for-each> As if the variable is not used, the processor is not obliged to evaluate it at all. relying on functions with side effects in any functional language is likely to be risky. For example there is a comment <!-- count current tag's text nodes --> XSLT doesn't work with tags but to count the current element nodes text node children which is what I think is intended does not require any extension elements, just select="count(text())" David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] tag and attribute statist, Klöck, Erwin | Thread | Re: [xsl] tag and attribute statist, Abel Braaksma |
Re: [xsl] XSLT Text Processing: Fun, Rashmi Rubdi | Date | Re: [xsl] XSLT Text Processing: Fun, Jacek Radajewski |
Month |