[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Copy all preceding-sibling except...


Subject: [xsl] Copy all preceding-sibling except...
From: "Wilde Rebecca L SSgt HQ SSG/STS" <Rebecca.Wilde@xxxxxxxxxxxxx>
Date: Tue, 1 Feb 2005 15:24:15 -0600

Back again already. =/

I now have a situation where I take

<RootEle>
	<Alphabet>
		<A/>
		<B/>
		<D/>
		<Special/>
		<Break/>
		<H/>
	</Alphabet>
</RootEle>

What I want to come out with is:
<RootEle>
	<Alphabet>
		<A/>
		<B/>
		<D/>
		<Break/>
	</Alphabet>
</RootEle>

I've been playing with the solution to my previous problem to see if I
can work with it to solve this one, but I am unable figure out how to
copy all the preceding-siblings and exclude any nodes that match
"Special" at the same time.  The only "known" nodes are the RootEle and
the Break.. and in this case Special may or may not exist.

Thank you again!

Becky


Current Thread