[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: expression value not a node set on content match

Subject: Re: expression value not a node set on content match
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 4 May 2000 18:25:54 +0100 (BST)
Re: expression value not a node set on content match
oops I just posted an anaysis of the expression
@code='g' 
	 contains(text(),'21 ')
                and *[ @code='x'
                       and contains(text(),'0141-6400')


but I notice that you in fact have

	select="record[ @tag='773'/*[@code='g' ....
	
which certainly isn't correct but which I can't correct as I
don't know what it is supposed to mean. 
 @tag='773' is a boolean: it's true if the current node has an
                          attrbute called tag with value 773

you can't use the / operator after a boolean valued expression
only after a node set.

I _think_ you want (looking at the original post)

record[
  data-field[@tag='773']
    [subfield[@code='x']='0000-1234'
     and
     contains(subfield[@code='g']='21 ')
     ]
   ]

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.