Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
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 October 24th, 2005, 09:07 PM
Registered User
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT -XPATH Error

I am using the following select statement and its giving error when i execute
it, whats the wrong in this expression?


My Intention is the "/NewDataSet/Table2[GroupVal=' ']/GroupCount" expression
should return a value based on the other expression i.e
"key('NewDataSet',sAssignedUser)/sAssignedUser" .

can any give me the suggestions in this....
Advance Thanks to all.
Old October 27th, 2005, 03:24 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

I can't see anything wrong with it, but then I don't have the luxury of knowing what the error message said.

(Always post the error message. Just because you don't understand it doesn't mean that no-one else will)

It's possible you've got a context problem. You haven't shown your XML source either. Does Table2 have a child element called sAssignedUser? If not, the call on key() won't select anything.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array like processing (Xpath 1 / XSLT 1) akentanaka XSLT 1 July 2nd, 2008 02:22 AM
JAXP and XSLT 2.0 / XPATH 2.0 ojasrege XSLT 2 November 27th, 2007 10:40 AM
xslt xpath boris17 XSLT 2 October 15th, 2007 05:31 PM
XPath & XSLT problem Andy-7M XSLT 7 May 3rd, 2007 02:50 AM
XSLT/XPATH Help KombatKarl XSLT 3 September 2nd, 2004 07:35 AM

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