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

RE: XSLT/XPath help to resolve definition references i

Subject: RE: XSLT/XPath help to resolve definition references in a WSDL XML fi le
From: thomas.cherel@xxxxxxxxxxxxxxxxxxxxx
Date: Wed, 4 Sep 2002 14:47:37 -0400
xslt xpath references
My current node is not a C.
One of the first thing that I want to do, is to get the total number of A
(or B) element for all the A referenced by a C element). Even if I create a
template that will select a C (so now I have C as a current node), I do not
think that I will be able to get things such as the count. What I need is a
way to generate a node-set containing all the B element under a A element
referenced by a C element.

Thomas 

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Wednesday, September 04, 2002 11:00 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  XSLT/XPath help to resolve definition references in a
WSDL XML fi le


> I want to be able to select all the B element which are under the A 
> elements referenced by the C element (the A elements for which a 
> C/@aRef attribute value, minus the prefix, is equal to the A/@name 
> attribute).

If your current node is a C then don't you just want

select="../A[@name=substring-after(current()/@aRef,':')]/B"

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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

 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.