[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hubert Holtz wrote:
Assuming you know that both names are "branch", why not just select "branch/branch"? Once you have that, do what you need to with the parent first, and then the child.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Basic ques. about ancestor and child elements with same name
Subject: Re: [xsl] Basic ques. about ancestor and child elements with same name From: Jeff Kenton <jkenton@xxxxxxxxxxxxx> Date: Fri, 03 Jan 2003 11:59:37 -0500 |
Hubert Holtz wrote:
Hy,
Lets say I have something like this:
<tree>
<branch>
<name> branch1 </name>
<desc> long branch </desc>
<branch>
<name> branch2 </name>
<desc> short branch</desc> </branch>
</branch> </tree>
How can I output both branch names and their description, without using any id or other attributes or other names for the elements, my problem is how to output which have the same name as the ancestor. I tried something like this but know that's wrong:
Assuming you know that both names are "branch", why not just select "branch/branch"? Once you have that, do what you need to with the parent first, and then the child.
-- -------------------------- Jeff Kenton DataPower Technology, Inc.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Basic ques. about ancestor an, Hubert Holtz | Thread | RE: [xsl] Basic ques. about ancesto, Passin, Tom |
RE: [xsl] [saxon] catalogs, Michael Kay | Date | RE: [xsl] Basic ques. about ancesto, Passin, Tom |
Month |