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 June 13th, 2005, 12:31 AM
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem regarding finding the node in xslt.

Hi All, I am working with xml and xslt. I have an xml file something like this

<Log>
<Override>
     <DocType submitted="full">Stated</DocType>
     <Purpose submitted="refirateterm">Purchase</Purpose>
</Override>
</Log>

I wanted to get the nodes like DocType,Purpose which is generated dynamically. Can anybody help me out if there is any code in xslt through which we can get the nodes. Thanks in advance.
 
Old October 6th, 2005, 03:26 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

You can get these nodes using

/Log/Override/DocType | /Log/Override/Purpose

I guess you're trying to say that your document might be different from this one. You need to explain how different it might be, and what criteria you are using to decide which nodes you want to select.

(Really, I despair at questions like this one. Do try and read your question after you've written it, and ask yourself whether it's likely to make any sense at all to someone who can't mind-read).

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding nested elements XSLT 1? Budbertzerofluff XSLT 2 November 15th, 2008 02:45 PM
finding if a node value doesn't exist mphare XSLT 3 August 19th, 2007 05:42 PM
modifying a node in xslt the rail dale XSLT 3 July 17th, 2007 09:15 AM
Finding parent node Chamkaur XSLT 4 August 9th, 2006 06:26 AM
finding the most recent node... clayman58 XSLT 5 July 21st, 2005 01:41 PM





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