Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
select the following node
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Joe Kesselman, post: 2025151, member: 130841"] Since you haven't told us what you're really trying to accomplish ("brother" is not a defined term in XPath and XSLT.), it's hard to say whether you are overcomplicating the problem or not. If you really need the same-name-as-first-child-element test, then yes, it's going to be somewhat ugly. (And in fact you should probably be checking namespace as well as localname.) If you just need the first two child elements no matter what their names are, or if you know the names at the time you're writing the stylesheet, that's a significantly simpler. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
select the following node
Top