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

XPath question

Subject: XPath question
From: "Varley, Roger" <Roger.Varley@xxxxxxxxxxx>
Date: Fri, 17 May 2002 14:55:41 +0100
xpath node brothers
Hi

I'm building a key for use in creating a Muenchian group. I've got as far as

<xsl:variable name="ListOfFieldNames"
select="//name[generate-id(.)=generate-id(key('FieldNames', .))]"/>

This, in conjunction with the rest of the stylesheet is working fine, but I
now want to change this statement so it will only select <name> nodes that
are children of a node <column>. I can't use select= "//column/name ....."
because name is not a direct child of <column> nor can I specify a direct
path because these <name> nodes appear at different levels in the nested
XML. I think I've got to use AxisNames somehow, but I'm just confusing
myself at the moment.

Regards
Roger

************************************************************************
Information in this message is confidential and may be privileged.  It is
for the exclusive use of the intended recipient(s).  If you are not the
intended recipient(s) please notify the sender and delete the message
immediately.  Unauthorised disclosure, distribution and copying of this
email is strictly prohibited.  The opinions expressed within this message
are those of the individual author.  Whilst Brakes takes reasonable steps to
scan this email it does not accept liability for any virus that may be
contained in it.

Brake Bros plc. Registered Office: Enterprise House, Eureka Business Park,
Ashford, Kent TN25 4AG.
 Registered in England & Wales number 2035315.

 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.