Title: RE: [Sab] Missing current() function

I am using the .44 Windows version.  I was wrong, the function present since it runs my stylesheet without complaints.  Before it was supported, current() used to exit with an error.  I think I have found an odd case where current() doesn't seem to work though.  The following xml and xsl files generate the expected output when using Saxon but not using Sablotron:

Note:  There are a couple of lines in the XSL file that are commented out.  If you uncomment these, and comment out the line directly above each, everything works as expected (Assuming cat.xml is passed into Sablotron on the command line).

------------------------------------------------------------
cat.xml |
---------
<?xml version="1.0" encoding="utf-8"?>
<catalog lang="en">
        <title name="Titanic">
                <rentOpt no="00"/>
                <rentOpt no="02"/>
        </title>
        <rentalOptions>
                <no name="Single viewing">00</no>
                <no name="One day">01</no>
                <no name="Two days">02</no>
        </rentalOptions>
</catalog>
------------------------------------------------------------

------------------------------------------------------------
rent.xsl |
---------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:variable name="catalog"    select="document('cat.xml')/catalog"/>

<xsl:template match="/">
   <xsl:for-each select="$catalog/title/rentOpt/@no">
   <!-- <xsl:for-each select="/catalog/title/rentOpt/@no"> -->
                        <xsl:value-of select="$catalog/title/@name"/>:
      <xsl:value-of select="$catalog/rentalOptions/no[.=current()]/@name"/>,
      <!-- <xsl:value-of select="/catalog/rentalOptions/no[.=current()]/@name"/>, -->
   </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------------------

Is there something that I am doing wrong, or does this look like a problem with Sablotron?

Thanks,
Dan





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 12:29 PM
To: Sablotron Mailing List
Subject: Re: [Sab] Missing current() function


On Wed, Oct 18, 2000 at 11:44:50AM -0400, Hammond, Daniel wrote:
> I am surprised to find that Sablotron does not support the current()
> function.

But it does...
What version are you using? What error did you get?

 .robin.

--
"do not assume that you are in control of your own actions,
 but take responsibility for them anyway."


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - - 
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.


Reply via email to