Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2009, 01:16 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

In
Code:
<careers dcr="foo">
  <jobtitle>...</jobtitle>
</careers>
the 'careers' element is the parent element of the 'jobtitle' element.
And inside of your nested for-each the context node is a 'jobtitle' element where you can access the parent element with parent::careers and then its 'dcr' attribute with parent::careers/@dcr.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort by a value that's a comma seperated list medic XSLT 0 June 7th, 2006 09:52 AM
How to list files in the folder? -Sorted- Mantis PHP How-To 2 April 29th, 2005 06:17 AM
array list sort linfakngiau BOOK: Beginning Java 2 2 October 19th, 2003 12:50 PM
Search in a sorted list yajleejnus Classic ASP Basics 0 June 11th, 2003 04:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.