could also do //commands[1]/command[1]/@label
----- Original Message -----
From: Todd Gochenour
To: Mailing list for the SAXON XSLT and XQuery processor
Sent: Thursday, April 16, 2009 4:11 PM
Subject: Re: [saxon] XPath result different between XALAN and SAXON

I found the answer.  In XPath 2.0, use parenthesis to normalize the sequence.
XPath now reads:  (//command)[1]/@label

Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32.

saxon-help mailing list archived at