XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Marek KucharikSubject: how to detect first node name?
Author: Marek Kucharik
Date: 30 Jun 2005 10:54 AM
Hello,

I'm new in XSL and I have a little problem how to get name of the first node until root element.
xml's should be like:
<body>
<person>
<name>me</name>
</person>
</body>

<body>
<animal>
<name>dogodogo</name>
</animal>
</body>


thank you very much,

marek

ps: sorry for my english

Postnext
Ivan PedruzziSubject: how to detect first node name?
Author: Ivan Pedruzzi
Date: 01 Jul 2005 12:19 AM
Marek

use the following Xpath expression

/*[1]/body[1]/*[1]/name

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
Marek KucharikSubject: how to detect first node name?
Author: Marek Kucharik
Date: 01 Jul 2005 02:57 AM
Originally Posted: 01 Jul 2005 02:43 AM
thanks, I found a solution with your help. thanks again marek

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.