Wrox Programmer Forums
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2007, 08:47 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSL 2.0

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

 
Old January 8th, 2007, 09:11 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
xsl:param and xsl:apply-templates' "select" newbieboobers XSLT 1 March 25th, 2008 07:23 PM
Pass link values as xsl:parameter to php5 then xsl pauljr8 XSLT 1 July 2nd, 2007 10:32 PM
differnce between xsl:apply-templates and xsl:call chandu.mca007 XSLT 2 June 12th, 2007 04:12 AM
xsl advise needed - Replacing UID through XSL Billyl XSLT 6 February 28th, 2006 05:46 AM
XSL Transform with xsl string NOT xsl file skin XSLT 0 June 16th, 2003 07:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.