Subject: Re: [xsl] Using XPath to retrieve nodes by attribute. From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Fri, 30 Apr 2004 03:05:26 -0700 |
-----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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using XPath to retrieve n, Mukul Gandhi | Thread | [xsl] looping in xslt, Joeri Belis |
Re: [xsl] xmlns="" ??, David Carlisle | Date | Re: [xsl] xmlns="" ??, Julian Reschke |
Month |