[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Re: : Sibling in the Pattern(match)
Subject: [xsl] Re: : Sibling in the Pattern(match) From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Wed, 26 Nov 2003 07:13:47 +0100 |
"Dongling Ding" <dling61@xxxxxxxxx> wrote in message news:20031126045130.29425.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxx > > > > Hi Dimitre, > > It is the true for the > "Member[@name='acc1']/Member[@name='acc11'" in the > match attribute. > > But if want to match the sibling of the member with > name "acc11" in this case, can I say something like > this? > > match="*[preceding-sibling::Member[@name > ='acc1']/Member[@name='acc11']]" > > > If I did this, it will remove the siblings of the > member with the name "acc1", not "acc11". Yes, this is what you wrote... Why did you expect anything else? To match the preceding siblings of a Member element with name="acc11", which is a child of a Member with name='acc1' use: Member[@name = 'acc1']/Member[@name='acc11']/preceding-sibling::Member ===== Cheers, Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl]: Sibling in the Pattern(m, Dongling Ding | Thread | [xsl] Re: : Sibling in the Pattern(, Dimitre Novatchev |
Re: [xsl]: Sibling in the Pattern(m, Dongling Ding | Date | [xsl] Re: : Sibling in the Pattern(, Dimitre Novatchev |
Month |