You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/09/20 21:41:04 UTC

DO NOT REPLY [Bug 23296] New: - "http://exslt.org/sets" distinct() returns STRING instead of NodeSet

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23296>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23296

"http://exslt.org/sets" distinct() returns STRING instead of NodeSet

           Summary: "http://exslt.org/sets" distinct() returns STRING
                    instead of NodeSet
           Product: XalanJ2
           Version: 2.5
          Platform: Sun
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xalan.extensions
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: kgignatyev@yahoo.com


Such a template is not working with Xalan-j-2_5_1 but works fine with Xalan that
comes with J2sdk1.4.2_01 

Placing 2.5.1 xalan.jar into /endorsed directory causes exception:

Unknown file:0:0: Fatal Error! Can not convert #STRING to a NodeList!


<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:set="http://exslt.org/sets"
  exclude-result-prefixes="set">
	
	<xsl:template match="/">
	<rpt>
	 <xsl:variable name="dSIC"><xsl:value-of select="set:distinct(
/report/company/sic )"/></xsl:variable>
	<xsl:variable name="dBROKER">
					
	</xsl:variable>
	 <xsl:for-each select="$dSIC">
         </xsl:for-each> 
         </rpt>

 </xsl:template>
</xsl:stylesheet>