Subject: Problem regarding finding the node in xslt.
Posted By: rohitjain13 Post Date: 6/13/2005 12:31:55 AM
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.

Reply By: mhkay Reply Date: 10/6/2005 3:26:08 AM
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

Go to topic 35092

Return to index page 459
Return to index page 458
Return to index page 457
Return to index page 456
Return to index page 455
Return to index page 454
Return to index page 453
Return to index page 452
Return to index page 451
Return to index page 450