xsl-list
[Top] [All Lists]

RE: [xsl] A smarter choose operation XSL 1.1

2009-06-11 03:40:50
 

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(_dot_)johannesen(_at_)gmail(_dot_)com> wrote:
On Thu, Jun 11, 2009 at 09:04, Karl 
Stubsjoen<kstubs(_at_)gmail(_dot_)com> 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 
---


--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--