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

Re: Using XPath to retrieve nodes by attribute.

Subject: Re: Using XPath to retrieve nodes by attribute.
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Fri, 30 Apr 2004 03:05:26 -0700
perl using xpath
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 06:10 29/4/04, Manuel Reyes wrote:
>Unfortunately this does work, can anybody tell me where I am going wrong

I assume you mean "doesn't".

What tool are you using to evaluate your XPath?

The fact that you are getting back the count of the nodes, rather than the 
value or an actual node, sounds suspiciously like evaluating an array in a 
scalar context in Perl.  Are you using XML::LibXSLT, by any chance?  If so, 
the findnodes method returns an array of XML::LibXML::Node objects, which 
(in a scalar context) would have exactly the behavior you describe here.

HTH,
Chris
- -- 
Christopher R. Maden, Principal Consultant, crism consulting
XML-SGML-HTML-DTDs-schemas-XSL-DSSSL-conversion-training-ebooks-B2B
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBQJIk5qxS+CWv7FjaEQJhBACbB2qvY6rL/ZvLg9QX2Yeb52WLPG8AoIRb
ajr8EpFqZP9IzhTQyetl0RUm
=IOVZ
-----END PGP SIGNATURE-----

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.