At 2007-08-22 10:21 -0700, Andreas Kemkes wrote:
I'm only subscribed to the digest, so I'm responding to my own
message and hope it will end in the same thread.
Ken:
I'm using Java1.4.2 and according to the release notes that entails
"... xalan-j 2.4.1+ (Xalan version 2.4.1 with controlled
bug fixes)."
<xsl:comment>
<xsl:text>count: </xsl:text>
<xsl:value-of select="count(//lc:container[lc:item]/@select)"/>
</xsl:comment>
<!--count: 0-->
but both count(lc:container[lc:item]/@select) and
count(.//lc:container[lc:item]/@select) work.
What would be the issue with using count(//lc:container[lc:item]/@select)?
The issue would be that the processor has a bug. I can think of no
other explanation.
Saxon is a free download and I have successfully used Saxon in
production work where Xalan has let me down (particularly in
stylesheets with a dozen levels of import, though the problems show
up with just two levels of import). I suggest you download Saxon,
even if you cannot use it in your own production work, and confirm
that your use of XSLT provides correct results with a functioning
processor. You can then send your test data to the Xalan project for
consideration in their bug fixes.
I hope this helps.
. . . . . . . . . . . . . Ken
--
Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds: publicly-available developer resources and training
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--