xsl-list
[Top] [All Lists]

Re: Using XPath to retrieve nodes by attribute.

2004-04-30 03:05:26

-----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-----



<Prev in Thread] Current Thread [Next in Thread>