RE: [xsl] A smarter choose operation XSL 1.1

Subject: RE: [xsl] A smarter choose operation XSL 1.1
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 11 Jun 2009 08:40:12 +0100
> Yes, 1.1

Sorry, when I read your title I assumed you were talking about XSL-FO 1.1
(because XSLT 1.1 is a project that was abandoned about 8 years ago), then I
saw that it was an XSLT question and forgot about versions.

If you want to write code that is less verbose for this kind of logic,
you're going to have to move to XSLT 2.0.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay


>
> On Wed, Jun 10, 2009 at 4:05 PM, Alexander
> Johannesen<alexander.johannesen@xxxxxxxxx> wrote:
> > On Thu, Jun 11, 2009 at 09:04, Karl
> Stubsjoen<kstubs@xxxxxxxxx> wrote:
> >> Performing this simple test:
> >>        <xsl:variable name="test" select="(1, 2, 3)[1]" />
> >>
> >> I am getting the error:
> >>  Error in expression (1, 2, 3)[1]: expected ")", found ","
> >>
> >> Did I write that wrong?
> >
> > Isn't this code XSLT 2.0? You are on a 1.1 platform, no?
> >
> >
> > Alex
> > --
> >  Project Wrangler, SOA, Information Alchemist, UX,
> RESTafarian, Topic
> > Maps
> > --- http://shelter.nu/blog/
> > ----------------------------------------------
> > ------------------
> http://www.google.com/profiles/alexander.johannesen
> > ---

Current Thread