I didn't see the null pointer, but I did get the empty results inside the
loop.  FYI, we're using the Transformer object with a DOMSource for the XML
and a DOMSource for the XSL, outputting to a StreamOutput.  Another side
note, not that it may matter, but in Xalan 2.1, the xalan:tokenizer
extension function would not work when there was no "context node" yet.  For
example, trying to assign the results of the xalan:tokenizer function to a
variable, right inside the start of a template as in:

<xsl:param name="ColumnHeadings">A,B,C</xsl:param>
<xsl:template match="/">
        <xsl:variable name="mylist" select="xalan:tokenize($ColumnHeadings,',')"/>
        <xsl:for-each select="blah blah"


...would not work in Xalan 2.1.  Moving it inside the for-each did, however.
Weird and wacky.  But seemingly addressed in 2.2D11.

Curious to see what you sleuth out...

- Rick


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 5:02 PM
To: [EMAIL PROTECTED]
Subject: RE: Xalan 2.2 D11 - Change in xalan:evaluate - Bug?



Rick, were you getting a NullPointerException? That's what I got at first,
and once I fixed that, than I was not getting anything for the results
inside the for-each loop.

Myriam



                    "Rick Bullotta"
                    <rick.bullotta@lighth       To:
<[EMAIL PROTECTED]>
                    ammer.com>                  cc:     (bcc: Myriam
Midy/CAM/Lotus)
                                                Subject:     RE: Xalan 2.2
D11 - Change
                    10/02/01 03:26 PM            in xalan:evaluate - Bug?
                    Please respond to
                    xalan-dev






Here's what I think is going on:

It appears not to be specific to "xalan:evaluate", but rather, there
appears
to be a more general problem evaluating an XPath expression on the source
XML document of a transformation from within a for-each loop on the results
of a xalan:tokenize extension function call.  The attached files
demonstrate
the error.

Regards,

Rick Bullotta
Lighthammer


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 2:50 PM
To: [EMAIL PROTECTED]
Subject: RE: Xalan 2.2 D11 - Change in xalan:evaluate - Bug?



Rick,
What exactly is the problem? Can you include a zip file with the xsl and
xml files?

Thanks,
Myriam



                    "Rick Bullotta"
                    <rick.bullotta@lighth       To:
<[EMAIL PROTECTED]>
                    ammer.com>                  cc:     (bcc: Myriam
Midy/CAM/Lotus)
                                                Subject:     RE: Xalan 2.2
D11 - Change
                    10/02/01 02:45 PM            in xalan:evaluate - Bug?
                    Please respond to
                    xalan-dev






Ignore last posting!  You can already tell why...<g>  Cut and paste strikes
again...the evaluate issue still exists, though.

-----Original Message-----
From: Rick Bullotta [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 2:27 PM
To: [EMAIL PROTECTED]
Subject: RE: Xalan 2.2 D11 - Change in xalan:evaluate - Bug?


As a followup, the issue appears elsewhere, for example, given the
following
XML document:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Rowsets DateCreated="2001-10-02 12:59:13" EndDate="2001-10-02 12:59:13"
StartDate="2001-10-02 11:59:13" Version="9.0">
           <Rowset>

.....





(See attached file: Samples.zip)


Reply via email to