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

Re: same xpath, different results?

Subject: Re: same xpath, different results?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 23 Jun 2003 15:23:05 +0100
xpath different attributes
> I am not sure why, but the variable $whichRate will
> always have only 1 element

No it will have no elements at all. It is a result tree fragment
containg the results of xsl:value-of and xsl:value-of _always_ returns a
string, not an element nor attribute node (so even if you used your
processors node-set extension function to turn the result fragment to a
node set, it still would not contain any element nodes.

Since you didn't show your input, or your desired output or any
description of what transformation you intend, I can't really suggest
what the code should be.

> but the paramater cnt will have a variable number
> of elements... 

cnt uses a select attribute so will contain all the nodes selected by
that XPath.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.