Subject: XSL 2.0
Posted By: pramod9248 Post Date: 1/8/2007 7:47:55 AM
Hi,
    I wanted a few clarifications regarding xsl 2.0.I am new to xsl and was trying to run a xsl stylesheet associated with a corresponding xml in Websphere (WSAD v 5.1.1).But i am getting a few errors when i try to run the new features present in xsl 2.0.When i try to run examples for sequences as such

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="2.0">
            <xsl:output  method="html"
                        indent="yes"
                        omit-xml-declaration="yes"/>

            <xsl:template  match="/aaa">
                  <xxx>
                        <xsl:value-of  select="1,2,3,4"/>
                  </xxx>
                  <yyy>
                        <xsl:value-of  select="'a','b','c','d'"/>
                  </yyy>
                  <yyy>
                        <xsl:value-of  select="bbb[3],bbb[1],bbb[2]"/>
                  </yyy>
            </xsl:template>

      </xsl:stylesheet>

I get an error saying that
Extra illegal tokens: ',', '2', ',', '3', ',', '4'
Extra illegal tokens: ',', ''b'', ',', ''c'', ',', ''d''
Extra illegal tokens: ',', 'bbb', '[', '1', ']', ',', 'bbb', '[', '2', ']'

So i am basically not able to use any of the new features (like date,grouping and so on).So requesting anyone to help me in this regard as early as possible which would be a great help to me.Awaiting a reply soon

Reply By: mhkay Reply Date: 1/8/2007 8:11:09 AM
To use XSLT 2.0 constructs you need to use an XSLT 2.0 processor. There are currently three available:

* my own Saxon processor, written in Java but available also under .NET (see http://saxon.sf.net/)

* a processor from Altova

* a processor from Colin Adams called Gestalt, written in Eiffel

The default processor supplied with Sun's JDK, and probably the one that comes with Websphere, is an XSLT 1.0 processor.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Go to topic 54528

Return to index page 71
Return to index page 70
Return to index page 69
Return to index page 68
Return to index page 67
Return to index page 66
Return to index page 65
Return to index page 64
Return to index page 63
Return to index page 62